Bug 27841 - broken references in kerberize_user
broken references in kerberize_user
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: Samba
UCS 3.0
Other Linux
: P5 minor (vote)
: UCS 3.1
Assigned To: Arvid Requate
Stefan Gohmann
: interim-1
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-07-06 09:26 CEST by Roman Asendorf
Modified: 2012-12-12 21:08 CET (History)
2 users (show)

See Also:
What kind of report is it?: ---
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments
patch to fix reference issue (471 bytes, patch)
2012-07-06 12:34 CEST, Roman Asendorf
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Roman Asendorf univentionstaff 2012-07-06 09:26:30 CEST
Looking for a way to kerberize a user I ran into this:

root@ra161-ucsm:/usr/share/univention-samba# ./kerberize_user 
./kerberize_user:34: DeprecationWarning: the md5 module is deprecated; use hashlib instead
  import ldap, sys, getopt, subprocess, string, md5, struct
Traceback (most recent call last):
  File "./kerberize_user", line 42, in <module>
    baseConfig = univention.config_registry.baseConfig()
AttributeError: 'module' object has no attribute 'baseConfig'

root@ra161-ucsm:/usr/share/univention-samba# cat /etc/issue
Univention DC Master 3.0-1

root@ra161-ucsm:/usr/share/univention-samba# ucr search errata
repository/online/errata/start: 30
 Lowest errata-version to use [1]

version/erratalevel: 92
Comment 1 Roman Asendorf univentionstaff 2012-07-06 12:11:51 CEST
also affect by this issue: remove-samba-account
Comment 2 Roman Asendorf univentionstaff 2012-07-06 12:34:16 CEST
Created attachment 4513 [details]
patch to fix reference issue

Patch to fix this issue in kerberize_user.
Comment 3 Stefan Gohmann univentionstaff 2012-07-17 17:09:41 CEST
UCS 3.1 will be the next release.
Comment 4 Arvid Requate univentionstaff 2012-08-13 15:08:40 CEST
Der Traceback in kerberize_user und remove-samba-account wurde gefixt. Zusätzlich wurde das Python-Modul "md5" durch "hashlib" ersetzt, um eine deprecation Warning zu vermeiden.

UCS 3.1-0 Changelog ist angepasst.
Comment 5 Stefan Gohmann univentionstaff 2012-09-10 15:13:07 CEST
Changelog: OK

Code-Review: OK

Funktion: OK
Comment 6 Stefan Gohmann univentionstaff 2012-12-12 21:08:53 CET
UCS 3.1-0 has been released: 
 http://forum.univention.de/viewtopic.php?f=54&t=2125

If this error occurs again, please use "Clone This Bug".