Issue 7767 - back-ldap: Connection not reset when olcDbUri value changed in cn=config
Summary: back-ldap: Connection not reset when olcDbUri value changed in cn=config
Status: VERIFIED FEEDBACK
Alias: None
Product: OpenLDAP
Classification: Unclassified
Component: backends (show other issues)
Version: 2.4.38
Hardware: All All
: --- normal
Target Milestone: 2.6.0
Assignee: OpenLDAP project
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-12-16 16:49 UTC by Clément OUDOT
Modified: 2021-06-07 17:08 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Clément OUDOT 2013-12-16 16:49:48 UTC
Full_Name: Cl�ment OUDOT
Version: 2.4.38
OS: GNU/Linux
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (88.173.78.196)


I configure the LDAP backend under a chain overlay to manage
ppolicy-forward-updates configuration, the configuration is:

dn: olcOverlay={0}chain,olcDatabase={-1}frontend,cn=config
objectClass: top
objectClass: olcConfig
objectClass: olcChainConfig
objectClass: olcOverlayConfig
olcOverlay: {0}chain

dn: olcDatabase={0}ldap,olcOverlay={0}chain,olcDatabase={-1}frontend,cn=config
objectClass: olcLDAPConfig
objectClass: olcChainDatabase
olcDatabase: {0}ldap
olcDbIDAssertBind: bindmethod="simple" binddn="cn=admin,dc=example,dc=com"
crede
 ntials="secret" mode="none"
olcDbUri: ldap://localhost:389




When changing the value of olcDbUri trough an LDAP client, the connection to the
server is not reset, so the configuration is not taken dynamically. All is ok if
I restart OpenLDAP.
Comment 1 Quanah Gibson-Mount 2021-02-22 17:51:27 UTC
Can you provide a test case? Per the code, when the old value is deleted, all open connections are closed and new connections are opened to the updated value.