Bug 16159 - Anmeldung am Managedclient nicht möglich
Anmeldung am Managedclient nicht möglich
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: General
UCS 2.3
Other Linux
: P5 normal (vote)
: UCS 2.3
Assigned To: Andreas Büsching
Philipp Hahn
:
Depends on:
Blocks: 14412
  Show dependency treegraph
 
Reported: 2009-10-29 14:05 CET by Janis Meybohm
Modified: 2009-12-21 08:46 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 Janis Meybohm univentionstaff 2009-10-29 14:05:52 CET
An einem frisch Installierten Managedclient kann man sich als Benutzer nicht per ssh anmelden (alles andere nicht getestet):
Oct 29 14:01:31 overhead23qa nscd: nss_ldap: reconnecting to LDAP server...
Oct 29 14:01:31 overhead23qa nscd: nss_ldap: reconnecting to LDAP server (sleeping 1 seconds)...
Oct 29 14:01:32 overhead23qa nscd: nss_ldap: could not search LDAP server - Server is unavailable
Oct 29 14:01:32 overhead23qa sshd[7279]: Invalid user janis from 192.168.0.165
Oct 29 14:01:32 overhead23qa sshd[7279]: Failed none for invalid user janis from 192.168.0.165 port 53381 ssh2
Oct 29 14:01:36 overhead23qa sshd[7279]: pam_unix(sshd:auth): check pass; user unknown
Oct 29 14:01:36 overhead23qa sshd[7279]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=norna.knut.univention.de
Oct 29 14:01:36 overhead23qa sshd[7279]: pam_ldap: error trying to bind as user "uid=janis,cn=tech,cn=users,dc=knut,dc=univention,dc=de" (Invalid credentials)
Oct 29 14:01:38 overhead23qa sshd[7279]: Failed password for invalid user janis from 192.168.0.165 port 53381 ssh2

Manueller LDAP bind sowie ldapsearch mit Administrators kerberos Ticket geht.
Comment 1 Andreas Büsching univentionstaff 2009-10-29 17:00:34 CET
Das Problem hängt mit den Zertifikaten zusammen. Wenn TLS in der /etc/libnss-ldap.conf deaktiviert wird bzw. 'tls_checkpeer no' gesetzt wird. Ist die Auflösung von Benutzern wieder möglich. In der Version 2.4.2-6+lenny1 von gnutls wurden ähnliche Probleme behoben, allerdings scheint das unser Problem nicht zu lösen.

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=514735
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=514807
Comment 2 Andreas Büsching univentionstaff 2009-10-30 10:36:06 CET
Die Überprüfung der Serverzertifikate wird jetzt per Default deaktiviert, da sonst unsere alten Zertifikate nicht mehr als gültig anerkannt werden.

Über die UCR-Variable nssldap/tls/checkpeer kann das wieder aktiviert werden.
Comment 3 Philipp Hahn univentionstaff 2009-11-12 15:11:19 CET
Der Patch löst das Problem. Mit
# ucr set nssldap/tls/checkpeer=yes
lässt sich das beschriebenen Problem reproduzieren, bei
# ucr set nssldap/tls/checkpeer=no
tritt es nicht mehr auf. (Ggf. nscd stoppen)

ChangeLog-Eintrag ist vorhanden.
Comment 4 Stefan Gohmann univentionstaff 2009-12-21 08:46:51 CET
UCS 2.3 wurde veröffentlicht. Sollte der hier beschriebene Bug mit einer neueren Version von UCS erneut auftreten, so sollte der Bug dupliziert werden: "Clone This Bug".