Build openldap ubuntu package to fix SSL problem
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Fuel for OpenStack |
Confirmed
|
Wishlist
|
MOS Linux |
Bug Description
Pre-story:
One of possible ways for solving keystone<->AD integration is to setup openldap proxy in the middle. This schema have benefits, like: multi AD supports and possibility to setup cache, that will reduce AD connections.
Key feature that allows to configure above setup is backend 'meta' in openldap configuration.
Also this architecture is actively proposed to our customers.
Problems start when you try to use backend meta with SSL endpoint, like below:
uri "ldap:/
suffixmassage "dc=local,dc=tld" "ou=Unit1,
map attribute uid sAMAccountName
map objectclass inetOrgPerson person
map objectclass groupOfNames group
tls start
lastmod off
idassert-bind bindmethod=simple
binddn=
credentials=passwd
mode=self
tls_reqcert=demand
starttls="yes"
tls_cacert=
uri ldaps:/
suffixmassage "dc=local,dc=tld" "ou=Unit2,
map attribute uid sAMAccountName
map objectclass inetOrgPerson person
map objectclass groupOfNames group
lastmod off
idassert-bind bindmethod=simple
binddn=
credentials=
mode=self
tls_reqcert=allow
tls_cacert=
In short - there are 3 possible connection scheme:
- ldap:// - works
- ldap:// with start_tls - works
- ldaps:// - doesn't work
In example above - second connection will be broken, here is debug:
57221fb5 conn=1004 op=1 >>> meta_search_
ldap_sasl_bind
ldap_send_
ldap_int_poll: fd: 20 tm: 0
ldap_is_sock_ready: 20
ldap_ndelay_off: 20
TLS: can't connect: A TLS packet with unexpected length was received..
ldap_free_
ldap_send_unbind
ber_flush2: 7 bytes to sd 20
ldap_free_
Ubuntu 14.04 comes with openldap 2.4.31 version it's broken. Also tested slapd_2.4.42 that comes with 16.04 - it also broken.
Openldap builded from sources (git checkout OPENLDAP_
This is configure string, that used for self-building:
./configure --prefix=/ --program-prefix=/ --enable-sql=no --disable-ndb --disable-wt --disable-perl --enable-
summary: |
- Build openldap ubuntu packaga for fixing SSL problem + Build openldap ubuntu package to fix SSL problem |
Changed in fuel: | |
assignee: | nobody → MOS Linux (mos-linux) |
milestone: | none → 10.0 |
Not really a bug. I'd rather we stick to the version provided by the distro.