[Fedora-directory-users] Search filters with 'tab' (\09)

Andrey Ivanov andrey.ivanov at polytechnique.fr
Mon Apr 7 15:25:54 UTC 2008


Thanks for a rapid reply.

No, no leading tab. The value in the database is and was always ok and
without 'tab'. (your strings command gives me '=user1'). I was simply
creating a perl script and saw that if i enter the uid with or without
tab the ldap server returns the entry anyway which i found to be
strange because i escape the values in the filter...

You can add '\09' in the beginning and/or at the end of any ldap
filter and it continues to work with FDS (you can try on your own
server smth like "(uid=\09rmeggins\09\09)"...

Don't know whether it is normal :)

2008/4/7, Rich Megginson <rmeggins at redhat.com>:
> Andrey Ivanov wrote:
>
> > Hi,
> >
> > I don't know whether it is a bug or a feature. If i make an ldapsearch
> > (or a search by perl LDAP) the ESCAPED tab is not taken into account :
> > the search
> > ldapsearch -x -D... -h <server> -b "<base>"  "(uid=\09user1\09)"
> >
> > gives the same result (the entry corresponding to user1) as
> > ldapsearch -x -D... -h <server> -b "<base>"  "(uid=user1)"
> >
> > The logs show that the filter makes successfully its way to the ldap core:
> > 07/Apr/2008:16:03:30 +0200] conn=85418 op=3 SRCH base="..." scope=2
> > filter="(uid=\09user1\09)" attrs=ALL
> >
> > 07/Apr/2008:16:03:45 +0200] conn=85418 op=3 SRCH base="..." scope=2
> > filter="(uid=user1)" attrs=ALL
> >
> > How do i search then the attribute that starts with the tab symbol (\09)?
> >
> >
>  If you do a "strings
> /var/lib/dirsrv/slapd-instance/db/userRoot/uid.db4" do you
> see the value with the leading tab character?
>
> >
> > Thank you!
> >
> > --
> > Fedora-directory-users mailing list
> > Fedora-directory-users at redhat.com
> >
> https://www.redhat.com/mailman/listinfo/fedora-directory-users
> >
> >
>
>
> --
>  Fedora-directory-users mailing list
>  Fedora-directory-users at redhat.com
> https://www.redhat.com/mailman/listinfo/fedora-directory-users
>
>
>




More information about the Fedora-directory-users mailing list