This repository has been archived on 2024-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
authentik/web
Lukas Söder 7f39399c32
providers/ldap: Added auto-generated uidNumber and guidNumber generated attributes for use with SSSD and similar software. (#1138)
* Added auto-generated uidNumber and guidNumber generated attributes for
use with SSSD and similar software.

The starting number for uid/gid can be configured iva environtment
variables and is by default 2000 which should work fine for most instances unless there are more than
999 local accounts on the server/computer.

The uidNumber is just the users Pk + the starting number.
The guidNumber is calculated by the last couple of bytes in the uuid of
the group + the starting number, this should have a low enough chance
for collisions that it's going to be fine for most use cases.

I have not added any interface stuff for configuring the environment variables as I couldn't really find my way around all the places I'd have to edit to add it and the default values should in my opinion be fine for 99% use cases.

* Add a 'fake' primary group for each user

* First attempt att adding config to interface

* Updated API to support new fields

* Refactor code, update documentation and remove obsolete comment

Simplify `GetRIDForGroup`, was a bit overcomplicated before.

Add an additional class/struct `LDAPGroup` which is the new argument
for `pi.GroupEntry` and util functions to create `LDAPGroup` from api.Group and api.User

Add proper support in the interface for changing gidNumber and uidNumber starting points

* make lint-fix for the migration files
2021-07-14 09:17:01 +02:00
..
authentik/sources sources/oauth: add login with plex support 2021-04-16 17:05:35 +02:00
icons web: fix icons not being included in static container 2020-12-12 21:49:00 +01:00
src providers/ldap: Added auto-generated uidNumber and guidNumber generated attributes for use with SSSD and similar software. (#1138) 2021-07-14 09:17:01 +02:00
.babelrc web/admin: add collapse button to sidebar header on mobile viewport 2021-05-02 12:48:45 +02:00
.dockerignore root: fix references to helm chart 2021-06-13 14:30:44 +02:00
.eslintignore web: fix path for artefacts 2021-03-16 22:42:15 +01:00
.eslintrc.json web/flows: fix rendering for plex login 2021-05-03 22:08:25 +02:00
.gitignore web: use API as dedicated module 2021-03-16 21:32:39 +01:00
azure-pipelines.yml root: remove swagger 2021-05-16 23:24:52 +02:00
package-lock.json api: add sentry tunnel 2021-07-13 10:58:14 +02:00
package.json build(deps): bump @typescript-eslint/eslint-plugin in /web (#1131) 2021-07-13 10:34:27 +02:00
poly.ts web/flows: include ShadyDOM, always enable ShadyDOM for flow interface 2021-04-28 22:40:16 +02:00
robots.txt root: move webapp to /web (#347) 2020-11-28 19:43:42 +01:00
rollup.config.js web: migrate templates back to django 2021-06-05 19:38:24 +02:00
security.txt root: update urls to github org 2021-04-21 22:46:48 +02:00
static.go web: migrate templates back to django 2021-06-05 19:38:24 +02:00
tsconfig.json web: further cleanup, more linting 2020-12-02 15:44:40 +01:00