Portál AbcLinuxu, 27. leden 2020 11:10


www.AutoDoc.Cz

Dotaz: pGina - TLS error

3.12.2019 23:19 Deryl | skóre: 8
pGina - TLS error
Přečteno: 113×
Odpovědět | Admin

Ahoj,

snažím se autentizovat uživatele Win 7 vůči openLDAP (CentOS, docker - osixia/openldap:1.3.0 ) a na serveru vidím v logu:

2019-12-03T21:07:33.050978000Z 5de6ce95 conn=8216 op=0 STARTTLS
2019-12-03T21:07:33.051101000Z 5de6ce95 conn=8216 op=0 RESULT oid= err=0 text=
2019-12-03T21:07:33.053499000Z TLS: can't accept: A packet with illegal or unsupported version was received..
2019-12-03T21:07:33.053816000Z 5de6ce95 conn=8216 fd=12 closed (TLS negotiation failure)

Linuxový klient bez problémů.

pGina ani pGina.fork nehýří aktualizacemi - je možné, že podporuje příliš staré TLS/SSL, které je již v aktuálních distribucích zakázané?

openLDAP výchozí nastavení:

LDAP_TLS_CIPHER_SUITE = SECURE256:+SECURE128:-VERS-TLS-ALL:+VERS-TLS1.2:-RSA:-DHE-DSS:-CAMELLIA-128-CBC:-CAMELLIA-256-CBC

DEBUG LOG:

