Commit fc2a020
committed
Add logic for STARTTLS enabled AD servers
There are two different scenarios. x0C is the buffsize reply from openldap-like servers
whereas AD servers probably have x84 and return also the OID. The following is kind of
hackish as ldap_ExtendedResponse_parse() in apps/s_client.c of openssl is kind of hard
to understand. It was deducted from a number of hosts.
Bottom line: We'll look at the 9th byte or at the 17th when retrieving the result code
AD:
30 84 00 00 00 7d 02 01 01 78 84 00 00 00 74 0a 01 34 04 00 04 55 30 30 30 30 30 30 30 30 3a 20 [ failed AD .. LdapErr + OID..]
30 84 00 00 00 28 02 01 01 78 84 00 00 00 1F 0A 01 00 04 00 04 00 8A 16 [.. OID ..]
^^ bufflen ^^ resultcode
30 0C 02 01 01 78 07 0A 01 00 04 00 04 00
^^ bufflen ^^ result code1 parent c67cefa commit fc2a020
1 file changed
Lines changed: 25 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11429 | 11429 | | |
11430 | 11430 | | |
11431 | 11431 | | |
11432 | | - | |
| 11432 | + | |
11433 | 11433 | | |
11434 | 11434 | | |
11435 | 11435 | | |
| |||
11441 | 11441 | | |
11442 | 11442 | | |
11443 | 11443 | | |
11444 | | - | |
11445 | | - | |
11446 | | - | |
| 11444 | + | |
| 11445 | + | |
| 11446 | + | |
11447 | 11447 | | |
11448 | | - | |
11449 | 11448 | | |
11450 | | - | |
| 11449 | + | |
| 11450 | + | |
| 11451 | + | |
| 11452 | + | |
| 11453 | + | |
| 11454 | + | |
| 11455 | + | |
| 11456 | + | |
| 11457 | + | |
| 11458 | + | |
| 11459 | + | |
| 11460 | + | |
| 11461 | + | |
| 11462 | + | |
| 11463 | + | |
11451 | 11464 | | |
11452 | 11465 | | |
11453 | 11466 | | |
| |||
11459 | 11472 | | |
11460 | 11473 | | |
11461 | 11474 | | |
11462 | | - | |
11463 | | - | |
11464 | | - | |
11465 | | - | |
11466 | | - | |
| 11475 | + | |
| 11476 | + | |
| 11477 | + | |
| 11478 | + | |
11467 | 11479 | | |
| 11480 | + | |
| 11481 | + | |
11468 | 11482 | | |
11469 | 11483 | | |
11470 | 11484 | | |
| |||
0 commit comments