WebLdapModify Function

Action

Modifies a specified LDAP directory entry. To create a new LDAP directory entry, call the WebLdapAdd function. Both the WebLdapAttributeAdd and the WebLdapValueAdd function are required to specify the directory entry modifications.

Include file

WebAPI.bdh

Syntax

WebLdapModify( 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 Specifies the name of the directory entry

Example

dcltrans 
  transaction TMain 
  var
    hLdap: number; 
  begin
    WebLdapConnect(hLdap, "standardhost", WEB_PORT_LDAP);
    WebLdapBind(hLdap, "cn=adminname", "password");
    WebLdapAttributeAdd(hLdap, WEB_LDAP_MOD_REPLACE, "attribute");
    WebLdapValueAdd(hLdap, "value"); 
    WebLdapModify(hLdap, "cn=TestCN,o=Name");
     WebLdapDisconnect(hLdap); 
  end TMain;

SilkEssential sample

LDAP.sep