C# Class BExIS.Security.Services.Authentication.ADAuthenticationManager

Inheritance: AuthenticationManager, IAuthenticationManager
Mostrar archivo Open project: BEXIS2/Core

Private Properties

Property Type Description

Public Methods

Method Description
ADAuthenticationManager ( string connectionString ) : System

Initialize a new LdapAuthenticationProvider

ValidateUser ( string username, string password ) : bool

Authenticate a user against a AD server

Method Details

ADAuthenticationManager() public method

Initialize a new LdapAuthenticationProvider
public ADAuthenticationManager ( string connectionString ) : System
connectionString string connection string with all necessary paramters: /// /// /// Connection string key /// Description /// /// /// ldapBaseDn /// Point of entry to the LDAP /// /// /// ldapHost /// Hostname of the LDAP server /// /// /// ldapPort /// Port of the LDAP server. Expect a int value. /// /// /// ldapSecure /// Enable a SecureSocketLayer connection. Expect a boolean value. /// /// /// ldapAuthUid /// Attribute of the user, which sould used as unique identifier /// /// /// ldapProtocolVersion /// Version of the LDAP protocol, normally 3. Expect a int value. /// /// /// To assign a value to a key you have to use colon (:) and the seperation of the keys is done by using semicolon (;) /// E.g.: ldapPort:389;ldapSecure:true;ldapProtocolVersion:3;... ///
return System

ValidateUser() public method

Authenticate a user against a AD server
public ValidateUser ( string username, string password ) : bool
username string username to check
password string password of the user
return bool