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

LDAP schema problem



need some help
when i do this:
#ldapmodify -D "cn=Manager,dc=k2comp" -w secret -x -a -f /tmp/inserirLdap/newprofile.ldif
this is the result:
adding new entry "cn=utilizador 1,foldName=users,dc=k2comp"
ldapmodify: update failed: cn=utilizador 1,foldName=users,dc=k2comp
ldap_add: Undefined attribute type (17)
additional info: userProfile: attribute type undefined


*schema file*/
attributetype ( 1.3.6.1.4.1.7165.1.2.6
       NAME 'userName'
       DESC 'stores the username from a user of the sytem'
       EQUALITY caseExactIA5Match
       SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{24} )
#attributetype ( 1.3.6.1.4.1.7165.1.2.6 NAME 'userName'
#       EQUALITY caseIgnoreIA5Match
#        SUBSTR caseIgnoreIA5SubstringsMatch
#        SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{24} )

attributetype ( 1.3.6.1.4.1.7165.1.2.7 NAME 'userProfile'
       EQUALITY caseIgnoreIA5Match
       SUBSTR caseIgnoreIA5SubstringsMatch
       SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{20} )

attributetype ( 1.3.6.1.4.1.7165.1.2.8 NAME 'userCurrentLang'
       EQUALITY caseIgnoreIA5Match
       SUBSTR caseIgnoreIA5SubstringsMatch
       SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{3} )

attributetype ( 1.3.6.1.4.1.7165.1.2.9 NAME 'userActive'
       EQUALITY integerMatch
       SYNTAX 1.3.6.1.4.1.1466.115.121.1.27{1} )

attributetype ( 1.3.6.1.4.1.7165.1.2.10 NAME 'userMail'
       EQUALITY caseIgnoreIA5Match
       SUBSTR caseIgnoreIA5SubstringsMatch
       SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{128} )

attributetype ( 1.3.6.1.4.1.7165.1.2.11 NAME 'userPhone'
       EQUALITY telephoneNumberMatch
       SUBSTR telephoneNumberSubstringsMatch
       SYNTAX 1.3.6.1.4.1.1466.115.121.1.50{20} )

attributetype ( 1.3.6.1.4.1.7165.1.2.12 NAME 'userComments'
       EQUALITY caseIgnoreIA5Match
       SUBSTR caseIgnoreIA5SubstringsMatch
       SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{128} )


objectclass ( 1.3.6.1.4.1.7165.1.1.4 NAME 'users' SUP top STRUCTURAL MUST ( cn $ userPassword $ userProfile $ userCurrentLang $ userActive ) MAY ( userMail $ userPhone $ userComments ) )

/*LDIF file*/
#new user
dn: cn=utilizador 1,foldName=users,dc=k2comp
cn: utilizador 1
#userName: utilizador 1
userPassword: pass
userProfile: Perfil 1
userCurrentLang: PT
userMail: email@email.com
userPhone: 1234567896
userActive: 1
userComment: comentarios
objectClass: users
objectClass: dcObject
/