From 25b62a503efb159db2a7bca3a185def4c3fcb849 Mon Sep 17 00:00:00 2001 From: Max Date: Wed, 25 Oct 2023 19:30:00 +0200 Subject: [PATCH] lib/identity: move to idm-ldap --- lib/identity.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/identity.nix b/lib/identity.nix index 608a266..4ca5ece 100644 --- a/lib/identity.nix +++ b/lib/identity.nix @@ -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 [