Jason Beavers
2007-Dec-14 06:11 UTC
[Fedora-directory-users] problem with unique search on gidNumber
I''m trying to get unique searches working for "gidNumber." When trying a search as below: ./ldapsearch -b "dc=mydomain,dc=int" "(&(objectClass=groupOfNames)(gidNumber=205)(ou:dn:=Groups))" cn gidNumber I''m getting results back with ALL entries with a gidNumber attribute set, instead of just the one entry that matches "gidNumber=205." I''ve tried adding the gidNumber attribute to the indexes, however i cannot seem to get it to respond with a unique result. What am I missing? Thanks in advance. -j ____________________________________________________________________________________ Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
Chris G. Sellers
2007-Dec-14 12:45 UTC
Re: [Fedora-directory-users] problem with unique search on gidNumber
what happens if you simplify your search ldapsearch -b "dc=mydomain,dc=int" gidNumber=205 cn gidNumber On Dec 14, 2007, at 1:11 AM, Jason Beavers wrote:> I''m trying to get unique searches working for "gidNumber." When > trying a search as below: > > ./ldapsearch -b "dc=mydomain,dc=int" "(&(objectClass=groupOfNames) > (gidNumber=205)(ou:dn:=Groups))" cn gidNumber > > > I''m getting results back with ALL entries with a gidNumber attribute > set, instead of just the one entry that matches "gidNumber=205." > I''ve tried adding the gidNumber attribute to the indexes, however i > cannot seem to get it to respond with a unique result. > > What am I missing? > > Thanks in advance. > > -j > > Never miss a thing. Make Yahoo your homepage. -- > Fedora-directory-users mailing list > Fedora-directory-users@redhat.com > https://www.redhat.com/mailman/listinfo/fedora-directory-users
Rich Megginson
2007-Dec-14 14:08 UTC
Re: [Fedora-directory-users] problem with unique search on gidNumber
Jason Beavers wrote:> I''m trying to get unique searches working for "gidNumber." When > trying a search as below: > > ./ldapsearch -b "dc=mydomain,dc=int" > "(&(objectClass=groupOfNames)(gidNumber=205)(ou:dn:=Groups))" cn gidNumber > > > I''m getting results back with ALL entries with a gidNumber attribute > set, instead of just the one entry that matches "gidNumber=205." > I''ve tried adding the gidNumber attribute to the indexes,What steps did you take? You created the index configuration? Then ran db2index to generate the index files?> however i cannot seem to get it to respond with a unique result.Have you tried just "(gidNumber=205)" - does that work?> > What am I missing? > > Thanks in advance. > > -j > > ------------------------------------------------------------------------ > Never miss a thing. Make Yahoo your homepage. > <http://us.rd.yahoo.com/evt=51438/*http://www.yahoo.com/r/hs> > ------------------------------------------------------------------------ > > -- > Fedora-directory-users mailing list > Fedora-directory-users@redhat.com > https://www.redhat.com/mailman/listinfo/fedora-directory-users >