cannot import users from ldap server

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
pccwglobalit
Posts: 105
Joined: Wed Mar 11, 2015 9:00 pm

cannot import users from ldap server

Post by pccwglobalit »

we have configured ldap server and can get result using ldapsearch. however, when i input the same username and password in web console and it said
"Unable to authenticate: Could not connect to the LDAP server selected."
there is a green tick on the left of ldap servers.

ass=*)" -vsxi1-tmh2 ~> ldapsearch -D "uid=nagiosxi,ou=System,dc=XXXXX,dc=com" -w YYYYYYY -p 389 -h 192.168.222.111 -b "cn=systemadmin,ou=Group,dc=pccwglobal,dc=com" -s sub -x -ZZ "(objectcla
ldap_initialize( ldap://192.168.222.111:389 )
filter: (objectclass=*)
requesting: All userApplication attributes
# extended LDIF
#
# LDAPv3
# base <cn=systemadmin,ou=Group,dc=XXXXX,dc=com> with scope subtree
# filter: (objectclass=*)
# requesting: ALL
#

# search result
search: 3
result: 32 No such object
matchedDN: ou=Group,dc=XXXXXXXX,dc=com

# numResponses: 1
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: cannot import users from ldap server

Post by rkennedy »

From the Nagios server, can you run nmap 192.168.222.111 and post the result?

What LDAP server are you running?

Does your username / password contain any special characters?
Former Nagios Employee
pccwglobalit
Posts: 105
Joined: Wed Mar 11, 2015 9:00 pm

Re: cannot import users from ldap server

Post by pccwglobalit »

we can see the port is opened (port 389)
and also there is no special character.
we can login from console.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: cannot import users from ldap server

Post by ssax »

What LDAP server software are you running?

If it's using uid instead of cn, modify the username like this for the import:

Code: Select all

uid=nagiosxi,ou=System,dc=XXXXX,dc=com
Locked