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

blank attribute (Help me) :-(



Hi all, 

 

I have a problem migrating my sun one directive Server  to openldap. 

 

i have a ldif imported by Sun one with  a serials attributes like this: 

 

 

dn: uid=30000000,ou=people,ou=es-lm,o=corp.happyparty.com

changetype: add

objectclass: privPerson

employeeNumber: 52432234S

privContractStartDate: 11/04/2000

privContractEndDate: 31/12/2999

privOperationalEndDate: 

title: VENDEDOR

privDepartmentCode: 005

departmentNumber: MOQUETA

privBusinessCategoryCode: 017

businessCategory: VIGO

privBusinessAreaCode:

o: HAPPY PARTY

co: ENGLAND 

manager: 

mail : 

privAccountStatus: 1

cn: JONH SMITH 

preferredLanguage: en

uid: 30000000

userPassword: 23d456

employeeType: 1

telephoneNumber: 

facsimileTelephoneNumber: 

givenName: JOHN

sn: SMITH

 

for the priv(attributes) like (privContractStartDate,
privContractStartDate, privBusinessCategoryCode ?.) i have created a
schema for openldap. 

 

This is the schema: 

 

#

# draft-lachman-laser-ldap-mail-routing-02.txt !!!EXPIRED!!!

#

 

attributetype ( 1.3.6.1.4.1.1820.7.2.5 NAME 

            'privContractStartDate'

            DESC 'date de debut de contrat'

            SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{256}

            SINGLE-VALUE )

                        

 

attributetype ( 1.3.6.1.4.1.1820.7.2.4 NAME 

            'privContractEndDate'

            DESC 'date de fin de contrat'

            SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{256}

            SINGLE-VALUE )

 

attributetype ( 1.3.6.1.4.1.1820.7.2.12 NAME 

            'privOperationalEndDate'

        DESC 'date de fin operationnelle'

        SYNTAX 1.3.6.1.4.1.1466.115.121.1.40

            SINGLE-VALUE )

        

 

attributetype ( 1.3.6.1.4.1.1820.7.2.6 NAME 

            'privDepartmentCode'

        DESC 'code du rayon ou service'

        SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 

            SINGLE-VALUE )

 

 

attributetype ( 1.3.6.1.4.1.1820.7.2.2 NAME 

            'privBusinessCategoryCode'

        DESC 'code business category'

        SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 

            SINGLE-VALUE )

 

attributetype ( 1.3.6.1.4.1.1820.7.2.17 NAME 

            'privBusinessAreaCode'

        DESC 'code de la region'

        SYNTAX 1.3.6.1.4.1.1466.115.121.1.40

            SINGLE-VALUE )

 

attributetype ( 1.3.6.1.4.1.1820.7.2.1 NAME 

            'privAccountStatus'

        DESC 'etat du compte'

        SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 

            SINGLE-VALUE )

 

 

#######################################

# ObjectClass privPerson : privPerson #

#######################################

 

 

objectclass ( 1.3.6.1.4.1.1820.7.1.1

        NAME 'privPerson'

        SUP inetOrgPerson 

        STRUCTURAL

        MUST ( employeeNumber $ employeeType $ givenName $
privAccountStatus $ privContractEndDate $ privContractStartDate $ uid $
userPassword )

        MAY ( co $ privBusinessAreaCode $ privBusinessCategoryCode  $
privDepartmentCode $ privOperationalEndDate $ mail ))

 

 

Ok, when i try to load the ldif appears to me this error:

 

adding new entry "uid=30000001,ou=people,ou=es-lm,o=corp.happyparty.com"

ldap_add: Invalid syntax (21)

        additional info: mail: value #0 invalid per syntax

 

 

this appears when the mail attribute is blank, but when the mail attribute
is writted that´s all OK. 

 

 

The question is: how could i load the ldif with blanks attributes? 

 

 

Thanks a lot of .