Closed aessig closed 7 years ago
@JackAdams Any idea what could be the problem ?
Here's an example that's working for me:
{
"serverDn": "OU=SOME_OU,DC=example,DC=com",
"serverUrl": "ldap://ldap.example.com:389",
"whiteListedFields": [
"displayName"
]
}
The only differences I can see are:
serverUrl
(more likely to be the issue)I also noticed that your serverDn
and serverUrl
have a mismatch. You have:
"serverDn": "dc=example,dc=com",
"serverUrl": "ldap://ldap.forumsys.com",
it should be:
"serverDn": "dc=forumsys,dc=com",
"serverUrl": "ldap://ldap.forumsys.com:389",
(Although this is probably just because you forgot to change the forumsys
to example
in your sample code. ;-))
Thank you very much @JackAdams. Unfortunately, it doesn't work. The server is "dc=example,dc=com" has you can see on the image I have linked with.
However they give bind DN and bind Password, is it something I should provide in some way ?
Have you tried both these?
"serverDn": "dc=example,dc=com",
"serverUrl": "ldap://ldap.forumsys.com:389",
and
"serverDn": "dc=forumsys,dc=com",
"serverUrl": "ldap://ldap.forumsys.com:389",
Note the inclusion of the port number.
Unfortunately it doesn't work with this directory. But I make it work with an other active directory by adding:
LDAP.searchField='userPrincipalName';
LDAP.searchValueType='userPrincipalName';
So it's good for now. Thank you for your help.
Hi, Great package, I tried to make it work with this simple public directory for hours without success. http://www.forumsys.com/tutorials/integration-how-to/ldap/online-ldap-test-server/
Any idea how to configure the settings to make it work. I have constantly the error "invalid DN"
Here is my config:
and then I used "einstein" and "password" as credentials.
Here is my output: