You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@directory.apache.org by Johnny Yangthur <ye...@gmail.com> on 2007/09/17 05:10:40 UTC

[ApacheDS] confusing with ladp schema and usage

excuse me , i'm a little confuse with ldap schema.

the object schema and the attribute schema.

in object shcema definition :
objectclass
(
  1.1.2.2.2 NAME 'myPerson'
  DESC 'my person'
  SUP inetOrgPerson
  MUST ( myUniqueName $ givenName )
  MAY (myPhoto)
)

above seems didn't indicated which is dn or rdn,does any attribute of
an object of ldap could be an rdn?

example:

objectclass
(
  *.*.*.*.* name 'vPerson'
  desc 'a virtual Person'
  sup top
  must ( name $ birthday $ organization $ uid)
  may (favorite $ hight )
)

assume there have a partition called " dc=yestalk,dc=com "

so under could be correct:

dn: name=John,dc=yestlk,dc=com
objectclass:vPerson
objectclass:top
birthday:6.6.1983
organization:none
uid:00000007
name:John

----------------------

so under could be correct too:

dn: uid=00000007,dc=yestlk,dc=com
objectclass:vPerson
objectclass:top
birthday:6.6.1983
organization:none
uid:00000007
name:John

----------------------


so under could be correct too:

dn: birthday=6.6.1983,dc=yestlk,dc=com
objectclass:vPerson
objectclass:top
birthday:6.6.1983
organization:none
uid:00000007
name:John

----------------------


so under could be correct too:

dn: organization=none,dc=yestlk,dc=com
objectclass:vPerson
objectclass:top
birthday:6.6.1983
organization:none
uid:00000007
name:John

doesn't it? ----- i just refer many doc and book , the basic always
mention any where ,and the confuse

point still confusing.....

could any one introduce some article for easily understand those
concepture? exactly , i even actually

don't kown the usage of ldap,and how does it serve dns etc .....

thanks for help.

-- 
Johnny Yangthur

Re: [ApacheDS] confusing with ladp schema and usage

Posted by Johnny Yangthur <ye...@gmail.com>.
could you directly told me that the assumeing which i asked above is
right or wrong(about dn ,rdn ,in the DIT,and when to indicate the dn
and rdn in the schema)

becasue i have low english level present,so i like ask rather than
research by my self(excuse me, you sould trust me on that i had
research a little and fronted confusing....),don't think those
questions are too simple for you to answer.

thanks your adviced books ,  i'll try to read if there is no directly
answer any more.

On 9/17/07, Emmanuel Lecharny <el...@gmail.com> wrote:
> Hi Johny,
>
> at this point, I think the best for you would be to by one of the many
> books about LDAP. This one, for instance, is pretty good if you want
> to grasp with the basic of LDAP :
> http://www.oreilly.com/catalog/ldapsa/
>
> You can also try http://www.redbooks.ibm.com/abstracts/sg244986.html.
>
> Otherwise, some googling will hep you too.
>
> Hope it helps.
>
> On 9/17/07, Johnny Yangthur <ye...@gmail.com> wrote:
> > excuse me , i'm a little confuse with ldap schema.
> >
> > the object schema and the attribute schema.
> >
> > in object shcema definition :
> > objectclass
> > (
> >   1.1.2.2.2 NAME 'myPerson'
> >   DESC 'my person'
> >   SUP inetOrgPerson
> >   MUST ( myUniqueName $ givenName )
> >   MAY (myPhoto)
> > )
> >
> > above seems didn't indicated which is dn or rdn,does any attribute of
> > an object of ldap could be an rdn?
> >
> > example:
> >
> > objectclass
> > (
> >   *.*.*.*.* name 'vPerson'
> >   desc 'a virtual Person'
> >   sup top
> >   must ( name $ birthday $ organization $ uid)
> >   may (favorite $ hight )
> > )
> >
> > assume there have a partition called " dc=yestalk,dc=com "
> >
> > so under could be correct:
> >
> > dn: name=John,dc=yestlk,dc=com
> > objectclass:vPerson
> > objectclass:top
> > birthday:6.6.1983
> > organization:none
> > uid:00000007
> > name:John
> >
> > ----------------------
> >
> > so under could be correct too:
> >
> > dn: uid=00000007,dc=yestlk,dc=com
> > objectclass:vPerson
> > objectclass:top
> > birthday:6.6.1983
> > organization:none
> > uid:00000007
> > name:John
> >
> > ----------------------
> >
> >
> > so under could be correct too:
> >
> > dn: birthday=6.6.1983,dc=yestlk,dc=com
> > objectclass:vPerson
> > objectclass:top
> > birthday:6.6.1983
> > organization:none
> > uid:00000007
> > name:John
> >
> > ----------------------
> >
> >
> > so under could be correct too:
> >
> > dn: organization=none,dc=yestlk,dc=com
> > objectclass:vPerson
> > objectclass:top
> > birthday:6.6.1983
> > organization:none
> > uid:00000007
> > name:John
> >
> > doesn't it? ----- i just refer many doc and book , the basic always
> > mention any where ,and the confuse
> >
> > point still confusing.....
> >
> > could any one introduce some article for easily understand those
> > concepture? exactly , i even actually
> >
> > don't kown the usage of ldap,and how does it serve dns etc .....
> >
> > thanks for help.
> >
> > --
> > Johnny Yangthur
> >
>
>
> --
> Regards,
> Cordialement,
> Emmanuel Lécharny
> www.iktek.com
>


