Record Fetching problem through Sun Directory Server 5.1

I am using LDAP version 3.0 for fetctching data from Sun Directory Server 5.1. Use following API's first initialize session as

FActiveDirSession := ldap_init(PChar(Host), PortNumber)

Then bind to the server suing

Result := ldap_Connect(FActiveDirSession, nil);

Result := ldap_simple_bind_s(FActiveDirSession,PChar(User),PChar(Password));

The search record using

Result := ldap_search_s(FActiveDirSession, PChar(BaseDN),SearchScope ,PChar(Filter),nil,Cardinal(False),Messages);

It will fetch records correctly but when the same search function is called after one day it will return error 0x34=52 in decimal, remeber during one day delay session is not closed. Can any one help me out what is the actual probelm is it problem of Sun directory Server or my program has the fault.

regards

Imtiaz Khadim

[863 byte] By [nomi12345678a] at [2007-11-27 1:21:20]
# 1

This is definitely not related to Java and JNDI.

Could you be please be more explicit with which LDAP library you are using ?

As I mentioned in the other thread related, Directory Server may return LDAP_UNAVAILABLE.

But the library could also return LDAP_UNAVAILABLE if it has detected that the connection has been dropped.

Regards,

Ludovic.

ludovicpa at 2007-7-11 23:59:02 > top of Java-index,Core,Core APIs...
# 2

hI,

I am using LDAP Version 3.0 API build by microsoft. I used Winldap.dll in Delphi 7.0. Thes API's are interacting with the Sun Directory Server 5.1 and rest of the problem is explained early. I hope u got my point. Please help me out, is it the problem of server or client application with reference to the error 0x34=52. Anxiuosly waiting for reply

regards

Imtiaz Khadim

nomi12345678a at 2007-7-11 23:59:02 > top of Java-index,Core,Core APIs...