12
Views
1
Comments
Solved
[LDAP] Import User Data from a LDAP Directory

Hi , 

I need to acquire user data using LDAP. to test I use a free directory from this link: Online LDAP Test Server - Forum Systems 

 I already configure in the Authentication Tab from my environment https://<myEnvironment>/Users/ConfigureAuthentication.aspx 

I read the Documentation (https://success.outsystems.com/Documentation/11/Developing_an_Application/Secure_the_Application/End_User_Management/End_Users_Authentication/Configure_LDAP_Authentication ) but it doesn't seem to work as I expect.

as you can see in the snapshot I have an error in the test area ( An invalid dn syntax has been specified.  )

can you help me to understand how to use it? can you give me an real example how to configure correctly the ldap page ? 

Thanks for your support


mvp_badge
MVP
Rank: #72
Solution

Hi Gianfederico,

We need the following LDAP Server information in order to connect to it:

With this information we would need to setup the configuration as follows in the Users application:

Let's review this configuration. 

  • The LDAP URL you already had setup correctly. You may leave out the LDAP://, it works either way. Only if you need to use a Secure LDAP connection (and the server supports it) you need the prefix the LDAP URL with LDAPS://. The port 389 is already the default LDAP port so that part we can also leave out (otherwise it would be ldap.forumsys.com:389/dc=example,dc=com)
  • Next up you need to setup the Distinguished Name (DN) credentials. They are already provided under Bind DN and Bind Password so we can just copy/paste the values in the Manager DN and Manager Password fields.
  • Then we need to Save this configuration
  • Last, we can test the configuration using a Username (uid) and Password from the LDAP directory. As you can see we need to append the Domain Components (DC) part here too just like we did for LDAP URL and Manager DN credentials.

As you can see this configuration seems to work just fine.

Hope this helped!

Regards,

Nordin