Search filters with 'tab' (\09)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
>
>
>




[Index of Archives]     [Fedora User Discussion]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora News]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora QA]     [Fedora Triage]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Yosemite Photos]     [Linux Apps]     [Maemo Users]     [Gnome Users]     [KDE Users]     [Fedora Tools]     [Fedora Art]     [Fedora Docs]     [Maemo Users]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Fedora ARM]

  Powered by Linux