Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[Samba] Full list of options when using samba-tool user create

327 views
Skip to first unread message

Mario Pio Russo

unread,
Apr 30, 2015, 7:47:22 AM4/30/15
to

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: mariop...@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)

Mario Pio Russo

unread,
May 1, 2015, 8:56:50 AM5/1/15
to
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: mariop...@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 <anrd...@yandex.ru>
To: Mario Pio Russo/Ireland/IBM@IBMIE, sa...@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...


Andrey Repin

unread,
May 1, 2015, 6:00:09 PM5/1/15
to
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...

--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba

0 new messages