Hi all !
I was trying to adapt the perl script smbldap-passwd to allow to my clients to
change his/her password in another application of my company. Seems that the
smbldap-passwd is not executed and I do not know why. Currently they are able to
change the password but for sure it is not through smbldap-passwd since I added
a flag line on this script to check it as system('touch test'); after
to change the password through windows xp box the test file is not created on
the samba server /usr/sbin.
the configuration I use is below:
encrypt passwords = yes
ldap password sync = Yes
passwd chat debug = yes
passwd level = 2
passwd program = /usr/sbin/smbldap-passwd -s %u
passwd chat = *old*password* %o\n *new*password* %n\n *new*password* %n\n
*changed*
Does anyone understand why smbldap-passwd is not invoked and why instead of that
is invoked passwd?
I will appreciate so much any help and thoughts :)
Thank you so much in advance !
From: "sisu ." <npillao at hotmail.com> Date: Fri, 18 Mar 2011 10:38:26 +0000> I was trying to adapt the perl script smbldap-passwd to allow to my > clients to change his/her password in another application of my > company. Seems that the smbldap-passwd is not executed and I do not > know why.> the configuration I use is below: > > encrypt passwords = yes > ldap password sync = Yes > passwd chat debug = yes > passwd level = 2 > passwd program = /usr/sbin/smbldap-passwd -s %u > passwd chat = *old*password* %o\n *new*password* %n\n *new*password* %n\n *changed*If you set "ldap password sync = yes", Samba directly changes userPassword attribute and any script defined at "passwd program" is never called. To change LDAP password with a script such as smbldap-passwd, try to set "unix password sync = yes" and to remove "ldap password sync = yes". --- TAKAHASHI Motonobu <monyo at monyo.com>