Issues with Active Directory #5626

Closed
opened 2025-11-02 06:31:20 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @donnyv on GitHub (Jun 24, 2020).

  • Gitea version (or commit ref): 1.11.6 built with GNU Make 4.1, go1.13.11 : bindata, sqlite, sqlite_unlock_notify
  • Git version: 2.17.1
  • Operating system: Windows 10
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • [x ] SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • [x ] Not relevant
  • Log gist:

Description

I had issues using the example AD search filter in your documentation. I got it to work by simplifying the User filter. Instead I used (&(objectCategory=Person)(userPrincipalName=%s))

Once I did this it let me login. But I did notice some issues in the Log file. If I try to do the “Synchronize external user data” under the Dashboard tab. It says this for all of the users. Does it not like the “-” in the domain name?
2020/06/24 10:29:57 models/user.go:1836:SyncExternalUsers() [E] SyncExternalUsers[ARH-NT2]: Error creating user user@arh-us.com: User name is invalid [user@arh-us.com]: must be valid alpha or numeric or dash(-_) or dot characters

Also noticed when it runs across this issue it will automatically deactivate any AD user. Disabling “Enable User Synchronization” stopped the deactivation.
...

Originally created by @donnyv on GitHub (Jun 24, 2020). - Gitea version (or commit ref): 1.11.6 built with GNU Make 4.1, go1.13.11 : bindata, sqlite, sqlite_unlock_notify - Git version: 2.17.1 - Operating system: Windows 10 - Database (use `[x]`): - [ ] PostgreSQL - [ ] MySQL - [ ] MSSQL - [x ] SQLite - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [ ] No - [x ] Not relevant - Log gist: ## Description I had issues using the example AD search filter in your documentation. I got it to work by simplifying the User filter. Instead I used (&(objectCategory=Person)(userPrincipalName=%s)) Once I did this it let me login. But I did notice some issues in the Log file. If I try to do the “Synchronize external user data” under the Dashboard tab. It says this for all of the users. Does it not like the “-” in the domain name? 2020/06/24 10:29:57 models/user.go:1836:SyncExternalUsers() [E] SyncExternalUsers[ARH-NT2]: Error creating user user@arh-us.com: User name is invalid [user@arh-us.com]: must be valid alpha or numeric or dash(-_) or dot characters Also noticed when it runs across this issue it will automatically deactivate any AD user. Disabling “Enable User Synchronization” stopped the deactivation. ...
GiteaMirror added the issue/stale label 2025-11-02 06:31:20 -06:00
Author
Owner

@stale[bot] commented on GitHub (Aug 23, 2020):

This issue has been automatically marked as stale because it has not had recent activity. I am here to help clear issues left open even if solved or waiting for more insight. This issue will be closed if no further activity occurs during the next 2 weeks. If the issue is still valid just add a comment to keep it alive. Thank you for your contributions.

@stale[bot] commented on GitHub (Aug 23, 2020): This issue has been automatically marked as stale because it has not had recent activity. I am here to help clear issues left open even if solved or waiting for more insight. This issue will be closed if no further activity occurs during the next 2 weeks. If the issue is still valid just add a comment to keep it alive. Thank you for your contributions.
Author
Owner

@stale[bot] commented on GitHub (Sep 7, 2020):

This issue has been automatically closed because of inactivity. You can re-open it if needed.

@stale[bot] commented on GitHub (Sep 7, 2020): This issue has been automatically closed because of inactivity. You can re-open it if needed.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#5626