Just fuckin hack it
This commit is contained in:
parent
42332121be
commit
e2f29e8f44
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user