2019-12-03T21:42:33.386365000Z ldap_read: want=8, got=8
2019-12-03T21:42:33.386506000Z   0000:  30 84 00 00 00 21 02 01                            0....!.. 2019-12-03T21:42:33.386639000Z ldap_read: want=31, got=312019-12-03T21:42:33.386781000Z   0000:  0b 77 84 00 00 00 18 80  16 31 2e 33 2e 36 2e 31   .w.......1.3.6.1
2019-12-03T21:42:33.386925000Z   0010:  2e 34 2e 31 2e 31 34 36  36 2e 32 30 30 33 37      .4.1.1466.20037
2019-12-03T21:42:33.387065000Z ber_get_next: tag 0x30 len 33 contents:
2019-12-03T21:42:33.387200000Z ber_dump: buf=0x7fb4ec005730 ptr=0x7fb4ec005730 end=0x7fb4ec005751 len=33
2019-12-03T21:42:33.387345000Z   0000:  02 01 0b 77 84 00 00 00  18 80 16 31 2e 33 2e 36   ...w.......1.3.6
2019-12-03T21:42:33.387485000Z   0010:  2e 31 2e 34 2e 31 2e 31  34 36 36 2e 32 30 30 33   .1.4.1.1466.2003
2019-12-03T21:42:33.387625000Z   0020:  37                                                 7
2019-12-03T21:42:33.387755000Z 5de6d6c9 op tag 0x77, time 1575409353
2019-12-03T21:42:33.387911000Z ber_get_next
2019-12-03T21:42:33.388106000Z ldap_read: want=8 error=Resource temporarily unavailable
2019-12-03T21:42:33.388327000Z 5de6d6c9 conn=1014 op=0 do_extended
2019-12-03T21:42:33.388524000Z 5de6d6c9 daemon: activity on 1 descriptor
2019-12-03T21:42:33.388719000Z ber_scanf fmt ({m) ber:
2019-12-03T21:42:33.388934000Z ber_dump: buf=0x7fb4ec005730 ptr=0x7fb4ec005733 end=0x7fb4ec005751 len=30
2019-12-03T21:42:33.389092000Z 5de6d6c9 daemon: activity on:
2019-12-03T21:42:33.389236000Z   0000:  77 84 00 00 00 18 80 16  31 2e 33 2e 36 2e 31 2e   w.......1.3.6.1.
2019-12-03T21:42:33.389378000Z   0010:  34 2e 31 2e 31 34 36 36  2e 32 30 30 33 37         4.1.1466.20037
2019-12-03T21:42:33.389496000Z 5de6d6c9 daemon: epoll: listen=6 active_threads=0 tvp=zero
2019-12-03T21:42:33.389611000Z 5de6d6c9 daemon: epoll: listen=7 active_threads=0 tvp=zero
2019-12-03T21:42:33.389722000Z 5de6d6c9 daemon: epoll: listen=8 active_threads=0 tvp=zero
2019-12-03T21:42:33.389842000Z 5de6d6c9 conn=1014 op=0 EXT oid=1.3.6.1.4.1.1466.20037
2019-12-03T21:42:33.389968000Z 5de6d6c9 do_extended: oid=1.3.6.1.4.1.1466.20037
2019-12-03T21:42:33.390096000Z 5de6d6c9 conn=1014 op=0 STARTTLS
2019-12-03T21:42:33.390221000Z 5de6d6c9 send_ldap_extended: err=0 oid= len=0
2019-12-03T21:42:33.390345000Z 5de6d6c9 send_ldap_response: msgid=11 tag=120 err=0
2019-12-03T21:42:33.390469000Z ber_flush2: 14 bytes to sd 12
2019-12-03T21:42:33.390602000Z   0000:  30 0c 02 01 0b 78 07 0a  01 00 04 00 04 00         0....x........
2019-12-03T21:42:33.390722000Z ldap_write: want=14, written=14
2019-12-03T21:42:33.390848000Z   0000:  30 0c 02 01 0b 78 07 0a  01 00 04 00 04 00         0....x........
2019-12-03T21:42:33.390962000Z 5de6d6c9 conn=1014 op=0 RESULT oid= err=0 text=
2019-12-03T21:42:33.391089000Z 5de6d6c9 daemon: activity on 1 descriptor
2019-12-03T21:42:33.391205000Z 5de6d6c9 daemon: activity on: 12r
2019-12-03T21:42:33.391332000Z 5de6d6c9 daemon: read active on 12
2019-12-03T21:42:33.391453000Z 5de6d6c9 daemon: epoll: listen=6 active_threads=0 tvp=zero
2019-12-03T21:42:33.391573000Z 5de6d6c9 daemon: epoll: listen=7 active_threads=0 tvp=zero
2019-12-03T21:42:33.391687000Z 5de6d6c9 daemon: epoll: listen=8 active_threads=0 tvp=zero
2019-12-03T21:42:33.391796000Z 5de6d6c9 connection_get(12)
2019-12-03T21:42:33.391901000Z 5de6d6c9 connection_get(12): got connid=1014
2019-12-03T21:42:33.392024000Z 5de6d6c9 connection_read(12): checking for input on id=1014
2019-12-03T21:42:33.392150000Z tls_read: want=5, got=5
2019-12-03T21:42:33.392283000Z   0000:  16 03 01 00 7a                                     ....z
2019-12-03T21:42:33.392401000Z tls_read: want=122, got=122
2019-12-03T21:42:33.392521000Z   0000:  01 00 00 76 03 01 5d e6  d6 c9 3b af b8 42 03 3f   ...v..]...;..B.?
2019-12-03T21:42:33.392649000Z   0010:  ab f0 f9 5f b5 b4 3d c0  c8 79 14 74 d9 9d cd c5   ..._..=..y.t....
2019-12-03T21:42:33.392771000Z   0020:  aa f6 77 f8 cb 85 00 00  1c c0 14 c0 13 00 39 00   ..w...........9.
2019-12-03T21:42:33.392895000Z   0030:  33 00 35 00 2f c0 0a c0  09 00 38 00 32 00 0a 00   3.5./.....8.2...
2019-12-03T21:42:33.393011000Z   0040:  13 00 05 00 04 01 00 00  31 00 00 00 14 00 12 00   ........1.......
2019-12-03T21:42:33.393136000Z   0050:  00 0f 6c 64 61 70 2e 61  61 61 61 61 61 2e 6e 65   ..ldap.aaaaaa.ne
2019-12-03T21:42:33.393244000Z   0060:  74 00 0a 00 06 00 04 00  17 00 18 00 0b 00 02 01   t...............
2019-12-03T21:42:33.393364000Z   0070:  00 00 17 00 00 ff 01 00  01 00                     ..........
2019-12-03T21:42:33.393484000Z TLS: can't accept: A packet with illegal or unsupported version was received..
2019-12-03T21:42:33.393624000Z 5de6d6c9 connection_read(12): TLS accept failure error=-1 id=1014, closing
2019-12-03T21:42:33.393755000Z 5de6d6c9 connection_closing: readying conn=1014 sd=12 for close
2019-12-03T21:42:33.393880000Z 5de6d6c9 daemon: activity on 1 descriptor
2019-12-03T21:42:33.394016000Z 5de6d6c9 daemon: activity on:
2019-12-03T21:42:33.394067000Z 5de6d6c9 daemon: epoll: listen=6 active_threads=0 tvp=zero
2019-12-03T21:42:33.394117000Z 5de6d6c9 daemon: epoll: listen=7 active_threads=0 tvp=zero
2019-12-03T21:42:33.394167000Z 5de6d6c9 daemon: epoll: listen=8 active_threads=0 tvp=zero
2019-12-03T21:42:33.394220000Z 5de6d6c9 connection_close: conn=1014 sd=12
2019-12-03T21:42:33.394313000Z 5de6d6c9 daemon: removing 12
2019-12-03T21:42:33.394369000Z 5de6d6c9 conn=1014 fd=12 closed (TLS negotiation failure)

Je případně jiná možnost ověřování uživatelů Win 7 vůči openLDAP? (Než pGina.)


Řešení dotazu:


Nástroje: Začni sledovat (1) ?Zašle upozornění na váš email při vložení nového komentáře.

Odpovědi

Řešení 1× (Deryl (tazatel))
4.12.2019 10:16 NN
Rozbalit Rozbalit vše Re: pGina - TLS error
Odpovědět | | Sbalit | Link | Blokovat | Admin
Je to naopak. Ve Win 7 nevyhovujici TLS 1.0. Opravit to muzes snizenim bezpecnosti na strane serveru, nebo lepe povolenim bezpecnejsiho TLS1.1/1.2 na strane klienta.
4.12.2019 19:42 Deryl | skóre: 8
Rozbalit Rozbalit vše Re: pGina - TLS error
Díky.

Povolení TLS 1.2 ve Win registrech u klienta problém vyřešilo.

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.