Portál AbcLinuxu, 10. května 2025 05:01

Dotaz: klient se nemůže připojit k ldap serveru pomocí ssl

28.6.2010 17:35 oFthem
klient se nemůže připojit k ldap serveru pomocí ssl
Přečteno: 269×
Odpovědět | Admin
Ahoj. Mám problém s windows xp klientem, který se nemůže připojit k ldapu pomocí ssl. Certifikát CA mám ve widlích nainstalovaný. Linux klienti jedou krásně, ale windows se s openldap serverem nemůže dohodnout. Debug log serveru:
Jun 28 17:30:27 ldap slapd[4835]: slap_listener_activate(11): 
Jun 28 17:30:27 ldap slapd[4835]: >>> slap_listener(ldaps:///)
Jun 28 17:30:27 ldap slapd[4835]: connection_get(17): got connid=1
Jun 28 17:30:27 ldap slapd[4835]: connection_read(17): checking for input on id=1
Jun 28 17:30:27 ldap slapd[4835]: connection_get(17): got connid=1
Jun 28 17:30:27 ldap slapd[4835]: connection_read(17): checking for input on id=1
Jun 28 17:30:27 ldap slapd[4835]: connection_read(17): TLS accept failure error=-1 id=1, closing
Jun 28 17:30:27 ldap slapd[4835]: connection_closing: readying conn=1 sd=17 for close
Jun 28 17:30:27 ldap slapd[4835]: connection_close: conn=1 sd=17
Kde je problém?
Nástroje: Začni sledovat (0) ?Zašle upozornění na váš email při vložení nového komentáře.

Odpovědi

28.6.2010 18:17 oFthem
Rozbalit Rozbalit vše Re: klient se nemůže připojit k ldap serveru pomocí ssl
Odpovědět | | Sbalit | Link | Blokovat | Admin
mimochodem distribuce serveru je debian lenny, certifikáty startcom class 1.
28.6.2010 19:35 oFthem
Rozbalit Rozbalit vše Re: klient se nemůže připojit k ldap serveru pomocí ssl
Projel jsem server pomocí gnutls-cli-debug a tady je výsledek:
gnutls-cli-debug ldap -p 636
Resolving 'ldap'...
Connecting to '192.168.1.27:636'...
Checking for TLS 1.1 support... yes
Checking fallback from TLS 1.1 to... N/A
Checking for TLS 1.0 support... yes
Checking for SSL 3.0 support... yes
Checking for HTTPS server name... not checked
Checking for version rollback bug in RSA PMS... no
Checking for version rollback bug in Client Hello... no
Checking whether we need to disable TLS 1.0... N/A
Checking whether the server ignores the RSA PMS version... no
Checking whether the server can accept Hello Extensions... yes
Checking whether the server can accept cipher suites not in SSL 3.0 spec... yes
Checking whether the server can accept a bogus TLS record version in the client hello... no
Checking for certificate information... N/A
Checking for trusted CAs... N/A
Checking whether the server understands TLS closure alerts... yes
Checking whether the server supports session resumption... no
Checking for export-grade ciphersuite support... no
Checking RSA-export ciphersuite info... N/A
Checking for anonymous authentication support... no
Checking anonymous Diffie-Hellman group info... N/A
Checking for ephemeral Diffie-Hellman support... no
Checking ephemeral Diffie-Hellman group info... N/A
Checking for AES cipher support (TLS extension)... yes
Checking for CAMELLIA cipher support (TLS extension)... yes
Checking for 3DES cipher support... yes
Checking for ARCFOUR 128 cipher support... yes
Checking for ARCFOUR 40 cipher support... no
Checking for MD5 MAC support... yes
Checking for SHA1 MAC support... yes
Checking for LZO compression support (GnuTLS extension)... no
Checking for max record size (TLS extension)... yes
Checking for SRP authentication support (TLS extension)... yes
Checking for OpenPGP authentication support (TLS extension)... no
Já v tom problém nevidím.. ? Jen se divím proč nepodporuje port 389 starttls(což ale nesouvisí s problémem):
gnutls-cli-debug ldap -p 389
Resolving 'ldap'...
Connecting to '192.168.1.27:389'...
Checking for TLS 1.1 support... no
Checking fallback from TLS 1.1 to... failed
Checking for TLS 1.0 support... no
Checking for SSL 3.0 support... no

Server does not support any of SSL 3.0, TLS 1.0 and TLS 1.1
slapd.conf není ničím zajímavý, přidal jsem jen:
TLSCACertificateFile  /etc/ldap/ssl/ca-bundle.pem
TLSCertificateFile    /etc/ldap/ssl/ssl.pem
TLSCertificateKeyFile /etc/ldap/ssl/ssl.key
a do /etc/default/starttls:
SLAPD_SERVICES="ldap:/// ldaps:/// ldapi:///"
Je mi hrozně divný proč to na linuxech funguje a na widlích ne. Widlím teda moc nerozumím, ale mělo by to běhat tak nějak samo pomocí nějakýho subsystému nebo co. Hodně lidem to asi běhá ale mě ne proto si myslím že může být problém se serverem.
28.6.2010 22:00 oFthem
Rozbalit Rozbalit vše Re: klient se nemůže připojit k ldap serveru pomocí ssl
VYŘEŠENO. Já idiot jsem si nevšiml že se připojuju na ip adresu, místo toho jsem zadal doménu a už se to připojilo. Vůbec mi nedošlo že je potřeba uvádět doménu pro ověření certifikátu. No což tak jsem strávil den nad ničím :-)

Založit nové vláknoNahoru

Tiskni Sdílej: Linkuj Jaggni to Vybrali.sme.sk Google Del.icio.us Facebook

ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.