-
-
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
Gitea deactivates user every day #4067
Comments
I have same issue. And my solution is set
; Synchronize external user data (only LDAP user synchronization is supported)
[cron.sync_external_users]
; Synchronize external user data when starting server (default false)
RUN_AT_START = false
SCHEDULE = @every 24h
UPDATE_EXISTING = false |
Thanks for this workaround! edit: Just confirming that it worked for me, thanks again. I will leave this issue open as I believe this to be something that needs fixing. |
Hello harryxu, im using docker to host my gitea... how can I change this setting? All my accounts are getting deactivated every day. |
Please specify your LDAP source configuration & LDAP server software being used |
Using MS Active Directory: User Filter= (sAMAccountName=%s) |
@yamss https://docs.gitea.io/en-us/install-with-docker/#customization May be you can mount your custom folder to docker container? |
LDAP (via BindDN), Unencrypted. I'm using OpenLDAP (slapd) 2.4.44+dfsg-5+deb9u1 |
Looks like I got it to work by setting "cn" (username, in my case) as value of "Username attribute" - it was empty before. Logs before this change:
Logs after this change:
|
@ghtyrant I had the same problem (well, different parameter names and values, OpenLDAP) and indeed, setting the "Username attribute" field fixed the problem. So, I'll call this a documentation problem. The documentation makes it seem that it's safe to leave the username attribute field empty, because it would just do the right thing then. |
@ghtyrant That fixed it for me! Thanks so much! |
This is the right answer, change "Username Attribute" to "cn" makes it working, but but but, there is new trouble coming later because gitea seems to like "sAMAccountName" equals "cn", if they 2 attribute values not equal each other, there is trouble. update, my final configs following, start working now |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions. |
This issue has been automatically closed because of inactivity. You can re-open it if needed. |
[x]
):Description
Every day at 10:15, gitea deactivates my user. I have to navigate to the web interface (where I'm still logged in and have administrative permissions) and manually reactivate myself, otherwise I can't push to repositories. All I see in log files are the following queries being run in xorm.log:
The other log files contain nothing that would suggest what is going on. I'm using LDAP authentication (Bind DN).
The text was updated successfully, but these errors were encountered: