Bug 24315 - Host Keytab nach Änderung des Maschinenpassworts offenbar defekt
Host Keytab nach Änderung des Maschinenpassworts offenbar defekt
Status: CLOSED WORKSFORME
Product: UCS
Classification: Unclassified
Component: Kerberos
UCS 2.4
Other Linux
: P5 normal (vote)
: UCS 3.2
Assigned To: Arvid Requate
Stefan Gohmann
: interim-1
: 24188 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-11-02 11:38 CET by Tim Petersen
Modified: 2013-11-19 06:44 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

Note You need to log in before you can comment on or make changes to this bug.
Description Tim Petersen univentionstaff 2011-11-02 11:38:36 CET
Es ist intern aufgetreten, dass eine passwortlose SSH-Verbindung über Kerberos auf Memberserver nicht mehr möglich war.
Tickets waren auf beiden Seiten vorhanden, krsh, etc. möglich.

SSH-Debugging auf Server-Seite hat folgende Fehlermeldung ergeben:

"""
debug1: userauth-request for user (USER edit) service ssh-connection
method gssapi-with-mic
debug1: attempt 1 failures 0
Postponed gssapi-with-mic for (USER edit) from (KDC Server edit) port 46099
ssh2
debug1: Unspecified GSS failure.  Minor code may provide more
information
Bad encryption type

debug1: Got no client credentials
"""

Das Problem konnte durch ein Neuerzeugen der entsprechenden Keytabs gelöst werden. Unklar ist hier aber, wodurch die Keytabs "zerstört" wurden.

Der Timestamp der "defekten" Keytabs deutet darauf hin, dass Sie vom entsprechenden Listener-Modul beim Rotieren der Maschinenpasswörter aktualisiert wurden.

Schaut man sich die Keytabs an, stellt man fest, dass mindestens zwei Versionen eingetragen sind:

"""
Vno  Type                     Principal
 62  aes256-cts-hmac-sha1-96  host/(...)
 62  aes128-cts-hmac-sha1-96  host/(...)
 62  des3-cbc-sha1            host/(...)
 62  des3-cbc-md5             host/(...)
 62  arcfour-hmac-md5         host/(...)
 62  des-cbc-md5              host/(...)
 62  des-cbc-md4              host/(...)
 62  des-cbc-crc              host/(...)
 62  aes256-cts-hmac-sha1-96  host/(...)
 62  aes128-cts-hmac-sha1-96  host/(...)
 62  des3-cbc-sha1            host/(...)
 62  des3-cbc-md5             host/(...)
 62  arcfour-hmac-md5         host/(...)
 62  des-cbc-md5              host/(...)
 62  des-cbc-md4              host/(...)
 62  des-cbc-crc              host/(...)
 63  aes256-cts-hmac-sha1-96  host/(...)
 63  aes128-cts-hmac-sha1-96  host/(...)
 63  des3-cbc-sha1            host/(...)
 63  des3-cbc-md5             host/(...)
 63  arcfour-hmac-md5         host/(...)
 63  des-cbc-md5              host/(...)
 63  des-cbc-md4              host/(...)
 63  des-cbc-crc              host/(...)

"""

Löscht man mit ktutil die alte Version (62), funktioniert die Keytab wieder.

Es sollte einmal geprüft werden, ob es sich hierbei um einen Bug handelt - bei näheren Informationen bitte direkt an mich wenden.
Comment 1 Tim Petersen univentionstaff 2011-11-02 11:50:13 CET
Siehe hierzu auch das entpsrechende Ticket #2011102421004113
Comment 2 Janis Meybohm univentionstaff 2011-11-09 09:35:44 CET
*** Bug 24188 has been marked as a duplicate of this bug. ***
Comment 3 Stefan Gohmann univentionstaff 2013-04-04 06:17:32 CEST
Prüfung zu 3.1-2, IMHO ist dass Problem behoben. Oder tritt es lokal noch auf?
Comment 4 Moritz Muehlenhoff univentionstaff 2013-05-31 10:45:15 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 5 Arvid Requate univentionstaff 2013-07-29 12:44:32 CEST
Could not reproduce this in an UCS 3.1-1 environement. The keytab is created on the master by the listener module keytab-member.py and it removes the old keytab of the member first before extracting the new keys for the member. For this reason it's quite unusual that a previous key version appears at all. It's even more mysterious how two "variants" of the same key version found their way into the keytab. 2nd order weirdness.
Comment 6 Stefan Gohmann univentionstaff 2013-08-08 16:25:56 CEST
OK
Comment 7 Stefan Gohmann univentionstaff 2013-11-19 06:44:21 CET
UCS 3.2 has been released:
 http://docs.univention.de/release-notes-3.2-en.html
 http://docs.univention.de/release-notes-3.2-de.html

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