lib/identity: move to idm-ldap
This commit is contained in:
parent
1754fc1048
commit
25b62a503e
1 changed files with 3 additions and 3 deletions
|
@ -12,16 +12,16 @@
|
|||
server = with ldap.server; {
|
||||
# TODO: unhardcode everything here
|
||||
protocol = "ldaps";
|
||||
hostname = "authsys.virtual-machines.${domain}";
|
||||
hostname = "idm-ldap.internal.${domain}";
|
||||
port = 636;
|
||||
url = "${protocol}://${connectionString}";
|
||||
connectionString = "${hostname}:${builtins.toString port}";
|
||||
};
|
||||
accounts = with ldap.accounts; {
|
||||
domainComponents = ldap.lib.convertDomain domain;
|
||||
uidAttribute = "uid";
|
||||
uidAttribute = "name";
|
||||
uidFilter = "(${uidAttribute}=%u)";
|
||||
userSearchBase = "cn=users,cn=accounts,${domainComponents}";
|
||||
userSearchBase = "${domainComponents}";
|
||||
};
|
||||
lib = {
|
||||
convertDomain = domain: with builtins; lib.pipe domain [
|
||||
|
|
Loading…
Reference in a new issue