linux.psi link and AD groups

This commit is contained in:
bruhn_b committed 2025-04-14 10:20:29 +02:00
1 parent 356a567bb5
commit 9612aa118f
3 files changed
+18 -1

No files matched your search

+15
View File
@@ -132,3 +132,18 @@ gitea admin user create --username {org-gitea} --random-password --random-passwo
gitea admin user generate-access-token --username {org-gitea} --token-name {username-scope} --scopes {read|write:scope}
```
## Mapping AD Groups to Teams
To realize access controll with Active Directory groups in Gitea organizations a JSON file needs to edited in the admin pannel. Navigate to: 'Site Administration -> Identity&Access -> Authentication Sources -> PSI LDAP -> "Map LDAP Groups.."
There is a JSON string that has following structure:
- LDAP Group DN as Primary Key
- Organization
- Team
If you get an error message updateing, you made an error in formating the JSON (Commas or indentation)
```
{
"CN=kst-1337,OU=Official,OU=Groups,OU=psi,DC=d,DC=psi,DC=ch": {
"ORGANIZATION": ["TEAM"]
},
}
```
+1 -1
View File
@@ -18,5 +18,5 @@ If you just put a branch `gitea-pages` in a repository in your organization, the
You may have multiple Repos with a "Pages Branch".
## Automated Pages
If you want to look at an example you can have a look at https://gitea.psi.ch/linux/gitea-pages.
If you want to look at an example you can have a look at https://gitea.psi.ch/linux/documentation.
We use the master branch to edit Markdown files and use `gitea-actions` to publish its content as HTML to the `gitea-pages` branch.
+2
View File
@@ -18,6 +18,8 @@ Following settings allow/restrict access to projects:
More can be found here: https://docs.gitea.com/usage/permissions
If you want to have an AD (Active Directory) Group attached to a team you may contact [Gitea Project](mailto:gitea@psi.ch).
In case you want to manage your teams with AD groups, please send a mail to [Gitea Project](mailto:gitea@psi.ch) with the AD groups, Organizations and Teams.
### User Accounts
There is two types of user accounts in Gitea with different default access permissions:
- Normal User