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

Re: Error in setting the values of Custom objectClass in openldap

The problem has been resolved.i have one query regarding objectclasses in openLDAP:
Actually i want to know whether openLDAP has predefined hierarchy of objectclasses or we can defined our hierarchy... can we use base class as our defined class..
if we can then please give me the specification of that objectclass.
Thanks and Regards,

On Nov 22, 2007 12:50 PM, Anjali Arora <anjalikool@gmail.com> wrote:
I am facing problem in setting values for custom objectclass attributes:
my custom schema is like this :
attributetype (  NAME ( 'filename' )
        DESC 'RFC2256: logical filename'
        SYNTAX{256} )
attributetype ( NAME 'filesize'
        DESC 'RFC2256: size of the file'
        SYNTAX )
attributetype ( NAME  'parentid'
        DESC 'index of the parent entry'
        SYNTAX )
attributetype ( NAME  'filemode'
        DESC 'RFC2256: file permission'
        SUP filename )
attributetype ( NAME ( 'protocoltype' )
        DESC 'RFC2256: transfer protocol type'
        SUP filename )
objectclass( Name 'gfsnamespace'
        DESC 'RFC2256 : GFS Tree Hierarchy'
        SUP top AUXILIARY
        MUST parentid
        MAY ( filetype $ filemode $ filename $ parentid $ protocoltype $ filesize ) )
and ldap.ldif file is :
dn: cn=Cur Ander,ou=SoftwareDeveloper,dc=example,dc=com
cn: Cur Ander
objectClass: top
objectClass: person
objectClass: organizationalPerson
objectClass: inetOrgPerson
mail: CAnder@isp.com
givenname: Cur
sn: Ander
ou: MemberGroupA
street: 17 Cherry St.
objectClass: gfsnamespace
parentid: 1002
filename: abc.txt
when i am adding this entry through command line interface like :
ldapadd -D "cn=Manager,dc=example,dc=com" -w secret -f ldap.ldif
When i am adding entry without setting my objectclass(gfsnamespace) attribute values it will be added sucessfully without an error but when i am trying to add entry with setting my objectclass attributes it will give this error :
adding new entry "cn=Cur Ander,ou=SoftwareDeveloper,dc=example,dc=com"
ldapadd: Invalid syntax (21)
        additional info: objectClass: value #4 invalid per syntax
Please give me solution as soon as possible...
And i want to know if i want my object class as the base of the hierarchy then how to do that or i have to follow some predefined hierarchy if it is so then tell me predefined hierarchy of objectclasses in openLDAP.
Thanks and Regards,