NetXMS Support Forum

English Support => General Support => Topic started by: fabrizio.alba on February 26, 2024, 10:26:38 AM

Title: LDAP sync error
Post by: fabrizio.alba on February 26, 2024, 10:26:38 AM
Good morning everyone!
The LDAP configuration is driving me crazy... please can you help me understand my error?

Thank you for your help!

Fabrizio
Title: Re: LDAP sync error
Post by: Alex Kirhenshtein on February 26, 2024, 11:47:04 AM
What kind of error you got?

Also check with ldapsearch:

ldapsearch \
    -x \
    -H "ldaps://devfg.rbc.com:3268/" \
    -D "..." \
    -w "..." \
    -b "..." \
    "(objectClass=user)"
Title: Re: LDAP sync error
Post by: fabrizio.alba on February 27, 2024, 04:30:47 PM
Good morning Alex, thank you for your feedback.
See below the ldapsearch results (just a simply query to test LDAPS connections and credentials) and error from netXMS.
I posted my netXMS LDAP conf on my first post. The users used in both ldapsearch and netxms LDAP conf are the same.
Thank you for your help!

Fabrizio
Title: Re: LDAP sync error
Post by: fabrizio.alba on February 28, 2024, 11:48:29 AM
Some updates:
Any idea?
Thanks
Title: Re: LDAP sync error
Post by: fabrizio.alba on March 01, 2024, 03:10:55 PM
No suggestions? :( 
Title: Re: LDAP sync error
Post by: Filipp Sudanov on March 08, 2024, 01:16:14 PM
Try increasing debug level for tag "ldap" by issuing

debug ldap 8

in server debug console (Tools -> Server Debug Console or nxamd -i from command line).
Then issue

ldapsync

command there - it will force the synchronization and check netxmsd log (/var/log/netxmsd)
Title: Re: LDAP sync error
Post by: fabrizio.alba on March 11, 2024, 10:30:38 AM
Quick update...
I solved it: it was enough to use the IP address of the LDAPS server instead of the NS.
I don't know why, but even if Ubuntu was able to resolve the domain name of the LDAPS server, the same thing didn't happen using the NS in the netXMS parameters.