beer9
asked on
How to authenticate ldap server to query?
I am using ldapsearch command and getting below error while querying:
content of /etc/openldap/ldap.conf
I think I am getting authentication error.. I can I supply a userid and password with ldapsearch command?
$ 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
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
I think I am getting authentication error.. I can I supply a userid and password with ldapsearch command?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.