# LDAP integration

**URL:** <https://www.finalbuilder.com/forums/t/ldap-integration/6789>\
**Category:** Discussion\
**Created:** [May 28, 2020, 1:57am UTC](https://www.finalbuilder.com/forums/t/ldap-integration/6789 "2020-05-28T01:57:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![fastbike](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/f/9dc877/32.png) [@fastbike](https://www.finalbuilder.com/forums/u/fastbike)\
**Post date:** [May 28, 2020, 1:57am UTC](https://www.finalbuilder.com/forums/t/ldap-integration/6789/1 "2020-05-28T01:57:37Z")

</div>

I’ve followed the help page, set the Authentication mode on IIS8 to Windows, changed the CI config file to use LDAP with a line like this …

authentication mode=“LDAP” fqdn=“[ad.company.org](http://ad.company.org)” administratorsGroup=“Developers” groupsContainer=“OU=Security,OU=Groups,OU=Main,DC=ad,DC=company,DC=org”

Then restarted both IIS and the CI service.  
When I load the webpage I get a banner “Continua CI service is initialising…” but the page never completes.

The server log file shows these entries …  
[12:11:40.806 ERROR] [T8] [Ldap Synchronizer: Retrieve] Error connecting to Active Directory. Ldap groups and users cannot be updated until the connection is restored. Domain ‘[ad.company.org](http://ad.company.org)’. Groups container: OU=Security,OU=Groups,OU=Main,DC=ad,DC=company,DC=org. The following error occurred: The user name or password is incorrect.

[12:11:40.815 ERROR] [T8] [LDAP Synchroniser] An exception was encountered while synchronizing LDAP:  
System.Exception: Cannot connect to Active Directory. Please check Continua’s connection to the Domain Controller.

I can ping the AD machine

---

<div class="post-metadata">

**Author:** ![Sparky](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/sparky/32/10_2.png) [@Sparky](https://www.finalbuilder.com/forums/u/Sparky)\
**Post date:** [May 28, 2020, 3:23am UTC](https://www.finalbuilder.com/forums/t/ldap-integration/6789/2 "2020-05-28T03:23:38Z")

</div>

Hi David,

I suspect this is a permission issue. Can you check that the user account which the Continua CI Service service is logged in as is a member of the `ad.company.org` domain and has permission to query groups and users on that domain?

---

<div class="post-metadata">

**Author:** ![fastbike](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/f/9dc877/32.png) [@fastbike](https://www.finalbuilder.com/forums/u/fastbike)\
**Post date:** [May 28, 2020, 4:12am UTC](https://www.finalbuilder.com/forums/t/ldap-integration/6789/3 "2020-05-28T04:12:27Z")

</div>

Thx for that fast reply - I will contact our infrastructure team and ask them to check

---

<div class="post-metadata">

**Author:** ![fastbike](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/f/9dc877/32.png) [@fastbike](https://www.finalbuilder.com/forums/u/fastbike)\
**Post date:** [June 4, 2020, 7:03pm UTC](https://www.finalbuilder.com/forums/t/ldap-integration/6789/4 "2020-06-04T19:03:43Z")

</div>

Just to confirm that the server was running under a local service account. It is now running under an AD account and the LDAP integration works fine. Great support thanks. 🤩
