Hi all!
I'm trying to setup autoanswer with autoreply text extracted from
Active Directory.
The problem is that ldap lookup fails when I'm trying to receive "info"
attribute:
key="user="..." pass=...
ldap:...?info?sub?(&(|(mail=...)(mail=...))(ipPhone=AUTO))" partial=-1
affix=NULL starflags=0
LRU list:
internal_search_find: file="NULL"
type=ldapm key="user="..." pass=...
ldap:...?info?sub?(&(|(mail=...)(mail=...))(ipPhone=AUTO))"
database lookup required for user="..." pass=...
ldap:...?info?sub?(&(|(mail=...)(mail=...))(ipPhone=AUTO))
LDAP parameters: user=... pass=... size=0 time=0 connect=0 dereference=0
perform_ldap_search: ldapm URL =
"ldap:...?info?sub?(&(|(mail=...)(mail=...))(ipPhone=AUTO))" server=NULL
port=0 sizelimit=0 timelimit=0 tcplimit=0
after ldap_url_parse: host=pdc port=3268
ldap_initialize with URL ldap://pdc:3268/
initialized for LDAP (v3) server pdc:3268
LDAP_OPT_X_TLS_TRY set
binding with user=... password=...
Start search
ldap_result loop
LDAP entry loop
search ended by ldap_result yielding 101
ldap_parse_result: 0
ldap_parse_result yielded 0: Success
LDAP search: found no attributes
lookup failed
But the following query:
ldapsearch -v -x -b "..." -h pdc -D "..." -w ... mail=... info
returns:
info:: cnNkZnNkZnNkDQpqamdoamdoamgNCkFVVE9PRFBPV0lFRFogVEVLU1Q=
If I will replace "info" attribute with something else, i.e. mail
the lookup works properly, so definitely the problem is with the info
attribute. The only difference I see between "mail" and "info" is that
"info" is base64 encoded on ldapsearch output, and has two colons:
info:: vs. mail:
What can I do to make it working ???
--
Jarek <jarek@???>