Univention Bugzilla – Bug 45063
samba-tool user has doesn't allow UPN to be created due to spelling error
Last modified: 2017-09-20 15:04:03 CEST
Line 290 of /usr/lib/python2.7/dist-packages/samba/netcmd/user.py reads "if upn is not None and no-upn:" however, no-upn is not defined. The correct variable is no_upn Thus creating service principles using Samba-tool is not possible.
Created attachment 9052 [details] patch
fixed 97_bug29665.quilt cherry picked samba from errata4.2-1 to errata4.2-2 samba.yaml 2:4.6.1-1A~4.2.0.201709111211 errata4.2-2
fix yaml for errata4.2-1
(In reply to Felix Botner from comment #3) > fix yaml for errata4.2-1 done
Code: OK, looks good: root@master421:~# samba-tool user create test01 Univention.99 --upn FOO@BAR --no-upn ERROR: Can't use Options --upn and --no-upn at the same time root@master421:~# samba-tool user create test01 Univention.99 --no-upn User 'test01' created successfully root@master421:~# samba-tool user create test02 Univention.99 --upn FOO02@BAR User 'test02' created successfully root@master421:~# YAML: OK, minor spelling update: https://git.knut.univention.de/univention/ucs/commit/0b9bcb0caa41924961e86b5b67165583613da25c
<http://errata.software-univention.de/ucs/4.2/165.html>