Link to home
Start Free TrialLog in
Avatar of beer9
beer9Flag for India

asked on

How to authenticate ldap server to query?

I am using ldapsearch command and getting below error while querying:

$ ldapsearch -x "(objectclass=*)"
# extended LDIF
#
# LDAPv3
# base <dc=goexample,dc=me> (default) with scope subtree
# filter: (objectclass=*)
# requesting: ALL
#

# search result
search: 2
result: 1 Operations error
text: 00002020: Operation unavailable without authentication

# numResponses: 1

Open in new window


content of /etc/openldap/ldap.conf
#
# LDAP Defaults
#

# See ldap.conf(5) for details
# This file should be world readable but not world writable.

#BASE   dc=example,dc=com
#URI    ldap://ldap.example.com ldap://ldap-master.example.com:666

#SIZELIMIT      12
#TIMELIMIT      15
#DEREF          never

BASE    dc=goexample,dc=me
URI     ldap://10.0.1.203
TLS_CACERTDIR /etc/openldap/cacerts

Open in new window


I think I am getting authentication error.. I can I supply a userid and password with ldapsearch command?
ASKER CERTIFIED SOLUTION
Avatar of Dan McFadden
Dan McFadden
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial