diff --git a/modules/nextcloud.nix b/modules/nextcloud.nix index 44e1016..8122694 100644 --- a/modules/nextcloud.nix +++ b/modules/nextcloud.nix @@ -58,11 +58,11 @@ in ldapHost = "localhost"; ldapPort = "389"; ldapUserDisplayName = "cn"; - ldapUserFilterObjectclass = "inetOrgPerson"; + ldapUserFilterObjectclass = "posixAccount"; # generated by nextcloud ldapGroupFilter = "(&(|(objectclass=groupOfNames)))"; - ldapUserFilter = "(|(objectclass=inetOrgPerson))"; - ldapLoginFilter = "(&(|(objectclass=inetOrgPerson))(uid=%uid))"; + ldapUserFilter = "(|(objectclass=posixAccount))"; + ldapLoginFilter = "(&(|(objectclass=posixAccount))(uid=%uid))"; }; preStart = pkgs.writeScript "nextcloud-preStart" '' # enable included LDAP app