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

Re:



Whichever attribute you are trying to add, that must be defind in some object
class. While creating the node put that object class . I guess u r adding some
attribute which may be defined in some schema fiel,  but u are not providing
the objectcalss for that.

Jajati


monica gupta wrote:

> But i am not adding any new attributes. The attributes which I am trying to
> add are "mail" and "uid" which are previuosly defined in core.schema. only
> the object class "inetOrgPerson" is not there in core.schema.
>
> But this object classes is there in inetOrgPerson.schema. And i am including
> it in my slapd.conf.
>
> Thanks
>
> Monica
>
> >From: Jajati Samal <jajati@datalinx.net>
> >To: monica gupta <monicaldap@hotmail.com>
> >CC: alexandre.ghisoli@ycom.ch, openldap-software@OpenLDAP.org
> >Subject: Re:
> >Date: Tue, 16 Jan 2001 15:09:46 -0600
> >
> >If u want to add any new attribute in your schema which has bot yet been
> >defined in any added schema files you have to write your local schema file
> >for
> >that. Follow ASN.1 and given BSD in Adminstartive Guide.
> >
> >Jajati
> >
> >
> >monica gupta wrote:
> >
> > > 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
> >
>
> _________________________________________________________________
> Get your FREE download of MSN Explorer at http://explorer.msn.com