WebLdapGetNativeHandle Function

Action

Returns the native LDAP handle that can be passed to external functions.

Include file

WebAPI.bdh

Syntax

WebLdapGetNativeHandle(in hLdap: number): number;

Return value

the native handle

Parameter Description
hLdap Handle to a Web connection that was created with WebLdapConnect.

Example

transaction TWebLdap 
  var 
    hLdap, nHandle: number; 
  begin 
    WebLdapConnect(hLdap, "standardhost",WEB_PORT_LDAP, WEB_LDAP_FLAG_VERSION3); 
    WebLdapBind(hLdap, "cn=adminname", "password"); 
    nHandle := WebLdapGetNativeHandle(hLdap);  
    write("Native handle:"); writeln(nHandle); WebLdapDisconnect(hLdap);  
  end TWebLdap;