[Samba] adding sAMAccountType to an user

karel.de.macil at free.fr karel.de.macil at free.fr
Fri Oct 2 15:29:05 UTC 2020

Hi all,

having by mistake deleting some of my users, i have allmost raise them 
from dead by doing
ldbrename -H /var/lib/samba/private/sam.ldb CN=titi 
Objects,DC=local,DC=domain,DC=fr "CN=titi 
and adding the missing property by using an old ldb backup.


some property are still missing cause ldbedit don't want me to add them. 
those are : SAMAccounttype and PrimaryGroupID.
I suspect that as long as those one won't be back, my users won't work.
Actually my "resurected users" can't be seen by ldbsearch and can't be 
used as real user.

Does anyone have an idea to bring back my user either by adding the 
missing property where they should be or by importing a ldif ?

best regards

More information about the samba mailing list