Hi, we're having some problems renaming machine accounts on a samba 3.2.5 server acting as pdc on a debian lenny system using ldap_sam as backend ,smbldap-tools 0.9.4 and openldap 2.4.11 , here is part of the logs (loglevel 5): ---------------------------------- [2008/12/09 12:54:15, 5] lib/username.c:Get_Pwnam_internals(77) Trying _Get_Pwnam(), username as lowercase is re$ [2008/12/09 12:54:15, 5] lib/username.c:Get_Pwnam_internals(110) Get_Pwnam_internals did find user [re$]! [2008/12/09 12:54:15, 3] smbd/sec_ctx.c:pop_sec_ctx(432) pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 1 [2008/12/09 12:54:15, 3] passdb/pdb_ldap.c:ldapsam_rename_sam_account(1998) ldapsam_rename_sam_account: Renaming user re$ to BIRE2$. [2008/12/09 12:54:15, 0] rpc_server/srv_samr_nt.c:set_user_info_21(3803) set_user_info_21: failed to rename account: NT_STATUS_NO_MEMORY ------------------------------- re was the old name and BIRE2 the new one. Our "rename user script" parameter is set to: rename user script = /usr/sbin/smbldap-usermod -r "%unew" "%uold" running the command from the command line works fine. Do you need more infos ? regards
looking into this.
Do you have a rename user script configured ?
(In reply to comment #2) > Do you have a rename user script configured ? yes, as said: rename user script = /usr/sbin/smbldap-usermod -r "%unew" "%uold" and works if launched from the command line ...
Right, thanks. http://git.samba.org/?p=samba.git;a=commitdiff;h=26139344fd0fac4fdd2a6752628b252fbd9b7450 should fix it. Can you please verify ?
Perfect, now it works Many thanks