Univention Bugzilla – Bug 41557
/usr/share/univention-directory-manager-tools/univention-passwd should show usage information and check for missing arguments
Last modified: 2019-01-03 07:19:21 CET
# /usr/share/univention-directory-manager-tools/univention-passwd New password univention Re-enter new password univention Traceback (most recent call last): File "/usr/share/univention-directory-manager-tools/univention-cli-server", line 226, in doit output = univention.admincli.passwd.doit(arglist) File "/usr/lib/pymodules/python2.7/univention/admincli/passwd.py", line 73, in doit bindpw=open(pwdfile).read() TypeError: coercing to Unicode: need string or buffer, NoneType found OPERATION FAILED
May, just maybe it should tell that it required some arguments: # /usr/share/univention-admin-tools/univention-passwd --binddn "uid=admin,$(ucr get ldap/base)" --pwdfile "/etc/ldap.secret" --user Guest New password univention Re-enter new password univention password changed
There are lots of issues in that code: no -h/--help argparsing should be done using a library password prompts shows the password password prompts should be done when they are required code-workarounds The tool is afaik only used by Samba3. We should remove it asap.
This issue has been filled against UCS 4.1. The maintenance with bug and security fixes for UCS 4.1 has ended on 5st of April 2018. Customers still on UCS 4.1 are encouraged to update to UCS 4.3. Please contact your partner or Univention for any questions. If this issue still occurs in newer UCS versions, please use "Clone this bug" or simply reopen the issue. In this case please provide detailed information on how this issue is affecting you.