Madars Vitolins
2008-Mar-27 14:21 UTC
[Samba] Samba with ldap backend password change trigger
Hello, For samba acting as PDC with ldap backend (openldap) is it possible to hook some how password change event? So that if user in windows changes domain user password, it will update ldap account as usual but is it possible to trigger for some shell script to receive username and *plain* new password password? This could help for automation to update password in other systems. I am using smbldap-tools for samba ldap backend management Thanks in advance, Madars Vitolins
"Madars Vitolins" <m@silodev.eu> wrote in message news:47EBAB74.4090800@silodev.eu...> Hello, > > For samba acting as PDC with ldap backend (openldap) is it possible to > hook some how password change event? > So that if user in windows changes domain user password, it will update > ldap account as usual but is it possible to trigger for some shell > script to receive username and *plain* new password password? > > This could help for automation to update password in other systems. > > I am using smbldap-tools for samba ldap backend managementI hope I am understanding your question. You can configure the smb.conf file so that when a user changes his Windows (Samba) password, it changes the other ldap password. I don't know if it will change the password in the /etc/passwd file. This works when you are using OpenLDAP for authentication with a number of LDAP aware applications such as Samba, qmail-ldap and Openfire. You can put the following command in your smb.conf file: ldap passwd sync = yes