Hi,
We use Samba (without pam)in our office and needed to do the following things
1.have users change their password once in 30 days
2.when a user wants to log in .. after 3 times of username/password mismatch the password should be reset
..
it has been quiet some time since i wrote programs in C ..i looked at the code (in C ) and could not figure out much so what i thought was when i enter a wrong password a entry is generated in the log file ,i search for that entry in the c files and in the next line i will do a system ("/use/bin/perl myperl.pl username pass") ..this will store the username and password and a counter in a database and when the counter reaches 5 i can reset the samba password ... can the wise monks tell me if this is a good solution and are there any perl modules through which i can reset the samba password ..also how can i force a user to change his password once in 30 days ...is there any other way of acheiving this ??