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
Openldap module declarative contents #36249
Openldap module declarative contents #36249
Conversation
cc @domenkozar @Mic92 for the last few changes to this module, hopefully it can still get in before 18.03 :) |
results in:
What else is required? |
Is It works for me with this (ie. keeping the same {
services.openldap = {
enable = true;
urlList = [ "ldap://127.0.0.1:389/" ];
extraConfig = ''
include ${pkgs.openldap}/etc/schema/core.schema
include ${pkgs.openldap}/etc/schema/cosine.schema
include ${pkgs.openldap}/etc/schema/inetorgperson.schema
include ${pkgs.openldap}/etc/schema/nis.schema
database bdb
suffix dc=gaspard,dc=ninja
directory /var/db/openldap
rootdn cn=root,dc=gaspard,dc=ninja
rootpw [...]
index cn,sn,uid pres,eq,approx,sub
index objectClass eq
'';
declarativeContents = ''
dn: dc=gaspard,dc=ninja
objectClass: domain
dc: gaspard
dn: ou=users,dc=gaspard,dc=ninja
objectClass: organizationalUnit
ou: users
# ...
'';
};
} |
@GrahamcOfBorg test openldap |
Failure on x86_64-linux (full log) Partial log (click to expand)
|
test worked locally. |
Thanks! :) |
Failure on aarch64-linux (full log) Partial log (click to expand)
|
This PR allows to declaratively set the contents of the LDAP database. I've tested it on my machine by replacing the stock module with the post-PR one, and it appears to work.