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

[no 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