WebLdapDelete Function

Action

Removes an entry from an LDAP directory.

Include file

WebAPI.bdh

Syntax

WebLdapDelete( in hLdap  : number, 
               in sEntry : string ): boolean;

Return value

  • true if successful

  • false otherwise

Parameter Description
hLdap Handle to a Web connection that was created by WebLdapConnect
sEntry Name of the directory entry

Example

dcltrans 
  transaction TMain 
  var
    hLdap: number; 
  begin
    WebLdapConnect(hLdap, "standardhost", WEB_PORT_LDAP);
    WebLdapBind(hLdap, "cn=adminname", "password"); 
    WebLdapDelete(hLdap, "cn=newCN,o=Name");
    WebLdapDisconnect(hLdap); 
  end TMain;

SilkEssential sample

LDAP.sep