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

[no subject]



Hello,guys:
Here is Jiao, who is new to ldap and working on extending default LDAP attributes
and object
classes for our LDAP server project.
Following is the local.schema I created for our faculty class object and
three attributes I created for it, I put
this
file under the proper schema folder and updated our slapd.conf file
accordingly.
But when I try to add an new faculty entry to the directory, it gives me
an error (attribute 'netID' undefined). Could you give me some clue?

"attributetype ( 1.1.2.1.1 NAME 'netID'
                DESC 'UA net ID for people associated with UA'
                EQUALITY caseExactMatch
                SUBSTR caseExactSubstringsMatch
                SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
                SINGLE-VALUE )

attributetype ( 1.1.2.1.2 NAME 'buildingName'
  DESC 'building Name where a person works/resides'
  EQUALITY caseIgnoreMatch
  SUBSTR caseIgnoreSubstringsMatch
  SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 )

attributetype ( 1.1.2.1.3 NAME 'roomNumber'
  DESC 'number for the room where a person works/resides'
  EQUALITY caseIgnoreMatch
  SUBSTR caseIgnoreSubstringsMatch
  SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 )

objectclass ( 1.1.2.2.1 NAME 'faculty'
                DESC 'faculty for UA'
                SUP organizationalPerson
                MUST ( netID $ coName )
                MAY buildingName $ roomNumber ) "

Here is the ldif file I used to add the new entry.
"dn: cn=Delen Kan,dc=mis,dc=arizona,dc=edu
cn: Delen Kan
objectClass: faculty
netID: DKan
title: Professor
telephoneNumber: (520) 888-8888
postOfficeBox: 520a
buildingName: Hewett HALL
roomNumber: 520a "

Thanks so much,
Jiao