WebSetUserAuthNtlm Function

Action

Sets the password for NTLM/Kerberos authentication. In contrary to the WebSetUserAuth function it does not change the credentials for a basic user authentication.

Note: This function overrides the corresponding setting on the Authentication tab of the Profile Settings – Web dialog. In contrast to the WebSetUserAuth function, this function does not change the credentials for Basic or Digest authentication.

Include file

WebAPI.bdh

Syntax

WebSetUserAuthNtlm( in sUsername : string,
                    in sPassword : string ): boolean;

Return value

  • true if successful

  • false otherwise

Parameter Description
sUsername User name. If you have to specify a domain use the notation: "domain\\user".
sPassword Password.

Example

dcltrans
  transaction TMyTransaction
  begin
    WebSetUserAuthNtlm("testlab\\steve", "secret");
    WebUrl("http://lab1/");

    WebSetUserAuthNtlm("", "");
  end TMyTransaction;