|
在匯入 ldif 文件的時候系統提示:
[root@sz-mail02 openldap]# ldapadd -x -D "cn=Manager,dc=mygroup,dc=com" -W -f /root/cc.ldif
Enter LDAP Password:
adding new entry "cn=workpass ( china-sz ),dc=mygroup,dc=com"
ldap_add: Object class violation (65)
additional info: attribute 'Visible' not allowed
哪裏出錯了?望各位指點我一下,謝謝!
dn: cn=workpass ( china-sz ),dc=objectClass: squidAccount,dc=com
cn: workpass ( china-sz )
sn: workpass
givenName: workpass
objectClass: person
objectClass: SZInformation
objectClass: inetOrgPerson
objectClass: postfixAccount
objectClass: squidAccount
title: N/A
Visible: Ture
mail: workpass@mygroup.com
uid: workpass
mailacceptinggeneralid: workpass@sz-mail02.mygroup.com
telephoneNumber: (086)755-
physicalDeliveryOfficeName: 6/F
o: mygroup Enterprises Limited
c: China
ou: IT
userPassword:: Ym9zc2luaQ==
maildrop: workpass@sz-mail02.mygroup.com
下面是 szdepartment.schema 文件的內容:
attributetype (1.3.6.1.4.1.9215.2.1.1
NAME 'Visible'
DESC 'Boolean'
SINGLE-VALUE
EQUALITY caseIgnoreMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 )
attributetype (1.3.6.1.4.1.9215.2.1.2
NAME 'HasProfile'
DESC 'Boolean'
SINGLE-VALUE
EQUALITY caseIgnoreMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 )
attributetype ( 1.3.6.1.4.1.9215.2.1.3
NAME 'JobDuty'
EQUALITY caseIgnoreMatch
SUBSTR caseIgnoreSubstringsMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{32768} )
attributetype ( 1.3.6.1.4.1.9215.2.1.4
NAME ( 'DateJoin' )
DESC 'Date Join (format YYYYMMDD, only numeric chars)'
EQUALITY numericStringMatch
SINGLE-VALUE
SYNTAX 1.3.6.1.4.1.1466.115.121.1.36{8} )
attributetype ( 1.3.6.1.4.1.9215.2.1.5
NAME ( 'DateOfBirth' )
DESC 'Date of Birth (format YYYYMMDD, only numeric chars)'
EQUALITY numericStringMatch
SINGLE-VALUE
SYNTAX 1.3.6.1.4.1.1466.115.121.1.36{8} )
attributetype ( 1.3.6.1.4.1.9215.2.1.6
NAME 'Hobby'
EQUALITY caseIgnoreMatch
SUBSTR caseIgnoreSubstringsMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{32768} )
attributetype ( 1.3.6.1.4.1.9215.2.1.9
NAME 'FBURL'
EQUALITY caseIgnoreMatch
SUBSTR caseIgnoreSubstringsMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{32768} )
objectClass ( 1.3.6.1.4.1.9215.2.1
NAME 'SZInformation'
DESC 'Information of Colleague'
MUST ( uid )
MAY ( Visible $ HasProfile $ JobDuty $ DateJoin $ DateOfBirth $ Hobby $ FBURL )) |
|