Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rebuild OpenLDAP to fix BerkeleyDB 5.3.28 breakage #4657

Merged

Conversation

Mno-hime
Copy link
Contributor

This fixes issue with openLDAP reported yesterday on OpenIndiana-discuss.

slapd used to fail like this due to #4314:

{global} newman@lenovo:~ $ pfexec /usr/lib/slapd -u openldap -g openldap -f /etc/openldap/slapd.conf -d 255
ldap_url_parse_ext(ldap://localhost/)
ldap_init: trying /etc/openldap/ldap.conf
ldap_init: using /etc/openldap/ldap.conf
ldap_init: HOME env is /export/home/newman
ldap_init: trying /export/home/newman/ldaprc
ldap_init: trying /export/home/newman/.ldaprc
ldap_init: trying ldaprc
ldap_init: LDAPCONF env is NULL
ldap_init: LDAPRC env is NULL
5c189b19 @(#) $OpenLDAP: slapd 2.4.44 (Feb 11 2018 07:47:38) $
	@hipster.openindiana.org:/jenkins/jobs/oi-userland/workspace/components/network/openldap/build/i86/servers/slapd
ldap_pvt_gethostbyname_a: host=lenovo, r=0
5c189b19 daemon_init: <null>
5c189b19 daemon_init: listen on ldap:///
5c189b19 daemon_init: 1 listeners to open...
ldap_url_parse_ext(ldap:///)
5c189b19 daemon: listener initialized ldap:///
5c189b19 daemon_init: 2 listeners opened
ldap_create
5c189b19 slapd init: initiated server.
5c189b19 slap_sasl_init: initialized!
5c189b19 bdb_back_initialize: initialize BDB backend
5c189b19 bdb_back_initialize: BDB library version mismatch: expected Berkeley DB 5.3.21: (May 11, 2012), got Berkeley DB 5.3.28: (September  9, 2013)
5c189b19 backend_init: initialized for type "bdb"
5c189b19 slapd destroy: freeing system resources.
5c189b19 slapd stopped.
5c189b19 connections_destroy: nothing to destroy.

Now BDB is initialized correctly:

5c18a02b bdb_back_initialize: initialize BDB backend
5c18a02b bdb_back_initialize: Berkeley DB 5.3.28: (September  9, 2013)

`slapd` used to fail like this due to OpenIndiana#4314:

```
{global} newman@lenovo:~ $ pfexec /usr/lib/slapd -u openldap -g openldap -f /etc/openldap/slapd.conf -d 255
ldap_url_parse_ext(ldap://localhost/)
ldap_init: trying /etc/openldap/ldap.conf
ldap_init: using /etc/openldap/ldap.conf
ldap_init: HOME env is /export/home/newman
ldap_init: trying /export/home/newman/ldaprc
ldap_init: trying /export/home/newman/.ldaprc
ldap_init: trying ldaprc
ldap_init: LDAPCONF env is NULL
ldap_init: LDAPRC env is NULL
5c189b19 @(#) $OpenLDAP: slapd 2.4.44 (Feb 11 2018 07:47:38) $
	@hipster.openindiana.org:/jenkins/jobs/oi-userland/workspace/components/network/openldap/build/i86/servers/slapd
ldap_pvt_gethostbyname_a: host=lenovo, r=0
5c189b19 daemon_init: <null>
5c189b19 daemon_init: listen on ldap:///
5c189b19 daemon_init: 1 listeners to open...
ldap_url_parse_ext(ldap:///)
5c189b19 daemon: listener initialized ldap:///
5c189b19 daemon_init: 2 listeners opened
ldap_create
5c189b19 slapd init: initiated server.
5c189b19 slap_sasl_init: initialized!
5c189b19 bdb_back_initialize: initialize BDB backend
5c189b19 bdb_back_initialize: BDB library version mismatch: expected Berkeley DB 5.3.21: (May 11, 2012), got Berkeley DB 5.3.28: (September  9, 2013)
5c189b19 backend_init: initialized for type "bdb"
5c189b19 slapd destroy: freeing system resources.
5c189b19 slapd stopped.
5c189b19 connections_destroy: nothing to destroy.
```

Now BDB is initialized correctly:

```
5c18a02b bdb_back_initialize: initialize BDB backend
5c18a02b bdb_back_initialize: Berkeley DB 5.3.28: (September  9, 2013)
```
@Mno-hime Mno-hime changed the title Rebuild openLDAP to fix BerkeleyDB 5.3.28 breakage Rebuild OpenLDAP to fix BerkeleyDB 5.3.28 breakage Dec 18, 2018
@pyhalov pyhalov merged commit 99154f0 into OpenIndiana:oi/hipster Dec 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant