ldapsearch -x -b '' -s base '(objectclass=*)' namingContexts
# extended LDIF
#
# LDAPv3
# base <> with scope base
# filter: (objectclass=*)
# requesting: namingContexts
#
#
dn:
namingContexts: dc=it,dc=com
# search result
search: 2
result: 0 Success
# numResponses: 2
# numEntries: 1
ldapadd -D "cn=root" -W
Enter LDAP Password:
SASL/GSSAPI authentication started
ldap_sasl_interactive_bind_s: Local error (-2)
additional info: SASL(-1): generic failure: GSSAPI Error: Miscellaneous failure (No credentials cache found)
各位高手,是哪里的问题呢?
slap.conf
include /usr/local/etc/openldap/schema/core.schema
include /usr/local/etc/openldap/schema/corba.schema
include /usr/local/etc/openldap/schema/cosine.schema
include /usr/local/etc/openldap/schema/dyngroup.schema
include /usr/local/etc/openldap/schema/inetorgperson.schema
include /usr/local/etc/openldap/schema/misc.schema
include /usr/local/etc/openldap/schema/openldap.schema
include /usr/local/etc/openldap/schema/nis.schema
include /usr/local/etc/openldap/schema/java.schema
pidfile /usr/local/var/run/slapd.pid
argsfile /usr/local/var/run/slapd.args
access to dn="." by * read
access to dn="cn=root" by * read
access to *
by self write
by users read
by anonymous auth
database bdb
suffix "dc=it,dc=com"
rootdn "cn=root,dc=it,dc=com"
rootpw {SSHA}3MaXwW6l7fcmTCWbji3/YdlrtW7vNTav
directory /usr/local/var/openldap-data
index objectClass eq