Integration with LDAP question
-
In configuration I see 1 mistake: no search filter. If all should be taken then filter should be "(objectClass=*)". In next release this value will be set by default if LdapSearchFilter will be empty.
It looks like your server is built without LDAP support. Please enable debug level 4, run command "ldapsync" in server console and provide output.
Thank you for advice! I'll add information about required fields, and some default configuration to documentation.
-
Hi,
I have added some updates to LDAP section: https://www.netxms.org/documentation/adminguide/user-management.html#integration-with-ldap
Please check. Comments and corrections are welcome.
Thank you!
-
That is super helpful, thank you!
We are much closer now.
So now with:
var_name var_value
LdapConnectionString ldap://10.100.226.9:389
LdapGroupClass group
LdapMappingDescription description
LdapMappingFullName displayName
LdapMappingName cn
LdapSearchBase OU=XX Users,DC=XX,DC=XY,DC=local
LdapSearchFilter (objectClass=*)
LdapSyncInterval 1440
LdapSyncUser CN=printerldap,CN=Users,DC=XX,DC=XY,DC=local
LdapSyncUserPassword xxxxx
LdapUserClass user
LdapUserDeleteAction 1And debug level of 4, I get this in the log:
[12-Sep-2014 09:34:38.080] [DEBUG] LDAPConnection::initLDAP(): Connecting to LDAP server
[12-Sep-2014 09:34:40.092] [DEBUG] LDAPConnection::loginLDAP(): LDAP could not login. Error code: Server DownAnd listening for IP traffic to/from 10.100.226.9 I see no traffic whatsoever

-
Most probably incorrect port.
The default setting is as follows:
- When [Off] is selected for "SSL"
- If [Active Directory] or [Other LDAP Server] is selected, 389.
- If [Active Directory Global Catalog] is selected, 3268.
- When [On (Full Validation: CA + Certificate)] or [On (Certificate Only, CA not validated)] is selected for "SSL"
- If [Active Directory] or [Other LDAP Server] is selected, 636.
- If [Active Directory Global Catalog] is selected, 3269.
 Â
Originally taken
- When [Off] is selected for "SSL"
-
I actually removed all my config, and put in the exact information for Active directory given in the sample. I still get this same error:
[15-Sep-2014 08:17:42.797] [DEBUG] LDAPConnection::initLDAP(): Connecting to LDAP server
[15-Sep-2014 08:17:44.810] [DEBUG] LDAPConnection::loginLDAP(): LDAP could not login. Error code: Server DownWhich is expected.
However, running tcpdump/Wireshark, I don't see any connection attempts from the system to 10.5.0.35 port 389. It seems net-xms isn't even attempting to make the connection?
-
All this time I was thinking about possible causes - the only thing I can imagine is that somewhere this packages are blocked by firewall.
-
-
Hi,
I assume you are on Linux. Then you have to install OpenLDAP development package (libldap2-dev on Debian, openldap-devel on RedHat) and re-run configure and make. Pay attention to configure's summary output - it should say yes for LDAP support.
Best regards,
Victor -
not to hijack this thread as well... but having an issue syncing ldap as well.
we are running on linux and conecting to Active Directory. It appears I can hit the domain but receiving an error
[14-Oct-2014 15:37:40.350] [DEBUG] LDAPConnection::initLDAP(): Connecting to LDAP server
[14-Oct-2014 15:37:40.851] [DEBUG] LDAPConnection::syncUsers(): LDAP could not get search results. Error code: Size limit exceededI have encountered this behavior before and setting the size limit to 0 or unlimited will resolve the issue. However where can I configure this option and set the sizelimit to unlimited?
Appreciate your help
-
Hi,
[14-Oct-2014 15:37:40.350] [DEBUG] LDAPConnection::initLDAP(): Connecting to LDAP server
[14-Oct-2014 15:37:40.851] [DEBUG] LDAPConnection::syncUsers(): LDAP could not get search results. Error code: Size limit exceededHere is other thread: https://www.netxms.org/forum/configuration/ldap-config-exceed-size-limit-ms-active-directory/
Win2003/2008 AD have default value of MaxPageSize = 1000.Rgs
 TM
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login