[Date Prev][Date Next] [Chronological] [Thread] [Top]

ldap_add: Invalid syntax additional info: objectClass: value #1 contains invalid data



Hi,

I am trying to implment LDAP to do the followings:

1.  passwd athentication for both unix and nt.

2. lookup email address (maybe phone #) from mail clients such as
netscape, outlook.


I installed:

cyrus-sasl-1.5.24
db-3.3.11
openssl-0.9.6b
openldap-2.0.11

without errors. However, I think I have done something wrong when
putting them together.

I've got the following error when adding the first entry:

$ ldapadd -f entries.ldif -x -D "cn=Manager,dc=plxtech,dc=com" -w secret

adding new entry "dc=plxtech,dc=com"
ldap_add: Invalid syntax
        additional info: objectClass: value #1 contains invalid data

ldif_record() = 21

$ ldapadd -f entries.ldif -D "cn=Manager,dc=plxtech,dc=com" -w secret
ldap_sasl_interactive_bind_s: No such attribute

$ more /tmp/entr*
dn: dc=plxtech,dc=com
objectClass: dcObject
objectClass: organization
o: PLX Technology
dc: plxtech
description: PLX Technology

dn: cn=Manager,dc=plxtech,dc=com
objectClass: organizationalRole
cn: Manager
description: Directory Manager

I'd like to use sasl. but looks like I didn't configure it properly.
Please help. Thanks,

Here's how I ran configure and start slapd :

env CPPFLAGS=-I/usr/local/ssl/include/openssl
LDFLAGS=-L/usr/local/ssl/lib:/usr/local/lib/sasl ./configure --with-tls
--with-cyrus-sasl

/usr/local/libexec/slapd -h "ldaps:/// ldap:///";

Winnie