Samba-tool producing traceback when trying to create a user with "--upn" option, for instance: root@slave2032:~# samba-tool user add test_username test_password --upn=njkandnaskde ERROR(<type 'exceptions.NameError'>): uncaught exception - global name 'no' is not defined File "/usr/lib/python2.6/dist-packages/samba/netcmd/__init__.py", line 175, in _run return self.run(*args, **kwargs) File "/usr/lib/python2.6/dist-packages/samba/netcmd/user.py", line 139, in run if upn is not None and no-upn:
The traceback is incomplete.
(In reply to Florian Best from comment #1) > The traceback is incomplete. root@slave2032:~# samba-tool user add test_username test_password --upn=njkanawdawd ERROR(<type 'exceptions.NameError'>): uncaught exception - global name 'no' is not defined File "/usr/lib/python2.6/dist-packages/samba/netcmd/__init__.py", line 175, in _run return self.run(*args, **kwargs) File "/usr/lib/python2.6/dist-packages/samba/netcmd/user.py", line 139, in run if upn is not None and no-upn: root@slave2032:~# It's complete. And the problem is that variable can use underscores, but not the '-' sign: http://legacy.python.org/dev/peps/pep-0008/#method-names-and-instance-variables
The code block has been removed upstream in Samba 4.2.