# Settings for Active Directory

**URL:** <https://forum.gitea.com/t/settings-for-active-directory/2382>\
**Category:** General\
**Created:** [August 5, 2020, 10:07am UTC](https://forum.gitea.com/t/settings-for-active-directory/2382 "2020-08-05T10:07:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vtmb](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/vtmb/32/909_2.png) [@vtmb](https://forum.gitea.com/u/vtmb)\
**Post date:** [August 5, 2020, 10:07am UTC](https://forum.gitea.com/t/settings-for-active-directory/2382/1 "2020-08-05T10:07:43Z")

</div>

Hello,

I am trying to make my gitea installation accessible to the users in my active directory, but it won’t work.[Bildschirmfoto 2020-08-05 um 12.00.05|371x500](https://forum.gitea.com/uploads/short-url/3RydGeCaRiZHiudCUEBjLkMq3gx.png)

My log says:

2020/08/05 11:58:03 models/user.go:1873:SyncExternalUsers() [E] SyncExternalUsers LDAP source failure [web **ldap** @mycompany.de], skipped

What am I missing? I was able to connect my users to a moodle instance, so my active directory should work. There must be an error in the settings here.

Thank you in advance.

---

<div class="post-metadata">

**Author:** ![bkraul](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/bkraul/32/4728_2.png) [@bkraul](https://forum.gitea.com/u/bkraul)\
**Post date:** [August 10, 2020, 3:01pm UTC](https://forum.gitea.com/t/settings-for-active-directory/2382/2 "2020-08-10T15:01:04Z")

</div>

I would remove the (OU=Users, DC=…) in the filter. You already declared that as your search base. Then, from that point, just make sure your filter members are properly terminated and joined.
