syntax error or not in samba-tool
Michael Wood
esiotrot at gmail.com
Tue Aug 5 13:50:26 MDT 2014
Hi
On 05 Aug 2014 7:13 PM, "David Bear" <dwbear75 at gmail.com> wrote:
>
> 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 myschool.edu
>
> 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/user.py",
> line 176, in run
> uid=uid, uidnumber=uid_number, gidnumber=gid_number, gecos=gecos,
> loginshell=login_shell)
> File "/home/vms/devbin/lib/python2.7/site-packages/samba/samdb.py", 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?
I can't check now, but I suspect it wants something like:
... --userou=ou=Faculty,ou=Users,dc=example,dc=org ...
Also gecos would normally be something like "New User". Not a uid or gid.
More information about the samba-technical
mailing list