Better groups

This commit is contained in:
2026-07-10 18:57:50 -04:00
parent be5105ba1b
commit ad787a6bf8
6 changed files with 19 additions and 9 deletions
+1 -1
View File
@@ -4,6 +4,6 @@ ldapsearch -H "ldap://{{ldap_host}}" \
-D "{{ldap_bind_dn}}" \
-w "{{ldap_bind_password}}" \
-b "ou=People,{{ldap_base_dn}}" \
"(&(uid=$1)(|(memberof=cn=host_access,ou=Groups,{{ldap_base_dn}})(memberof=cn=host_{{current_host}}_access,ou=Groups,{{ldap_base_dn}})))" \
"(&(uid=$1)(|{{#ldap_access_groups}}(memberof={{.}},ou=Groups,{{ldap_base_dn}}){{/ldap_access_groups}}))" \
'*' | sed -n '/^ /{H;d};/sshPublicKey:/x;$g;s/\n *//g;s/sshPublicKey: //gp'