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

[Q] Can a dn have multiple ou-s?



Hi,

I am relatively new to LDAP.  I am in the process of moving my
university's alumni database into LDAP.  While playing around with slapd
2.0.11 I came across a problem.  Since I am not that conversant with
LDIF/LDAP terminology, let me try to explain what my problem is...

Each alumni is uniquely identified by a combination of their name, the
year they graduated in, the department they graduated from and the
college that department was part of.

The heirarcy for the university->college->department goes something like
this:

			University
			    |
   ------------------------------------------------
   |                 |               |            |
 College 1        College 2      College 3     College 4
   |
 ----------------------
 |          |          |
Dept 1    Dept 2     Dept 3



And the heirarcy for the year of graduation goes something like this:

			University
			     |
    ------------------------------------------------
    |               |              |                |
 Class of AA    Class of BB    Class of CC      Class of DD


My problem is that I am unable to add an entry with the dn like the
following:

dn: cn=FirstName LastName,ou=Class of 1993,ou=Department of Zoology,
ou=FacultyOfScience, o=aunet
cn: FirstName LastName
sn: LastName
mail: foo@bar.com
roomNumber: 1993
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson


[Note: I'm using roomNumber to represent the year of graduation as an
attribute]

Here is a more complete LDIF snippet:

dn: dc=aunet, dc=org
objectclass: top
objectclass: dcObject
objectclass: organization
dc: aunet
o: aunet
o: Annamalai University Alumni
o: Annamalai University
description: Annamalai University Domain

dn: o=aunet
objectClass: top
objectClass: organization
o: aunet
description: Annamalai University

dn: cn=AUNetAdmin,o=aunet
objectClass: organizationalRole
cn: AUNetAdmin
description: AUNet LDAP Directory Administrator

###############################################################
# Define the faculties
###############################################################
dn: ou=FacultyOfScience, o=aunet
ou: FacultyOfScience
objectclass: top
objectclass: organizationalUnit
objectClass: faculty
description: The Faculty of Science

###############################################################
# Define the Years of Graduation
###############################################################
dn: ou=ClassOf1993, o=aunet
ou: ClassOf1993
objectclass: top
objectclass: organizationalUnit
description: Graduated in 1993

dn: cn=FirstName LastName,ou=ClassOf1993,ou=Department of Zoology,
ou=FacultyOfScience, o=aunet
cn: FirstName LastName
sn: LastName
mail: foo@bar.com
roomNumber: 1993
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson




Is it even possible to combine two ou-s from different heirarcies?  If I
really want to do this, how should I go about doing this?

Thanks.

S.
-- 
thaths at aunet.org  Compounder Without Borders 
http://www.aunet.org/thaths/