[Samba] samba-tool user add - weird resulting

Rowland Penny rpenny at samba.org
Wed Aug 14 07:48:51 UTC 2024


On Wed, 14 Aug 2024 09:24:03 +0200
Franta Hanzlik via samba <samba at lists.samba.org> wrote:

> When creating AD user using 'samba-tool user add <username> ...',
> there are switches for some human name parts specification:
>   --surname=SURNAME          User's surname
>   --given-name=GIVEN_NAME    User's given name
>   --initials=INITIALS        User's initials
> 
> and samba-tool (or Samba daemon itself?) assembles other (LDB)
> attributes from them:
> 
> dn :          as "$GIVEN_NAME $INITIALS $SURNAME,OU=...,DC=..."
> displayName : as "$GIVEN_NAME $INITIALS $SURNAME"
> name :        as "$GIVEN_NAME $INITIALS $SURNAME"
> 
> Despite that the insertion of initials into any of the derived
> attributes seems stupid to me, would like to have the values ​​of
> these attributes different.

A Samba AD DC tries its best to emulate what a Windows DC does and this
is what a Windows DC does if you supply the users initials. I you do
not want the user accounts created with the initials, then do not
supply them.

> Is this somehow possible?
> Doesn't samba-tool have any hidden switches for this?

No, you an see all the switches with 'samba-tool used add --help'

Rowland




More information about the samba mailing list