-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LDAP regular Sync of User attributes #12934
Comments
By default it would synchronize users every 24h if you have enabled it in authorization source: https://github.com/go-gitea/gitea/blob/master/custom/conf/app.example.ini#L921 |
Thanks for the code in the app.ini, that was what i was looking for. Is it possible to do the LDAP configuration in this file too? |
@lafriks default is good, but it looks like the example from config does not work anymore. We need to sync from LDAP every several minutes to get the latest ssh keys, I remember it worked fine but does not in the latest release. |
|
https://github.com/go-gitea/gitea/blob/master/custom/conf/app.example.ini#L921 I configured it like the following but it didn't work as expected, my expectations where after Gitea restart it would do a sync befause of
|
Which release was it, so I can switch if its not to old ... |
The last release it was working fine was 1.10, but this one missing many features |
Is Migration missing? |
No |
About 1.10.6 I can already say that |
Can you change this from question to BUG? |
1.9.6 is working, changed Mail address is already changed after server is started. |
I tried to debug and it looks like the bug is in This function
I can see data reading fine, but result of MapTo is wrong |
How does it look if you debug 1.9.6? |
1.9.6 has completely different code so this would not be the same. |
[cron.update_mirrors] using
is reading and mapping fine, but all other structs not working. |
yeah just testing this and it seems like the mapping to the extended structs isn't working. |
hmm... That's annoying. |
Simplest fix is to just expand out the configs completely - (and of course fix go-ini to cope with the structs as another pr) Agh but that wouldn't work. |
We need an |
Fix go-gitea#12934 Signed-off-by: Andrew Thornton <art27@cantab.net>
I've put in a workaround in as #12939 |
* Allow extended config on cron settings Fix #12934 Signed-off-by: Andrew Thornton <art27@cantab.net>
Backport go-gitea#12939 Fix go-gitea#12934 Signed-off-by: Andrew Thornton <art27@cantab.net>
[x]
):Description
The user attribute synchronisation does not work as expected:
If I change my E-Mail address in LDAP, it will never change in Gitea, same for removed users. A test against deaktivated users by LDAP shows they cannot login (which is good), but in the Users account it will stay listed as "Activated".
Is it posible to trigger a periodical sync to have all "Mail" and LDAP-Account status synchronized?
...
Screenshots
The text was updated successfully, but these errors were encountered: