It would be wise to build slapd with SASL support if you actually need secure Binds.Sorry for the top-posting on my part.
Here are some more details about the resolution in case anyone is interested:
"The default setting in .NET 1.1 was Bind.None when no authentication method was supplied. In the new .NET 2.0 the default methond is Bind.Secure. Therefore, I needed to explicitly declare Bind.None. The only issue with this is that if we ever use a username and password it will be sent in clear text."
I hope this is helpful for anyone who encounters a similar issue.
-----Original Message-----
From: Howard Chu [mailto:hyc@symas.com] Sent: Monday, December 11, 2006 7:42 PM
To: Mark Hennessy
Cc: openldap-software@openldap.org
Subject: Re: Question about OpenLDAP
Mark Hennessy wrote:I have a user who tries to connect from an IP x.x.x.31, butthey keep gettingrejected. The ACL is using IPs to allow anonymousread-only connections. Ihave a client at another host that's also in the ACL by IPwhich is set touse an anonymous connection and that works. What should Ibe looking forwith this client that's not working? Also, I builtOpenLDAP without SASL onpurpose. This is serving a simple database that couldpotentially have lotsof reads and no writes from a couple of trusted hosts. Anyhelp in thisIP=x.x.x.31:1691matter would be greatly appreciated!
This is OpenLDAP from FreeBSD ports built supposedly without SASL.
Dec 11 13:34:19 x slapd[2566]: conn=28 fd=10 ACCEPT from(IP=0.0.0.0:389)scope=0 deref=0
Dec 11 13:34:19 x slapd[2566]: conn=28 op=0 SRCH base=""filter="(objectClass=*)"attr=supportedCapabilities
Dec 11 13:34:19 x slapd[2566]: conn=28 op=0 SRCHDec 11 13:34:19 x slapd[2566]: conn=28 op=0 SEARCH RESULTtag=101 err=0nentries=1 text=scope=0 deref=0
Dec 11 13:34:19 x slapd[2566]: conn=28 op=1 SRCH base=""filter="(objectClass=*)"attr=supportedSASLMechanisms
Dec 11 13:34:19 x slapd[2566]: conn=28 op=1 SRCHDec 11 13:34:19 x slapd[2566]: conn=28 op=1 SEARCH RESULTtag=101 err=0nentries=1 text=err=7 text=unknown
Dec 11 13:34:19 x slapd[2566]: conn=28 op=2 BIND dn="" method=137
Dec 11 13:34:19 x slapd[2566]: conn=28 op=2 RESULT tag=97The log shows they're trying to Bind with a "method=137" and correctly getting an unknown authentication method response back. I.e., they're trying to Bind with a mechanism that slapd doesn't recognize. It's certainly not an anonymous LDAP Simple Bind. Seems like a broken client.authentication method Dec 11 13:34:19 x slapd[2566]: conn=28 op=3 UNBIND Dec 11 13:34:19 x slapd[2566]: conn=28 fd=10 closed
-- -- Howard Chu Chief Architect, Symas Corp. http://www.symas.com Director, Highland Sun http://highlandsun.com/hyc OpenLDAP Core Team http://www.openldap.org/project/