[Samba] Copy additional LDAP attributes on migration from ldap

steve steve at steve-ss.com
Tue Nov 12 02:36:48 MST 2013


> >>
> >>  ldbmodify -H /usr/local/samba/private/sam.ldb.d/DC\=<DOMAIN>.ldb -U
> >> administrator 03_smb_maps.ldif
> >
> > NEVER, EVER DO THIS.
> >
> > You now have a corrupt database.  Please wipe the database, and start
> > again, hopefully from a backup.
> >
> > Andrew Bartlett
> 
> But your "ldbmodify -H tdb:///path/to/sam.ldb" should be safe?

Yes. I learned the hard way too. Never alter the db directly. Editing
sam.ldb makes the necessary changes for you;)
HTH
Steve




More information about the samba mailing list