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

Re: Invalid syntax

At 08:56 AM 5/31/2005, snort Snort wrote:
>The error I got is:
>slapd[1141]: conn=231 fd=10 ACCEPT from
>IP= (IP=
>slapd[1141]: conn=231 op=0 BIND
>dn="cn=sam,dc=authtec,dc=com" method=128
>slapd[1141]: conn=231 op=0 BIND
>dn="cn=sam,dc=authtec,dc=com" mech=SIMPLE ssf=0
>slapd[1141]: conn=231 op=0 RESULT tag=97 err=0 text=
>slapd[1141]: conn=231 op=1 ADD
>slapd[1141]: conn=231 op=1 RESULT tag=105 err=21
>text=objectClass: value #1 invalid per syntax
>slapd[1141]: conn=231 op=2 UNBIND
>slapd[1141]: conn=231 fd=10 closed

This error is discussed in the FAQ at:

In particular, see the last note in this answer.

>I don't know how I reproduce this problem using
>ldapadd comandline. 

With additional logging enabled, slapd(8) will log a
representation of the client request.  From this, one
can produce an LDIF equivalent of the Add request,
and then feed this into ldapadd(1) with the necessary
arguments to do the appropriate Bind operation.