[Date Prev][Date Next] [Chronological] [Thread] [Top]

filter=\"(?=undefined)\"



All:

I'm working with a vendor who manages an embedded appliance in our network that should sync user accounts between our corporate network and the device using LDAP searches.

They're a little bit unresponsive but I'm looking to gain some leverage on this problem.

I can compose an ldapsearch(1) command line to retrieve the information the device would presumably require to populate the fields in it's local database, but I have no way of knowing how their code is taking what I enter into the web administration interface and composing a search/query with.

I'm my SLAPD logs I'm seeing:

2006 Feb 15 13:01:25 EST blackout [local4] [debug] slapd[52201]:
conn=113 op=1 SRCH base=\"dc=collaborativefusion,dc=com\" scope=2
deref=0 filter=\"(?=undefined)\"

...which, from the full logs included below, you can see results in "nentries=0" returned.

I'm curious what could be happening on the unit that would cause that search to be:

1) Valid syntax in whatever API they use (presumably PERL/PHP)
2) Result in a filter of an "escaped" nature
3) Is "undefined" being added by slapd(8) for the sake of the logs, or
   is that the actual search parameter (I guess I could tcpdump(8))

The proper syntax to get the results they need would be:

$ ldapsearch  -Z -h blackout -D  \
"cn=Courier,ou=MetaUsers,o=priv,dc=collaborativefusion,dc=com" -W -b \
"dc=collaborativefusion,dc=com" "(objectClass=couriermailaccount)" \
mail uid homeDirectory etc etc

And that's precisely how I have the search setup in the Appliance's GUI, It just refuses to accept it.

There are only a few Google hits on \"(?=undefined)\" and none really apply. Any thoughts on what code of thiers or conditions might cause this?


TIA, ~~BAS


Full Log of failed query: 2006 Feb 15 13:01:25 EST blackout [local4] [debug] slapd[52201]: conn=113 op=0 BIND dn= \"cn=Courier,ou=MetaUsers,o=priv,dc=collaborativefusion,dc=com\" mech=SIMPLE ssf=0 2006 Feb 15 13:01:25 EST blackout [local4] [debug] slapd[52201]: conn=113 op=0 RESULT tag=97 err=0 text= 2006 Feb 15 13:01:25 EST blackout [local4] [debug] slapd[52201]: conn=113 op=1 SRCH base=\"dc=collaborativefusion,dc=com\" scope=2 deref=0 filter=\"(?=undefined)\" 2006 Feb 15 13:01:25 EST blackout [local4] [debug] slapd[52201]: conn=113 op=1 SRCH attr=objectguid displayname dn cn objectclass rdn proxyaddresses rfc822mailbox mailnickname loginname displayname memberof email member samaccountname 2006 Feb 15 13:01:25 EST blackout [local4] [debug] slapd[52201]: conn=113 op=1 SEARCH RESULT tag=101 err=0 nentries=0 text= 2006 Feb 15 13:01:25 EST blackout [local4] [debug] slapd[52201]: conn=113 op=2 UNBIND 2006 Feb 15 13:01:25 EST blackout [local4] [debug] slapd[52201]: conn=113 fd=14 closed


l8* -lava

x.25 - minix - bitnet - plan9 - 110 bps - ASR 33 - base8