-- 
Johnny Yangthur

Re: [ApacheDS] confusing with ladp schema and usage

Posted by Emmanuel Lecharny <el...@gmail.com>.
Hi Johny,

at this point, I think the best for you would be to by one of the many
books about LDAP. This one, for instance, is pretty good if you want
to grasp with the basic of LDAP :
http://www.oreilly.com/catalog/ldapsa/

You can also try http://www.redbooks.ibm.com/abstracts/sg244986.html.

Otherwise, some googling will hep you too.

Hope it helps.

On 9/17/07, Johnny Yangthur <ye...@gmail.com> wrote:
> excuse me , i'm a little confuse with ldap schema.
>
> the object schema and the attribute schema.
>
> in object shcema definition :
> objectclass
> (
>   1.1.2.2.2 NAME 'myPerson'
>   DESC 'my person'
>   SUP inetOrgPerson
>   MUST ( myUniqueName $ givenName )
>   MAY (myPhoto)
> )
>
> above seems didn't indicated which is dn or rdn,does any attribute of
> an object of ldap could be an rdn?
>
> example:
>
> objectclass
> (
>   *.*.*.*.* name 'vPerson'
>   desc 'a virtual Person'
>   sup top
>   must ( name $ birthday $ organization $ uid)
>   may (favorite $ hight )
> )
>
> assume there have a partition called " dc=yestalk,dc=com "
>
> so under could be correct:
>
> dn: name=John,dc=yestlk,dc=com
> objectclass:vPerson
> objectclass:top
> birthday:6.6.1983
> organization:none
> uid:00000007
> name:John
>
> ----------------------
>
> so under could be correct too:
>
> dn: uid=00000007,dc=yestlk,dc=com
> objectclass:vPerson
> objectclass:top
> birthday:6.6.1983
> organization:none
> uid:00000007
> name:John
>
> ----------------------
>
>
> so under could be correct too:
>
> dn: birthday=6.6.1983,dc=yestlk,dc=com
> objectclass:vPerson
> objectclass:top
> birthday:6.6.1983
> organization:none
> uid:00000007
> name:John
>
> ----------------------
>
>
> so under could be correct too:
>
> dn: organization=none,dc=yestlk,dc=com
> objectclass:vPerson
> objectclass:top
> birthday:6.6.1983
> organization:none
> uid:00000007
> name:John
>
> doesn't it? ----- i just refer many doc and book , the basic always
> mention any where ,and the confuse
>
> point still confusing.....
>
> could any one introduce some article for easily understand those
> concepture? exactly , i even actually
>
> don't kown the usage of ldap,and how does it serve dns etc .....
>
> thanks for help.
>
> --
> Johnny Yangthur
>


-- 
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com