-B and -P options conflicts
Brought to you by:
jtournier
In smbldap-tools if you use the -B 1 options to force users to change password at first logon, and you use also the -P option to setup a password, the second options override the first.
reading the code the problem arise from the call to smbldap-passwd inside the smbldap-useradd after the data are written to LDAP, so the call to smbldap-passwd reset password counters.
Logged In: YES
user_id=1522885
Originator: NO
updated.
Now (part of the ChangeLog):
* smbldap-passwd: new option -B to force user to change Samba password (and then also unix) at
next connection
* smbldap-useradd: if -B option is used, called smbldap-passwd with -B option (without -B option
in smbldap-passwd, this command was overwritten sambaPwdMustChange sambaPwdLastSet and sambaAcctFlags
just after being updated with smbldap-usermod)
Thanks !
Logged In: YES
user_id=1522885
Originator: NO
updated.
Now (part of the ChangeLog):
* smbldap-passwd: new option -B to force user to change Samba password (and then also unix) at
next connection
* smbldap-useradd: if -B option is used, called smbldap-passwd with -B option (without -B option
in smbldap-passwd, this command was overwritten sambaPwdMustChange sambaPwdLastSet and sambaAcctFlags
just after being updated with smbldap-usermod)
Thanks !