LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Bug Reports > RC3 1.5 LDAP ldap_simple_bind: Can't contact LDAP server

Reply
 
Thread Tools Display Modes
  #11  
Old 06-03-2004, 12:32 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,585
The "R" packet is originated by the client, but I thought it is from the server side. :-)

So, it is definitely a problem of the client.
The differences between the LDAP APIs called by "ldapsearch" and "lsws" are: "ldapsearch" use synchronized API, lsws use asynchonized API in order not to let LDAP activities block the whole server process.

After digging into OpenLDAP's source code, we found that some of their asynchronized API is not really asynchronized, like "ldap_simple_bind" stays synchronized. there is no real difference between "ldap_simple_bind_s" and "ldap_simple_bind".

We switch to synchronized API when we need to connect to LDAP server in 1.5RC4 release. Fortunately, we only need to do it once per LDAP server, and the established connection can be reused for multiple LDAP queries.

So, in production, it is better to have LDAP server resided on the same server running lsws or at least to have two servers connected by high speed swithed LAN.

Please try just released 1.5RC4, hope it works. :-)
Reply With Quote
  #12  
Old 06-04-2004, 03:24 AM
bogus bogus is offline
Member
 
Join Date: Dec 2003
Location: Brittany / France / Europe
Posts: 31
I've upgraded to RC4 and... :cry:

Exactly the same scenario (client resets connection):


12:19:52.356385 81.56.193.144.49672 > 80.170.141.234.ldap: S 1726673214:1726673214(0) win 5808 <mss 1452,sackOK,timestamp 129583925 0,nop,wscale 0> (DF)
0x0000 4500 003c ba0b 4000 4006 8f53 5138 c190 E..<..@.@..SQ8..
0x0010 50aa 8dea c208 0185 66ea f13e 0000 0000 P.......f..>....
0x0020 a002 16b0 d15c 0000 0204 05ac 0402 080a .....\..........
0x0030 07b9 4b35 0000 0000 0103 0300 ..K5........
12:19:52.499361 80.170.141.234.ldap > 81.56.193.144.49672: S 1957328433:1957328433(0) ack 1726673215 win 5632 <mss 1412,sackOK,timestamp 318381160 129583925,nop,wscale 0> (DF)
0x0000 4500 003c 0000 4000 3c06 4d5f 50aa 8dea E..<..@.<.M_P...
0x0010 5138 c190 0185 c208 74aa 7631 66ea f13f Q8......t.v1f..?
0x0020 a012 1600 b7e5 0000 0204 0584 0402 080a ................
0x0030 12fa 1c68 07b9 4b35 0103 0300 ...h..K5....
12:19:52.499419 81.56.193.144.49672 > 80.170.141.234.ldap: R 1726673215:1726673215(0) win 0 (DF)
0x0000 4500 0028 0000 4000 4006 4973 5138 c190 E..(..@.@.IsQ8..
0x0010 50aa 8dea c208 0185 66ea f13f 0000 0000 P.......f..?....
0x0020 5004 0000 a2cb 0000 P.......


The link is slow (128kbits) between client and server, but other clients don't complain. And it is still fast enough.

In LSWS the error :
ldap_simple_bind_s: Can't contact LDAP server

now appears 4 times on each attempt.

I'm sorry. But is there anybody else out there who tried the LDAP feature over the internet ?
Reply With Quote
  #13  
Old 06-04-2004, 12:31 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,585
Holy crab! :evil:

I think it has something to do with the slow connection.

We find a way to enable LDAP debug logging. Please download RC4 package again. You can find the log output in lsws/logs/stderr.log, pleae post it here.

Also, please do "ldapsearch -d 255 ..." and post the debug output as well.

Right now, you are the only one testing this feature. Hopefully, Paul, our another beta user, will get his hand on this soon. :-)

Thank you very much for your help!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
server send back RST packet and disconnect session clark1 Bug Reports 4 09-30-2006 05:44 PM
LDAP Authorization useless, fcgi Authorization broken? System Install/Configuration 4 10-18-2005 07:51 AM


All times are GMT -7. The time now is 02:32 AM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.