[Samba] samba-tool: Set sAMAccountName or userPrincipalName

Rowland Penny rpenny at samba.org
Wed Aug 22 15:24:22 UTC 2018


On Wed, 22 Aug 2018 11:54:26 -0300
Sergio Belkin via samba <samba at lists.samba.org> wrote:

> HI,
> 
> Is samba-tool able to set sAMAccountName or uPN, I mean: something
> like:
> 
> samba-tool user "John Doe" --upn john.doe at exampleo.com ?
> 
> Thanks in advance!

Both at the same time ;-)

samba-tool user create john.doe P4ssw0rd* --use-username-as-cn

Leads to:

dn: CN=john.doe,CN=Users,DC=samdom,DC=example,DC=com
........
cn: john.doe
.......
name: john.doe
......
sAMAccountName: john.doe
.........
userPrincipalName: john.doe at samdom.example.com

Rowland



More information about the samba mailing list