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

RE:



Hi,

It still says the same thing....Attribute not allowed. If I try to use anything which is not in core.schema then it says so.

Both "pilotPerson" and "inetOrgPerson" are defined in

cosine.schema & inetorgperson.schema

I have included both these files in slapd.conf. I also did a stop and start server. But then also its not working.

Thanks

Monica





From: "Alexandre Ghisoli" <alexandre.ghisoli@ycom.ch>
Reply-To: <alexandre.ghisoli@ycom.ch>
To: "monica gupta" <monicaldap@hotmail.com>
Subject: RE:
Date: Tue, 16 Jan 2001 20:11:09 +0100

Monica,

Try to use pilotPerson as objectClass, because pilotPerson add *many*
features (see below)

HTH

	--Alexandre

<from cosine.schema>
# 8.3.2.  Pilot Person
#
#  The PilotPerson object class is used as a sub-class of person, to
#  allow the use of a number of additional attributes to be assigned to
#  entries of object class person.
#
#    pilotPerson OBJECT-CLASS
#        SUBCLASS OF person
#        MAY CONTAIN {
#                    userid,
#                    textEncodedORAddress,
#                    rfc822Mailbox,
#                    favouriteDrink,
#                    roomNumber,
#                    userClass,
#                    homeTelephoneNumber,
#                    homePostalAddress,
#                    secretary,
#                    personalTitle,
#                    preferredDeliveryMethod,
#                    businessCategory,
#                    janetMailbox,
#                    otherMailbox,
#                    mobileTelephoneNumber,
#                    pagerTelephoneNumber,
#                    organizationalStatus,
#                    mailPreferenceOption,
#                    personalSignature}
#    ::= {pilotObjectClass 4}
#


> -----Original Message----- > From: owner-openldap-software@OpenLDAP.org > [mailto:owner-openldap-software@OpenLDAP.org]On Behalf Of monica gupta > Sent: Tuesday, January 16, 2001 7:39 PM > To: openldap-software@OpenLDAP.org > Subject: > > > Hi All, > > I am trying to add a user with following objectclass and attributes. > when i run my program, it says attribute not allowed. I have included > inetOrgPerson.schema in my slapd.conf. If I remove the mail > attribute then > it works fine. But then we can add "mail" attribute as it is > defined in the > inetOrgPerson.schema. I also tried doing it with "uid". But the same > results. ( i also did a stop and start server after including > inetOrgPerson.schema in my slapd.conf). > > > ------------------------------------------ > > myAttrs = new BasicAttributes(true); > > Attribute oc = new BasicAttribute("objectclass"); > > oc.add("inetOrgPerson"); > oc.add("organizationalPerson"); > oc.add("person"); > oc.add("top"); > > myAttrs.put(oc); > myAttrs.put("cn","monica gupta"); > myAttrs.put("sn","gupta"); > myAttrs.put("telephonenumber","+1 201 369 9110"); > myAttrs.put("mail","gupta_monica@hotmail.com"); > > --------------------------------------------------- > > my slapd.conf looks like > > include /usr/local/etc/openldap/schema/core.schema > include /usr/local/etc/openldap/schema/cosine.schema > include /usr/local/etc/openldap/schema/inetorgperson.schema > > pidfile /usr/local/var/slapd.pid > argsfile /usr/local/var/slapd.args > > database ldbm > suffix "dc=oncr, dc=com" > rootdn "cn=Manager, dc=oncr, dc=com" > rootpw secret > directory /usr/local/var/openldap-ldbm > index objectClass eq > > access to dn=".*dc=oncr,dc=com" > by dn="cn=Manager,dc=oncr,dc=com" > > ----------------------------------------------------------------------- > > Thanks > > Monica


_________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com