diff --git a/lib/fudo/ldap.nix b/lib/fudo/ldap.nix index ac25051..eb4a204 100644 --- a/lib/fudo/ldap.nix +++ b/lib/fudo/ldap.nix @@ -47,7 +47,7 @@ let shadowMax: 99999 shadowWarning: 7 userPassword: ${opts.ldap-hashed-passwd} - mail: ${opts.email} + mail: ${optionalString (opts.hasAttr email) opts.email} ''; systemUserLdif = base: name: opts: ''