Web lists-archives.com

Re: [Samba] Rename Samba 4 Users




On Wed, 22 Mar 2017 07:13:59 -0300
Edson Tadeu Almeida da Silveira <edson.tadeu@xxxxxxxxx> 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
CN=user01,OU=Users,DC=domain,DC=local
CN=user02,OU=Users,DC=domain,DC=local

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.

Rowland

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba