Jérôme Marant <[EMAIL PROTECTED]> writes:

>Could you please test if this upstream version would work for you?
>http://cvs.savannah.gnu.org/viewcvs/*checkout*/emacs/emacs/lisp/net/ldap.el?rev=1.24

I have now tried the new ldap.el and it seems to not parse results
correctly from the LDAP-server. When I search for henrik* from Gnus,
it returns no match. According to the logfile from slapd it does find
1 match on both givenName and mail.

This is clearly not a problem with binding and so on. I have tried to
adapt the parsing inside the code at 589, but no solution found. I
will try some more, though if you can spot the problem please say.

conn=19 fd=14 ACCEPT from IP=ip.add.re.ss:55968 (IP=0.0.0.0:389)
conn=19 op=0 BIND dn="uid=test,ou=Users,o=hc" method=128
conn=19 op=0 BIND dn="uid=test,ou=Users,o=hc" mech=SIMPLE ssf=0
conn=19 op=0 RESULT tag=97 err=0 text=
conn=19 op=1 SRCH base="o=hc" scope=2 deref=0 filter="(&(sn=henrik*))"
conn=19 op=1 SRCH attr=mail
conn=19 op=1 SEARCH RESULT tag=101 err=0 nentries=0 text=
conn=19 op=2 UNBIND
conn=19 fd=14 closed
conn=20 fd=14 ACCEPT from IP=ip.add.re.ss:55969 (IP=0.0.0.0:389)
conn=20 op=0 BIND dn="uid=test,ou=Users,o=hc" method=128
conn=20 op=0 BIND dn="uid=test,ou=Users,o=hc" mech=SIMPLE ssf=0
conn=20 op=0 RESULT tag=97 err=0 text=
conn=20 op=1 SRCH base="o=hc" scope=2 deref=0 filter="(&(givenName=henrik*))"
conn=20 op=1 SRCH attr=mail
conn=20 op=1 SEARCH RESULT tag=101 err=0 nentries=1 text=
conn=20 op=2 UNBIND
conn=20 fd=14 closed
conn=21 fd=14 ACCEPT from IP=ip.add.re.ss:55970 (IP=0.0.0.0:389)
conn=21 op=0 BIND dn="uid=test,ou=Users,o=hc" method=128
conn=21 op=0 BIND dn="uid=test,ou=Users,o=hc" mech=SIMPLE ssf=0
conn=21 op=0 RESULT tag=97 err=0 text=
connection_input: conn=21 deferring operation: binding
conn=21 op=1 SRCH base="o=hc" scope=2 deref=0 filter="(&(mail=henrik*))"
conn=21 op=1 SRCH attr=mail
conn=21 op=1 SEARCH RESULT tag=101 err=0 nentries=1 text=
conn=21 op=2 UNBIND
conn=21 fd=14 closed

h.

-- 
Henrik Holmboe, Stockholm, Sweden
<http://henrik.holmboe.se/contact/>

Reply via email to