syntax error or not in samba-tool

David Bear dwbear75 at
Tue Aug 5 11:13:41 MDT 2014

I am cross posting this error because I think there is an error in
samba-tool, though I'm not sure.

I am using the following syntax to create a new user

samba-tool  user add   user  passwd  --userou=Faculty  --given-name=new
 --surname=user  --gecos=198  --mail-address=newuser at

Which gives me the following error:

ERROR(<type 'exceptions.ValueError'>): Failed to add user 'user':  - unable
to parse dn string
  File "/home/vms/devbin/lib/python2.7/site-packages/samba/netcmd/",
line 176, in run
    uid=uid, uidnumber=uid_number, gidnumber=gid_number, gecos=gecos,
  File "/home/vms/devbin/lib/python2.7/site-packages/samba/", line
407, in newuser
    ldbmessage2.dn = ldb.Dn(self, user_dn)

Since it didn't detect a syntax error, I assume there is something worse..
But I don't really know why it would fail to parse the dn string --

Any ideas?

David Bear
mobile: (602) 903-6476

More information about the samba-technical mailing list