najmi
05-20-2005, 06:52 AM
Invalid credentials (49) problem
hello,
i try to configure openldap on centos 4.0
this is my output:
ldapadd -x -h 127.0.0.1 -D "cn=Manager,dc=my-domain,dc=com" -w secret -f cuba.ldif
ldap_bind: Invalid credentials (49)
this is my cuba.ldif
-----------------------------------------------------------------------------------------------
dn: dc=my-domain,dc=com
objectclass: dcObject
objectclass: organization
o: Example Company
dc: my-domain
# Organizational Role for Directory Manager
dn: cn=Manager,dc=my-domain,dc=com
objectClass: organizationalRole
cn: Manager
description: Directory Manager
-----------------------------------------------------------------------------------------------
this is my slapd.conf
-----------------------------------------------------------------------------------------------
include /etc/openldap/schema/core.schema
include /etc/openldap/schema/cosine.schema
include /etc/openldap/schema/inetorgperson.schema
include /etc/openldap/schema/nis.schema
allow bind_v2
pidfile /var/run/slapd.pid
argsfile /var/run/slapd.args
database bdb
suffix "dc=my-domain,dc=com"
rootdn "cn=Manager,dc=my-domain,dc=com"
rootpw secret
directory /var/lib/ldap
# Indices to maintain for this database
index objectClass eq,pres
index ou,cn,mail,surname,givenname eq,pres,sub
index uidNumber,gidNumber,loginShell eq,pres
index uid,memberUid eq,pres,sub
index nisMapName,nisMapEntry eq,pres,sub
binddn="cn=Manager,dc=my-domain,dc=com"
loglevel 1
-----------------------------------------------------------------------------------------------
what went wrong actually?
I went thru the details for slapd.conf and cuba.ldif,shouldn't be wrong. or i mislook anything?
hello,
i try to configure openldap on centos 4.0
this is my output:
ldapadd -x -h 127.0.0.1 -D "cn=Manager,dc=my-domain,dc=com" -w secret -f cuba.ldif
ldap_bind: Invalid credentials (49)
this is my cuba.ldif
-----------------------------------------------------------------------------------------------
dn: dc=my-domain,dc=com
objectclass: dcObject
objectclass: organization
o: Example Company
dc: my-domain
# Organizational Role for Directory Manager
dn: cn=Manager,dc=my-domain,dc=com
objectClass: organizationalRole
cn: Manager
description: Directory Manager
-----------------------------------------------------------------------------------------------
this is my slapd.conf
-----------------------------------------------------------------------------------------------
include /etc/openldap/schema/core.schema
include /etc/openldap/schema/cosine.schema
include /etc/openldap/schema/inetorgperson.schema
include /etc/openldap/schema/nis.schema
allow bind_v2
pidfile /var/run/slapd.pid
argsfile /var/run/slapd.args
database bdb
suffix "dc=my-domain,dc=com"
rootdn "cn=Manager,dc=my-domain,dc=com"
rootpw secret
directory /var/lib/ldap
# Indices to maintain for this database
index objectClass eq,pres
index ou,cn,mail,surname,givenname eq,pres,sub
index uidNumber,gidNumber,loginShell eq,pres
index uid,memberUid eq,pres,sub
index nisMapName,nisMapEntry eq,pres,sub
binddn="cn=Manager,dc=my-domain,dc=com"
loglevel 1
-----------------------------------------------------------------------------------------------
what went wrong actually?
I went thru the details for slapd.conf and cuba.ldif,shouldn't be wrong. or i mislook anything?