Talk:Administer Unix Attributes in AD using samba-tool and ldb-tools

From SambaWiki
Revision as of 14:19, 11 February 2022 by Mjt (talk | contribs) (Created page with "Not to the wiki, but: it's probably a good idea to let samba-tool to dump account (user/group/computer/etc) info into a file and load it from file, - in a way similar to what...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Not to the wiki, but: it's probably a good idea to let samba-tool to dump account (user/group/computer/etc) info into a file and load it from file, - in a way similar to what "samba-tool user edit foo" does but not using interactive editor. This way it is scriptable and no ldapmodify is needed. Well, it already is semi-scriptable, by specifying --editor=/some/where/myscript which modifies the file as needed, but separate dump+load is definitely easier.

About this page - it probably should go or at least be restructured. As far as I can see, samba always adds the necessary schema and fills in atributes for some objects (eg Domain Users group always has gidNumber). And since all object types are edited in a similar way, there's no need to repeat the same steps for different object types, it's enough to give a way how it's done.