AuthenticationProtocol Property

General info

Label

Authentication Protocol

Description

The Authentication Protocol (NTLM,BASIC,DIGEST,…)

Data type

UInt32

Type

CodingGroup

Code

617

Symbolic name

MODEL_PROP_AUTHENTICATIONPROTOCOL

Lua access code

inmation.model.properties.AuthenticationProtocol

Available since

1.8.1.1450

Parent classes

XmlDaConnection

Attributes

Name Tooltip
PROP_CONFIGURABLE The property is configurable and can be changed with DataStudio and the various inmation APIs
PROP_VISIBLE The property is visible in DataStudio and can be read by the inmation APIs

Codings

Coding group: AuthenticationProtocol

Name Code Label Tooltip

NONE

1

NONE

Anonymous access authentication

BASIC

2

Basic

Basic access authentication

NTLM

3

NTLM

NTML access authentication

DIGEST

4

DIGEST

Digest access authentication

NEGOTIATE

5

NEGOTIATE

Negotiate access authentication

Examples

Read from or write to the AuthenticationProtocol property.

  • Lua

  • C#

-- Read from the AuthenticationProtocol
inmation.getvalue("<OBJECT FULL PATH>.XmlDaConnection.AuthenticationProtocol")

-- Write to the AuthenticationProtocol
inmation.setvalue("<OBJECT FULL PATH>.XmlDaConnection.AuthenticationProtocol",
    inmation.model.codes.AuthenticationProtocol.NONE)
TcpConfig tcpcfg = new TcpConfig() { HostNameOrIp = "localhost", Port = 6512 };
SecurityCredentials sc = new SecurityCredentials() { ProfileName = "so", Password = "inmation" };
StatelessInterface sli = new StatelessInterface(tcpcfg);

// Read from the AuthenticationProtocol
Result result = sli.ReadValue(sc, new ReadItem("<OBJECT FULL PATH>.XmlDaConnection.AuthenticationProtocol"));
// Write to the AuthenticationProtocol
Result result = sli.WriteValue(sc, new WriteItem(AuthenticationProtocol.NONE, "<OBJECT FULL PATH>.XmlDaConnection.AuthenticationProtocol"));

A switch-like function of the codings.

function get_coding_name(code)
    local ap = inmation.model.codes.AuthenticationProtocol
    if ap.NONE==code then return 'NONE'
    elseif ap.BASIC==code then return 'BASIC'
    elseif ap.NTLM==code then return 'NTLM'
    elseif ap.DIGEST==code then return 'DIGEST'
    elseif ap.NEGOTIATE==code then return 'NEGOTIATE'
    end
end
return get_coding_name(inmation.model.codes.AuthenticationProtocol.NONE)