diff --git a/flake.lock b/flake.lock index e630c2d..c71d36b 100644 --- a/flake.lock +++ b/flake.lock @@ -203,11 +203,11 @@ "ldap-sync": { "flake": false, "locked": { - "lastModified": 1731935440, - "narHash": "sha256-hMVN9As58cqqiu9JQaS4ffmzhG4xV01QhNKsTP5BF9c=", + "lastModified": 1732122980, + "narHash": "sha256-RRwJR4JFMH7jXjtBE1QqO8Tcd6j9j2Zvy2M7Ff8WLfM=", "ref": "refs/heads/main", - "rev": "4b4b76543b298f0db15644c308c3a4deaaa4dbdd", - "revCount": 17, + "rev": "20a07fe35505e5b8b0dd525ba42461fb2e82ce2a", + "revCount": 24, "type": "git", "url": "https://gogs.informatik.hs-fulda.de/fooker/ldap-sync.git" }, diff --git a/machines/ldap/ldap.nix b/machines/ldap/ldap.nix index 3d3ee0a..32694da 100644 --- a/machines/ldap/ldap.nix +++ b/machines/ldap/ldap.nix @@ -85,6 +85,12 @@ in # Increase max DB size to fit all the users olcDbMaxSize = "10737418240"; + olcDbIndex = [ + "uid,uidNumber pres,eq" + "cn,sn pres,eq,sub" + "objectClass eq" + ]; + olcAccess = [ # Custom access rules for userPassword attributes ''{0}to attrs=userPassword