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

ldap_search_s question



I'm trying to use openLDAP to connect to a Stronghold webserver, which
keeps all its ACLS in an ldap database.

I have a very small test program that basically, ldap_open, ldap_bind,
ldap_disable_cache (for good luck i guess) and then ldap_search_s,
ldap_unbind and close.  

If I run the program, I guess depending on sunspots, sometimes (most of
the time actually) ldap_search_s returns 81 (Can't contact server????)
and sometimes it returns 0 (Success???) with all 296 records.  

I am not recompiling the program and there seems to be no rhyme or
reason why I get the error.  Ldap open and bind return positives so I
assume I'm doing something right (let me think about that one....)

I'm using using M$ VC6 sp2 on win 98 connecting to a freebsd server.
All my linux machines are on the other side of the firewall so I can't
test to see if its just the freaky M$ tcp stack.  This is also my first
crack at anything to do with LDAP so it could very well be that too.


Thanks!

Shawn K. Tagseth