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

RE: Department names?


I have the following ldif file for the ldap server, can you tell me why it
does not pick up the department name in outlook please?

When looking at the structure, this is what i am doing!

This is why i have an ou for the division and an ou for the department,
could the two ou's be confusing outlook and making it not display either ou?

dn: o=emsgroup, dc=co,dc=uk
objectClass: dcObject
objectClass: organization
o: EMSGroup
dc: co.uk

dn: ou=factory,o=emsgroup, dc=co,dc=uk
objectClass: organizationalUnit
ou: Factory

dn: ou=cliftonville,o=emsgroup,dc=co,dc=uk
objectClass: organizationalUnit
ou: cliftonville

dn: ou=Technical Services, ou=factory, o=emsgroup, dc=co, dc=uk
objectClass: organizationalUnit
ou: Technical Services

dn: cn=Kamesh Patel, ou=Technical Services, ou=factory, o=emsgroup, dc=co,
objectClass: Person
objectClass: inetorgperson
cn: Kamesh Patel
sn: Patel
mail: kamesh.patel@emsgroup.co.uk
telephoneNumber: 01234567
facsimileTelephoneNumber: 01234567
title: IT Support Engineer

dn: ou=Sales Administrators, ou=factory, o=emsgroup, dc=co, dc=uk
ou: Sales Administrators
objectClass: organizationalUnit

Thanks in advance


-----Original Message-----
From: owner-openldap-software@OpenLDAP.org
[mailto:owner-openldap-software@OpenLDAP.org]On Behalf Of Michael
Sent: 08 February 2002 19:05
To: Kamesh Patel
Cc: openldap-software@OpenLDAP.org
Subject: Re: Department names?

Kamesh Patel wrote:
> how do i add a department name to ldap? i cant seem to find the schema for
> it in any of the files!
> i have tried:
> dn: departmentNumber=IT,ou=division,o=company,dc=co,dc=uk
> objectclass: inetorgperson
> departmentNumber: IT
> but obviously the above departmentNumber expects a number, with the above,
> this is what i get:
> ldap_add: Object class violation
>         additional info: object class 'inetorgperson' requires attribute
> 'sn'
> Which means i am using the wrong format in the ldif!

Yes, the sn attribute is missing in your entry data.

Attribute departmentNumber is *not* limited to numbers (see RFC 1274
where RFC 2798 borrowed it from). However many clients (e.g.
Outlook) read the department from ou attribute.

Ciao, Michael.