[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
alternative attribute names in filter searches. (ITS#765)
Full_Name: Martin Evans
Version: 1.2.11
OS: Solaris 7
URL:
Submission from: (NULL) (138.37.8.180)
Hi,
Searching for entries by using an alternative name in the filter fails to find
entries.
e.g.
my slapd.at.conf file contains...
attribute facsimiletelephonenumber fax tel
A search for `facsimiletelephonenumber' recovers the entry, whereas a search
for
`fax' does not. i.e.
ldapsearch -h tau.qmw.ac.uk -p 389 -s base
-b "cn=m d t evans,ou=Computing Services,$QMW"
-L "fax=+44 20 8980 2001"
produces no output, but
ldapsearch -h tau.qmw.ac.uk -p 389 -s base
-b "cn=m d t evans,ou=Computing Services,$QMW"
-L "facsimiletelephonenumber=+44 20 8980 2001"
gives:
dn: cn=M D T Evans, ou=Computing Services, o=Queen Mary and Westfield College,
<SNIP>
facsimiletelephonenumber: +44 20 8980 2001
<SNIP>
I turned on some debug options in slapd 256+512+64+32.
These include the filter behaviour. Searching with "fax=+44..." gives:
conn=0 fd=5 connection from mdte-pc.css.qmw.ac.uk (138.37.8.180) accepted.
conn=0 op=0 BIND dn="" method=128
conn=0 op=0 RESULT err=0 tag=97 nentries=0
begin get_filter
EQUALITY
end get_filter 0
conn=0 op=1 SRCH base="CN=M D T EVANS,OU=COMPUTING SERVICES,O=QUEEN MARY AND
WESTFIELD COLLEGE,C=GB" scope=0 filter="(fax=+442089802001)"
=> test_filter
EQUALITY
<= test_filter -1
conn=0 op=1 RESULT err=0 tag=101 nentries=0
conn=0 op=2 UNBIND
conn=0 op=2 fd=5 closed errno=0
Searching for "facsimiletelephonenumber=+44..." gives:
conn=1 fd=5 connection from mdte-pc.css.qmw.ac.uk (138.37.8.180) accepted.
conn=1 op=0 BIND dn="" method=128
conn=1 op=0 RESULT err=0 tag=97 nentries=0
begin get_filter
EQUALITY
end get_filter 0
conn=1 op=1 SRCH base="CN=M D T EVANS,OU=COMPUTING SERVICES,O=QUEEN MARY AND
WESTFIELD COLLEGE,C=GB" scope=0
filter="(facsimiletelephonenumber=+442089802001)"
=> test_filter
EQUALITY
<= test_filter 0
conn=1 op=1 ENTRY dn="cn=M D T Evans, ou=Computing Services, o=Queen Mary and
Westfield College,c=GB"
conn=1 op=1 RESULT err=0 tag=101 nentries=1
conn=1 op=2 UNBIND
conn=1 op=2 fd=5 closed errno=0
Apologies if this has been reported before but I couldnt find it.
If it has been solved could you let me know.
Regards,
Martin.