Acces to uid multi-value

Hi !

I would like to test multi-values in the uid attribute.

I would so have for one entry :

uid=12345

uid=johnDoe

I would like to perform search on the directory with uid=12345,ou=xxx,ou=yyy,o=xyz and with uid=johnDoe,ou=xxx,ou=yyy,o=xyz

How to access the first or the second value of this attribute individually ?

Is it first possible ?

Than, how ?

Hope I was clear enough with these explanations.... Thanks ;-)

[476 byte] By [Merlin_Der_Koeniga] at [2007-11-15]
# 1

Hi,

one entry has a single DN

so even if uid is multivalued, you can have just one DN by entry but you can buid search filters with any uid value

that is often a bad practice to buid a DN. the best is to perform a lookup and then get the real dn

Take care, some software does not support that and Sun does not recomand to use multivalued attributes as naming attributes.

I use it on many circustances but at my own risks

Alban

Alban_for_SmartWavea at 2007-7-28 > top of java,Web & Directory Servers,Directory Servers...