Mario Pio Russo
2015-Apr-30 11:45 UTC
[Samba] Full list of options when using samba-tool user create
Good Day All
I need the full list of option supported by the command samba-tool create
user.
the online help does not provide them all, in fact I see:
8<
------------------------------------------------------------------------------------------------------------
Options:
-h, --help show this help message and exit
-H URL, --URL=URL LDB URL for database or target server
--must-change-at-next-login
Force password to be changed on next login
--random-password Generate random password
--use-username-as-cn Force use of username as user's CN
--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>'
--surname=SURNAME User's surname
--given-name=GIVEN_NAME
User's given name
--initials=INITIALS User's initials
--profile-path=PROFILE_PATH
User's profile path
--script-path=SCRIPT_PATH
User's logon script path
--home-drive=HOME_DRIVE
User's home drive letter
--home-directory=HOME_DIRECTORY
User's home directory path
--job-title=JOB_TITLE
User's job title
--department=DEPARTMENT
User's department
--company=COMPANY User's company
--description=DESCRIPTION
User's description
--mail-address=MAIL_ADDRESS
User's email address
--internet-address=INTERNET_ADDRESS
User's home page
--telephone-number=TELEPHONE_NUMBER
User's phone number
--physical-delivery-office=PHYSICAL_DELIVERY_OFFICE
User's office location
--rfc2307-from-nss Copy Unix user attributes from NSS (will be
overridden
by explicit UID/GID/GECOS/shell)
--nis-domain=NIS_DOMAIN
User's Unix/RFC2307 NIS domain
--unix-home=UNIX_HOME
User's Unix/RFC2307 home directory
--uid=UID User's Unix/RFC2307 username
--uid-number=UID_NUMBER
User's Unix/RFC2307 numeric UID
--gid-number=GID_NUMBER
User's Unix/RFC2307 primary GID number
--gecos=GECOS User's Unix/RFC2307 GECOS field
--login-shell=LOGIN_SHELL
User's Unix/RFC2307 login shell
------------------------------------------------------------------------------------------------------------
>8
while I am able to use few extra options like the following:
--nis-domain --uid-number --unix-home
in particular I 'd like know if it is possible to populate the field:
"displayName"
at creation time, w/o using an ldappodify after creation .
Thanks!
___________________________________________________________________________________________
Mario Pio Russo, System Admin SWG IT Services Dublin, Phone & FAX: +353 1
815 2236, eMail: mariopiorusso at ie.ibm.com
IBM Ireland Product Distribution Limited registered in Ireland with number
92815. Registered Office: IBM House, Shelbourne Road, Ballsbridge, Dublin 4
(Embedded image moved to file: pic46330.gif)
Andrey Repin
2015-May-01 00:11 UTC
[Samba] Full list of options when using samba-tool user create
Greetings, Mario Pio Russo!> Good Day All> I need the full list of option supported by the command samba-tool create > user.> the online help does not provide them all, in fact I see: > ------------------------------------------------------------------------------------------------------------ > >8> while I am able to use few extra options like the following:> --nis-domain --uid-number --unix-homeUse of these options (especially --uid-number) is highly discouraged, as they do not increment the internal counter and essentially break the GUI tools like ADUC, leaving the SAM database in a messy state.> in particular I 'd like know if it is possible to populate the field:> "displayName"> at creation time, w/o using an ldappodify after creation .net help ads user add ? -- With best regards, Andrey Repin Friday, May 1, 2015 03:01:32 Sorry for my terrible english...
Mario Pio Russo
2015-May-01 12:54 UTC
[Samba] Full list of options when using samba-tool user create
Thanks Andrey
Unfortunately those flags are at the moment mandatory for our project, so I
am forced to use them.
"net help ads user add"
is a good tool, I'll look into it thanks!
for the moment I have just done a script with an "ldapmodify" at the
end
that updates that missing field, and I'll keep this solution for now,
thanks!
___________________________________________________________________________________________
Mario Pio Russo, System Admin SWG IT Services Dublin, Phone & FAX: +353 1
815 2236, eMail: mariopiorusso at ie.ibm.com
IBM Ireland Product Distribution Limited registered in Ireland with number
92815. Registered Office: IBM House, Shelbourne Road, Ballsbridge, Dublin 4
(Embedded image moved to file: pic38164.gif)
From: Andrey Repin <anrdaemon at yandex.ru>
To: Mario Pio Russo/Ireland/IBM at IBMIE, samba at lists.samba.org
Date: 01/05/2015 03:09
Subject: Re: [Samba] Full list of options when using samba-tool user
create
Greetings, Mario Pio Russo!
> Good Day All
> I need the full list of option supported by the command samba-tool create
> user.
> the online help does not provide them all, in fact I see:
>
------------------------------------------------------------------------------------------------------------
> >8
> while I am able to use few extra options like the following:
> --nis-domain --uid-number --unix-home
Use of these options (especially --uid-number) is highly discouraged, as
they
do not increment the internal counter and essentially break the GUI tools
like
ADUC, leaving the SAM database in a messy state.
> in particular I 'd like know if it is possible to populate the field:
> "displayName"
> at creation time, w/o using an ldappodify after creation .
net help ads user add
?
--
With best regards,
Andrey Repin
Friday, May 1, 2015 03:01:32
Sorry for my terrible english...