Just fuckin hack it

This commit is contained in:
niten 2023-09-06 15:18:49 -07:00
parent 42332121be
commit e2f29e8f44

View File

@ -31,7 +31,19 @@ let
else
"/home/${user-opts.primary-group}/${username}";
userLdif = base: name: group-map: opts: ''
userLdif = base: name: group-map: opts:
let
# TODO: HORRIBLE HACK
domains = {
fudo = "fudo.org";
selby = "selby.ca";
informis = "informis.land";
};
email = if (hasAttr email opts) then
email
else
"${name}@${domains."${opts.primary-group}"}";
in ''
dn: uid=${name},ou=members,${base}
uid: ${name}
objectClass: account