Password changing function

David Keegel djk-samba at cyber.com.au
Sun Dec 15 01:25:10 MST 2013


On Sat, Dec 14, 2013 at 10:09:51PM +0100, Dr. Michael Cinti wrote:
> Hello everyone,
> i would like to execute a program every password changing to update
> an external LDAP.
> I found that the function "dcesrv_samr_ChangePasswordUser3" in
> source4/rpc_server/samr/samr_password.c is invoked only for the
> first password changing but not in the other requests.
> Anyone can help me
> Michael

What about putting something like:
	unix password sync = yes
	passwd program = /usr/local/bin/ldappasswd -S %u
	passwd chat = "*Enter new password*" %n\n "*Reenter new password*" %n\n "*Password changed*"
into smb.conf? 

You would probably need to change passwd program and passwd chat to suit
your system.

-- 
___________________________________________________________________________
  David Keegel <djk-samba at cyber.com.au>      Cyber IT Solutions Pty. Ltd.   
   http://www.cyber.com.au/~djk/     Linux & Unix Systems Administration 



More information about the samba-technical mailing list