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

Re: inetOrgPerson (was RE: )



Rest everything I have done.

"
Except for that how do I verify the attribute types
and object classes are listed in the subschema (cn=Subschema)."

what i have done is :

------------------------------------------------
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("mail","gupta@hotmail.com");
---------------------------------------------------

slapd.conf

---------------------------------------------------
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"
-----------------------------------------------------

after this I did Stop and start server. But its not working..

Thanks

Monica

From: "Kurt D. Zeilenga" <Kurt@OpenLDAP.org>
To: <alexandre.ghisoli@ycom.ch>
CC: "monica gupta" <monicaldap@hotmail.com>, "Liste openldap" <openldap-software@OpenLDAP.org>
Subject: inetOrgPerson (was RE: )
Date: Tue, 16 Jan 2001 12:32:12 -0800


At 09:14 PM 1/16/01 +0100, Alexandre Ghisoli wrote:
>> > oc.add("inetOrgPerson");
>> > oc.add("organizationalPerson");
>> > oc.add("person");
>> > oc.add("top");
>add oc.add("pilotPerson");

Don't do that!  If you are creating an inetOrgPerson object,
you should list inetOrgPerson object class as well as classes
which are in the superclass chain.  pilotPerson is not in the
superclass chain of the inetOrgPerson class and hence the
above is an object class violation (2.0 doesn't detect
these, but 2.1 will!)

When configuring OpenLDAP 2.0 for inetOrgPerson, include
core.schema, cosine.schema, and inetorgperson.schema in that
order.  Then restart slapd AND verify the attribute types
and object classes are listed in the subschema (cn=Subschema).
[Note that subschema attributes are operational and must
be requested to be returned].

Once you have done this, you can try to add an inetOrgPerson
object.  If it fails, check the servers logs for details.

Kurt


>> -----Original Message----- >> From: owner-openldap-software@OpenLDAP.org >> [mailto:owner-openldap-software@OpenLDAP.org]On Behalf Of monica gupta >> Sent: Tuesday, January 16, 2001 8:38 PM >> To: alexandre.ghisoli@ycom.ch >> Cc: openldap-software@OpenLDAP.org >> Subject: 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 >> >>


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