-
-
Notifications
You must be signed in to change notification settings - Fork 108
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
Support OpenLDAP 2.4 configuration. #57
Comments
OpenLDAP significantly changes how configuration of an OpenLDAP server is handled. The short version is that the slapd.conf configuration file is being deprecated, and instead, all the configuration for slapd will come from an LDIF-backed LDAP database (LDAP configuring an LDAP server.... how meta). This is a problem with the current state of the openldap::master recipe, because as the online configuration changes over time, if any change is made to slapd.conf, it will attempt to "convert" the config into /etc/ldap/slapd.d, but merging in the changes, potentially leading to an un-restart'able database. I propose we make a few changes:
Personally, given the level of effort, I would probably select the option of explicitly not supporting online configuration changes. |
I'd like to tackle this as part of the rewrite of this cookbook. My first goal is to remove all the client auth setup from the cookbook since that doesn't really have anything to do with openldap other than the LDAP part. After that's complete I'm going to investigate writing LWRPs to handle more robust server installs. |
This one has been open for a while but I'll give an update on the state of things and what we can do from here. Background: I managed one of the largest OpenLDAP clusters in higher education and personally did the conversion from 2.3 -> 2.4 so strong opinions abound.
We've removed that entirely since it never really worked and has significant issues regarding future runs. We've been on OpenLDAP 2.4 for 7 years, both administrators and distros still use slapd.conf because it's fundamentally easier to deal with in an automated fashion. We've explicitly stopped supporting slapd.d/cn=config entirely and we're also not going to worry much about 2.3 because as stated earlier, 2.4 has been out for a bit. If we want to look at properly implementing |
After some discussion with @iennae we've decided that at the very least we should add a note to the readme explaining this so that it's easily searchable and once that is done, close this issue, and implement this as a project breaking it down into smaller issues as tasks. |
+1 on your proposed path forward, @cheeseplus. Calling out this choice in the README seems like the right thing to do. |
It seems that all the necessary steps are being taken on debian platforms to setup OpenLDAP to have an ocl-style config directory in /etc/ldap/slapd.d: https://github.com/opscode-cookbooks/openldap/blob/master/recipes/server.rb#L84
However, the defaults file for the init script isn't setup to point there.
Fix this template to actually do the right thing.
The text was updated successfully, but these errors were encountered: