[Samba] Rename user

Rowland Penny rpenny at samba.org
Wed Apr 27 20:37:35 UTC 2022


On Wed, 2022-04-27 at 17:23 -0300, Carlos via samba wrote:
> How do I try this way?

If I wanted to list my user object with ldbsearch, I would run this:

ldbsearch -H ldap://rpidc1 -b 'DC=samdom,DC=example,DC=com' -s sub
'(&(objectclass=user)(samaccountname=rowland))' -Uadministrator

'rpidc1' is the DC with the PDC_Emulator FSMO role
'DC=samdom,DC=example,DC=com' is the base and comes from the DNS
domain.

You should be prompted for the Administrator password and then get the
users AD object returned.

Rowland





More information about the samba mailing list