Brian K. Jones
2005-Jul-01 15:27 UTC
[Fedora-directory-users] ldapsearch issue, FDS vs. OL
Hi all, I''m getting some odd behavior from FDS when I do an ldapsearch using the openldap "ldapsearch" command line tool. Basically, if I do a search like this one: ldapsearch -x -LLL ''(!(roomNumber=10*))'' uid I should get back the uid''s of those whose room numbers do not start with "10". When I do this search against openldap, I get what I would expect. The data I asked for, and nothing else. A list of uid''s. Under FDS, I''m getting a list of every single distinguished name for every user. If that user matches the search term, I also get the uid. If they don''t, I just get the dn. Why is this? I don''t want the dn unless it matches. I feel like I''ve had this issue before, but I don''t remember exactly, and I certainly don''t remember how I fixed it. Any clues are hereby solicited. brian.
Rich Megginson
2005-Jul-01 16:08 UTC
Re: [Fedora-directory-users] ldapsearch issue, FDS vs. OL
Brian K. Jones wrote:>Hi all, > >I''m getting some odd behavior from FDS when I do an ldapsearch using the >openldap "ldapsearch" command line tool. Basically, if I do a search like >this one: > >ldapsearch -x -LLL ''(!(roomNumber=10*))'' uid > >I should get back the uid''s of those whose room numbers do not start with >"10". > >When I do this search against openldap, I get what I would expect. The data I >asked for, and nothing else. A list of uid''s. > >Under FDS, I''m getting a list of every single distinguished name for every >user. >Except the users that have roomnumber=10*?>If that user matches the search term, I also get the uid. If they >don''t, I just get the dn. Why is this? I don''t want the dn unless it matches. > >So, let me see if I understand. With FDS, you get the DN for every entry except those that have roomnumber=10*, and for those entries which have a uid, you also get the uid. With OL, you get only the DN and uid for every entry with a uid except those with roomnumber=10*?>I feel like I''ve had this issue before, but I don''t remember exactly, and I >certainly don''t remember how I fixed it. > >Any clues are hereby solicited. >brian. > >-- >Fedora-directory-users mailing list >Fedora-directory-users@redhat.com >https://www.redhat.com/mailman/listinfo/fedora-directory-users > >