From 04ef4aa8f72362a2652e64006d5f4bf26ab4623e Mon Sep 17 00:00:00 2001 From: Michael Grote Date: Wed, 3 Apr 2024 23:38:16 +0200 Subject: [PATCH] h --- roles/mgrote_lldap/tasks/main.yml | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/roles/mgrote_lldap/tasks/main.yml b/roles/mgrote_lldap/tasks/main.yml index 59a6b9f6..a658d7ae 100644 --- a/roles/mgrote_lldap/tasks/main.yml +++ b/roles/mgrote_lldap/tasks/main.yml @@ -25,18 +25,3 @@ mode: "0644" notify: Ensure services are enabled and started ... - -mache das -https://docs.gitea.com/administration/command-line + https://github.com/lldap/lldap/blob/main/example_configs/gitea.md - -forgejo admin auth add-ldap --config "/etc/gitea/gitea.ini" --name "lldap" --security-protocol "unencrypted" --host "ldap.mgrote.net" --port "3890" --bind-dn "uid=ladmin,ou=people,dc=mgrote,dc=net" --bind-password GEHEIM --user-search-base "ou=people,dc=mgrote,dc=net" --user-filter "(&(memberof=cn=gitea,ou=groups,dc=mgrote,dc=net)(|(uid=%[1]s)(mail=%[1]s)))" --username-attribute "uid" --email-attribute "mail" --firstname-attribute "givenName" --surname-attribute "sn" --avatar-attribute "jpegPhoto" --synchronize-users - -when error = -Command error: login source already exists [name: lldap] - -dann - -forgejo admin auth update-ldap --config "/etc/gitea/gitea.ini" --id "1" --security-protocol "unencrypted" --host "ldap.mgrote.net" --port "3890" --bind-dn "uid=ladmin,ou=people,dc=mgrote,dc=net" --bind-password GEHEIM --user-search-base "ou=people,dc=mgrote,dc=net" --user-filter "(&(memberof=cn=gitea,ou=groups,dc=mgrote,dc=net)(|(uid=%[1]s)(mail=%[1]s)))" --username-attribute "uid" --email-attribute "mail" --firstname-attribute "givenName" --surname-attribute "sn" --avatar-attribute "jpegPhoto" --synchronize-users - - -das selbe um admin user zu erstellen