[Samba] samba-tool create user
- Date: Wed, 19 Apr 2017 16:06:52 -0700
- From: Mark Nienberg via samba <samba@xxxxxxxxxxxxxxx>
- Subject: [Samba] samba-tool create user
I'm working on a shell script to create new users on a AD DC. Currently we
use ADUC, but that is slow and error-prone. My (untested) command looks
samba-tool user create $USERNAME $PASSWORD \
I'm not sure I am using the "--userou" correctly. We store our active users
in a separate users OU within one named for our domain, so if I look at the
distinguishedName attribute for a current user in ADUC it looks like this:
The man page says this:
--userou=USEROU DN of alternative location (without domainDN
counterpart) to default CN=Users in which new user object will be created.
E.g. 'OU=<OU name>'
If I get it wrong, will the command just fail or will it try to create some
incorrect OU that I will then have to figure out how to clean up? Do you
think I guessed correctly?
Also, did I get the (doubled) backslashes right in the windows paths?
And should the home-drive be 'Z' or 'Z:'?
I guess a working example would help a lot for the parameters that are not
in any examples in "samba-tool user create --help". Thanks,
To unsubscribe from this list go to the following URL and read the