Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Flatly)
  • No Skin
Collapse
Brand Logo

NetXMS Forum

  1. Home
  2. Support
  3. LDAP sync error

LDAP sync error

Scheduled Pinned Locked Moved Support
7 Posts 3 Posters 81.2k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F
    F
    fabrizio.alba
    wrote on last edited by
    #1

    Good morning everyone!
    The LDAP configuration is driving me crazy... please can you help me understand my error?

    • The user srv_netxms is member of a group called "Service Accounts".
    • LDPAS server is properly configured and accessible
    • srv_netxms does not have Admin permission, it is just a regular user
    • LDAPS server is an Active Directory Domain controller
    • same error using LDAP

    Thank you for your help!

    Fabrizio


    Picture1.png

    1 Reply Last reply
    0
    • A
      A
      Alex Kirhenshtein
      wrote on last edited by
      #2

      What kind of error you got?

      Also check with ldapsearch:

      ldapsearch \
          -x \
          -H "ldaps://devfg.rbc.com:3268/" \
          -D "…" \
          -w "…" \
          -b "…" \
          "(objectClass=user)"
      
      1 Reply Last reply
      0
      • F
        F
        fabrizio.alba
        wrote on last edited by
        #3

        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


        ldapsearch.png

        error.png

        1 Reply Last reply
        0
        • F
          F
          fabrizio.alba
          wrote on last edited by
          #4

          Some updates:

          • configuring netXMS with LDAP the error message "LDAP sync error: Cannot login to LDAP server (Can't contact LDAP Server) it disappear, but no users are synced.
          • configuring netXMS with LDAPS the error message "LDAP sync error: Cannot login to LDAP server (Can't contact LDAP Server) it appears again
          • ldapsearch from netXMS server CLI (using both LDAP and LDAPS) works properly, returning users list. The Base search and the bind credentials are the same used in netXMS server configuration

          Any idea?
          Thanks

          1 Reply Last reply
          0
          • F
            F
            fabrizio.alba
            wrote on last edited by
            #5

            No suggestions? 😞

            1 Reply Last reply
            0
            • F
              F
              Filipp Sudanov
              wrote on last edited by
              #6

              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)

              1 Reply Last reply
              0
              • F
                F
                fabrizio.alba
                wrote on last edited by
                #7

                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.

                1 Reply Last reply
                0

                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
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                Powered by NodeBB Contributors
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Users
                • Groups