From 714fffcb56b88ef5eabb609eae8e01222b514db8 Mon Sep 17 00:00:00 2001 From: Dustin Frisch Date: Wed, 20 Nov 2024 19:04:33 +0100 Subject: [PATCH] ldap: add some indices --- flake.lock | 8 ++++---- machines/ldap/ldap.nix | 6 ++++++ 2 files changed, 10 insertions(+), 4 deletions(-) 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