Bug 5957 - Problem renaming machine accounts
Summary: Problem renaming machine accounts
Status: RESOLVED FIXED
Alias: None
Product: Samba 3.2
Classification: Unclassified
Component: User & Group Accounts (show other bugs)
Version: 3.2.5
Hardware: Other Linux
: P3 normal
Target Milestone: ---
Assignee: Guenther Deschner
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-12-09 08:48 UTC by Stefano Zanarini
Modified: 2008-12-10 04:59 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stefano Zanarini 2008-12-09 08:48:26 UTC
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
Comment 1 Guenther Deschner 2008-12-09 10:18:02 UTC
looking into this.
Comment 2 Guenther Deschner 2008-12-09 10:21:48 UTC
Do you have a rename user script configured ?
Comment 3 Stefano Zanarini 2008-12-09 10:26:43 UTC
(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 ...
Comment 4 Guenther Deschner 2008-12-09 10:44:50 UTC
Right, thanks.

http://git.samba.org/?p=samba.git;a=commitdiff;h=26139344fd0fac4fdd2a6752628b252fbd9b7450

should fix it. Can you please verify ?
Comment 5 Stefano Zanarini 2008-12-10 04:59:20 UTC
Perfect, now it works



Many thanks