Bug 28664 - Traceback durch Samba-Logon-Hours im CLI: Liste statt Zeichenkette
Traceback durch Samba-Logon-Hours im CLI: Liste statt Zeichenkette
Status: RESOLVED DUPLICATE of bug 33703
Product: UCS
Classification: Unclassified
Component: UMC - Users
UCS 3.0
All Linux
: P5 normal (vote)
: UCS 3.2-x
Assigned To: UMC maintainers
:
Depends on: 22439
Blocks:
  Show dependency treegraph
 
Reported: 2012-09-28 10:41 CEST by Philipp Hahn
Modified: 2018-04-13 13:28 CEST (History)
3 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): Troubleshooting
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Philipp Hahn univentionstaff 2012-09-28 10:41:24 CEST
Mit Bug #22439 svn28261 wurden die Samba-Logon-Zeiten von einer Bitstring-Zeichenkette für das neue UMC-Frontend auf ein Feld von Bit-Indices umgestellt.
Das macht das udm-CLI kaputt:
# udm users/user list
Traceback (most recent call last):
  File "/usr/share/univention-directory-manager-tools/univention-cli-server", line 233, in doit
    output = univention.admincli.admin.doit(arglist)
  File "/usr/lib/pymodules/python2.6/univention/admincli/admin.py", line 387, in doit
    out=_doit(arglist)
  File "/usr/lib/pymodules/python2.6/univention/admincli/admin.py", line 1124, in _doit
    out.append('  %s: %s' % ( _2utf8( key ), _2utf8( s.tostring( value ) ) ) )
  File "/usr/lib/pymodules/python2.6/univention/admincli/admin.py", line 243, in _2utf8
    return text.decode( 'iso-8859-1' )
AttributeError: 'list' object has no attribute 'decode'

Ein try-except in der Gegend hat gezeigt, daß das Problem durch "sambaLogonHours" hervorgerufen wird, was nun eine Liste statt einer Zeichenkette ist.

Zum Nachstellen muß man den Benutzer per UMC-UDM anlegen und anschließend von der Kommandozeile aus "udm users/user list" ausführen.

Selbst wenn das funktionieren würde ist unklar, wie man die Zeiten von der CLI aus setzt. Hier wäre irgendwo mal ein funktionierendes Beispiel hilfreich.

Siehe auch Bug #28496 für weitere Probleme in diesem Zusammenhang.
Comment 1 Moritz Muehlenhoff univentionstaff 2013-05-31 10:46:34 CEST
We will not ship a UCS 3.1-2 release; the next UCS release will be UCS 3.2.

As such, this bug is moved to the new target milestone.
Comment 2 Stefan Gohmann univentionstaff 2014-01-13 14:17:03 CET

*** This bug has been marked as a duplicate of bug 33703 ***