Hi,
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,
Anjali
On Nov 22, 2007 12:50 PM, Anjali Arora <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I am facing problem in setting values for custom objectclass attributes:
>
> my *custom schema* is like this :
>
> attributetype ( 1.3.6.1.4.1.6863.2.3.107 NAME ( 'filename' )
> DESC 'RFC2256: logical filename'
> SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{256} )
> attributetype ( 1.3.6.1.4.1.6863.2.3.108 NAME 'filesize'
> DESC 'RFC2256: size of the file'
> SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 )
> attributetype ( 1.3.6.1.4.1.6863.2.3.109 NAME 'parentid'
> DESC 'index of the parent entry'
> SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 )
> attributetype ( 1.3.6.1.4.1.6863.2.3.110 NAME 'filemode'
> DESC 'RFC2256: file permission'
> SUP filename )
> attributetype ( 1.3.6.1.4.1.6863.2.3.111 NAME ( 'protocoltype' )
> DESC 'RFC2256: transfer protocol type'
> SUP filename )
> objectclass(1.3.6.1.4.1.6863.2.4.57 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: [EMAIL PROTECTED]
> 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,
> Anjali
>
>
>