ldap增加信息报错,请高手解决!(转)

ldap增加信息报错,请高手解决!(转)[@more@]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

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/10617542/viewspace-959186/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/10617542/viewspace-959186/

你可能感兴趣的:(ldap增加信息报错,请高手解决!(转))