Bug 11825 - Cannot add user
Cannot add user
Status: NEW
Product: Samba 4.1 and newer
Classification: Unclassified
Component: Tools
x64 Linux
: P5 normal
: ---
Assigned To: Andrew Bartlett
Samba QA Contact
Depends on:
  Show dependency treegraph
Reported: 2016-04-08 13:20 UTC by Sandwich
Modified: 2016-04-09 14:17 UTC (History)
0 users

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Sandwich 2016-04-08 13:20:30 UTC
Apologies if I've managed to file this incorrectly; I've run into this error message while trying to add a user.

sandwich% sudo samba-tool user add tom
[sudo] password for tom:
New Password:
Retype Password:
Unknown parameter encountered: "refresh"
Ignoring unknown parameter "refresh"
ERROR(<type 'exceptions.ValueError'>): Failed to add user 'tom':  - unable
to parse dn string
  File "/usr/lib/python2.7/dist-packages/samba/netcmd/user.py", line 176, in run
    uid=uid, uidnumber=uid_number, gidnumber=gid_number, gecos=gecos, loginshell=login_shell)
  File "/usr/lib/python2.7/dist-packages/samba/samdb.py", line 343, in newuser
    dnsdomain = ldb.Dn(self, self.domain_dn()).canonical_str().replace("/", "")
sandwich% apt-show-versions samba
samba:amd64/jessie 2:4.1.17+dfsg-2+deb8u2 uptodate