Find the answer to your Linux question:
Results 1 to 2 of 2
Hi all, I'm cuspide. I having a problem with OpenLdap. I installed with success the last version of OpenLDAP on my Mandriva. It works fine with the default schema (core.schema). ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jun 2006
    Posts
    2

    OpenLDAP don't works: dap_add: Invalid DN syntax (34)


    Hi all,
    I'm cuspide. I having a problem with OpenLdap. I installed with success the last version of OpenLDAP on my Mandriva. It works fine with the default schema (core.schema). Then, I wrote a personal schema (unipv.schema) and I modifyied the slapd.conf file. A success returns when I run slaptest but when I run ldapadd -f tmp/newentry -D "cn=cuspide,dc=unipv,dc=it" -W and I insert the password, it returns this error:

    ldapadd -f tmp/newentry -D "cn=cuspide,dc=unipv,dc=it" -W
    ldap_add: Invalid DN syntax (34)
    additional info: invalid DN

    Where is the error?

    ------------------------------------------------------------------------------

    This is my schema unipv.schema...

    attributetype ( 0.9.2342.19200300.100.1.25
    NAME ( 'dc' 'domainComponent' )
    DESC 'RFC1274/2247: domain component'
    EQUALITY caseIgnoreIA5Match
    SUBSTR caseIgnoreIA5SubstringsMatch
    SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE )

    attributetype ( 1.1.1.1 NAME 'id'
    DESC 'descrizione di prova'
    SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 )

    attributetype ( 1.1.1.2 NAME 'nome'
    DESC 'nominativo dell utente'
    SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 )

    attributetype (1.1.1.3 NAME 'cognome'
    DESC 'cognome dell utente'
    SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 )

    objectclass (1.1.2.1 NAME 'studente'
    MUST (id $ nome)
    MAY cognome )

    ---------------------------------------------------

    ... this is my slapd.confg...

    include /usr/local/openldap/etc/openldap/schema/unipv.schema
    access to * by * read
    referral ldap://localhost
    database bdb
    suffix "dc=unipv,dc=it"
    rootdn "cn=cuspide,dc=unipv,dc=it"
    rootpw xxxxxxx
    directory /usr/local/var/openldap-data/

    ----------------------------------------------------------

    ... and my tmp/newentry is

    dn: id=pippo,dc=unipv,dc=it
    objectclass: studente
    nome: Pippo
    cognome: Pippo

  2. #2
    Just Joined!
    Join Date
    Jun 2006
    Posts
    2

    YES, now it works

    Ok, now OpenLDAP works fine.
    I forgot the OID Macros in my schema. This is the correct file:

    objectidentifier unipv 1.1
    objectidentifier pvAttribute unipv:1
    objectidentifier pvClass unipv:2

    attributetype ( pvAttribute:1 NAME ( 'dc' 'domainComponent' )
    DESC 'RFC1274/2247: domain component'
    EQUALITY caseIgnoreIA5Match
    SUBSTR caseIgnoreIA5SubstringsMatch
    SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE )

    attributetype ( pvAttribute:2 NAME 'id'
    DESC 'descrizione di prova'
    EQUALITY caseIgnoreMatch
    SUBSTR caseIgnoreSubstringsMatch
    SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 )

    attributetype ( pvAttribute:3 NAME 'nome'
    DESC 'nominativo dell utente'
    EQUALITY caseIgnoreMatch
    SUBSTR caseIgnoreSubstringsMatch
    SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 )

    attributetype (pvAttribute:4 NAME 'cognome'
    DESC 'cognome dell utente'
    EQUALITY caseIgnoreMatch
    SUBSTR caseIgnoreSubstringsMatch
    SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 )

    objectclass (pvClass:1 NAME 'studente'
    MUST (id $ nome)
    MAY cognome )

    Thanks all!!!!!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •