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. Integration with LDAP question

Integration with LDAP question

Scheduled Pinned Locked Moved Support
15 Posts 7 Posters 91.6k 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.
  • D
    D
    deane
    wrote on last edited by
    #5

    Honestly, what I think would work better is a working example set of name value pairs in the documentation for various environments (including Active Directory). It doesn't say which parameters are required, or give example values for most of them.

    The issue I am having is that the netXMS server never even contacts my domain controller to pull info. No users are ever put into netXMS. I tried the regular LDAP port as well as the global catalog port

    Here are the settings I have. I am using the global catalog port (3268), as I want to authenticate users from multiple domains.

    var_name var_value
    LdapConnectionString ldap://dc1.domain.local:3268
    LdapGroupClass
    LdapMappingDescription Description
    LdapMappingFullName displayName
    LdapMappingName sAMAccountName
    LdapSearchBase OU=SITEA Users,DC=domain,DC=local
    LdapSearchFilter
    LdapSyncInterval 120
    LdapSyncUser sitea.domain.local\printerldap
    LdapSyncUserPassword (removed)
    LdapUserClass x
    LdapUserDeleteAction 1

    1 Reply Last reply
    0
    • Z
      Z
      Tatjana Dubrovica
      wrote on last edited by
      #6

      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.

      1 Reply Last reply
      0
      • Z
        Z
        Tatjana Dubrovica
        wrote on last edited by
        #7

        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!

        1 Reply Last reply
        0
        • D
          D
          deane
          wrote on last edited by
          #8

          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 1

          And 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 Down

          And listening for IP traffic to/from 10.100.226.9 I see no traffic whatsoever 😞

          1 Reply Last reply
          0
          • Z
            Z
            Tatjana Dubrovica
            wrote on last edited by
            #9

            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

            1 Reply Last reply
            0
            • D
              D
              deane
              wrote on last edited by
              #10

              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 Down

              Which 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?

              1 Reply Last reply
              0
              • Z
                Z
                Tatjana Dubrovica
                wrote on last edited by
                #11

                All this time I was thinking about possible causes - the only thing I can imagine is that somewhere this packages are blocked by firewall.

                1 Reply Last reply
                0
                • F
                  F
                  farcsa
                  wrote on last edited by
                  #12

                  I am also having issues trying to authenticating AD users via LDAP. The log file contains that line:
                  "LDAPConnection::syncUsers(): FAILED - server was compiled without LDAP support"

                  How to compile NetXMS with LDAP support?

                  1 Reply Last reply
                  0
                  • V
                    V
                    Victor Kirhenshtein
                    wrote on last edited by
                    #13

                    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

                    1 Reply Last reply
                    0
                    • M
                      M
                      mjcig
                      wrote on last edited by
                      #14

                      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 exceeded

                      I 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

                      1 Reply Last reply
                      0
                      • T
                        T
                        tuomar
                        wrote on last edited by
                        #15

                        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 exceeded

                        Here 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

                        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