[Samba] Rename Samba 4 Users

Rowland Penny rpenny at samba.org
Wed Mar 22 10:21:39 UTC 2017

On Wed, 22 Mar 2017 07:13:59 -0300
Edson Tadeu Almeida da Silveira <edson.tadeu at gmail.com> wrote:

> So...
> It´s appears not to working for me. I´m doing exactly this:
> ldbrename -H tdb://samba/private/sam.ldb.d/DC=DOMAIN,DC=LOCAL.ldb
> "CN=user01,OU=Users,DC=domain,DC=local"
> "CN=user02,OU=Users,DC=domain,DC=local"
> ldbrename -H tdb://samba/private/sam.ldb.d/DC=DOMAIN,DC=LOCAL.ldb
> "CN=user05,OU=Users,DC=domain,DC=local"
> "CN=user06,OU=Users,DC=domain,DC=local"
> The ldif is only to correct some fields after renaming...
> I did all that you have said... do you thing it should be a problem
> with my samba version ? (4.4.10)

Well, I am doing (using the info above) this:

ldbrename -H /samba/private/sam.ldb

And, altering what you are doing, makes me hope you are doing this in a
test domain!!

DO NOT DIRECTLY ALTER the ldb files under sam.ldb.d

You could damage your AD if you do.


More information about the samba mailing list