Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
platform
active.directory
adsi
adsi.iis-admin
base
com_ole
complus_mts
component_svcs
database
directx
gdi
graphics_mm
internet.client
internet.server
internet.server.isapi-dev
localization
mapi
messaging
msi
mslayerforunicode
multimedia
networking
networking.ipv6
sdk_install
security
shell
telephony.tapi_2
telephony.tapi_3
telephony.tsp
telephony.wte
tools
ui
ui_shell
win_base_svcs
win16
  
 
date: 14 Jun 2005 00:19:29 -0700,    group: microsoft.public.platformsdk.active.directory        back       


ldap_search_s(...) fail sometimes; LdapErr: "...successful bind must be completed..."   
Hi,

I have a question relating to ldap_search_s.

Before I call the ldap_search_s function, I do following steps:

1.	ldap_initialize(&pldap, hostname);
2.	ldap_set_option(.);
3.	ldap_bind_s(pldap, NULL, NULL, LDAP_AUTH_SIMPLE);

Then I call the function:
ldap_search_s(pldap,base,LDAP_SCOPE_SUBTREE,filter,attrs,0,&result);


My simple program works in a strange way:
Sometimes the ldap_search_s functions works and receives the wanted
information.
But after a few runs, the same code fails and returns "operations
error":

I call the function "ldap_get_option(pldap,LDAP_OPT_ERROR_STRING,&errorstring)"
to get more informations. It receives following string

"00000000: LdapErr: DSID-0C0905FF, comment: In order to perform this
operation a successful bind must be completed on the connection., data
0, vece"

Why does it sometimes work/not work? What can I do that my program
runs without this strange habit?

Regards,
berni
date: 14 Jun 2005 00:19:29 -0700   author:   (berni_z)

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us