Smbldap-tools is a set of scripts designed to help integrate Samba and a LDAP directory. They target both users and administrators of unix systems. Users can change their password in a way similar to the standard `passwd' command. Administrators can perform user and group management command line actions and synchronise Samba account management consistently. A version of these tools are bundled with samba, but this set is from the master development site and is generally more up to date.
13 lines
522 B
Text
13 lines
522 B
Text
$NetBSD: patch-ag,v 1.1.1.1 2008/06/16 16:04:25 taca Exp $
|
|
|
|
--- smbldap-usermod.orig 2008-04-22 17:13:29.000000000 +0900
|
|
+++ smbldap-usermod
|
|
@@ -626,7 +626,7 @@ if ( defined( $tmp = $Options{'B'} ) ) {
|
|
$_sambaAcctFlags = "\[$letters\]";
|
|
push( @mods, 'sambaAcctFlags' => $_sambaAcctFlags );
|
|
}
|
|
- push( @mods, 'sambaPwdLastSet' => '0' );
|
|
+ push( @mods, 'sambaPwdLastSet' => time );
|
|
}
|
|
else {
|
|
$_sambaPwdMustChange = $winmagic;
|