search for: chgdate

Displaying 1 result from an estimated 1 matches for "chgdate".

2003 Sep 16
4
Samba + LDAP + Password Expiry = Almost working...
...********************************* if ($mk_ntpasswd eq '') { print "Either set \$with_smbpasswd = 1 or specify \$mk_ntpasswd\n"; exit(1); } my $ntpwd = `$mk_ntpasswd '$pass'`; my $neidate = `/bin/date +%s`; my $chgdate = $neidate+7776000; chomp(my $lmpassword = substr($ntpwd, 0, index($ntpwd, ':'))); chomp(my $ntpassword = substr($ntpwd, index($ntpwd, ':')+1)); # change nt/lm passwords # *************************************************** # Modified on 05-04-03 by kevin Collins of...