C# Class LDAPConnection, code

Inheritance: IDisposable
Afficher le fichier Open project: shendongnian/code Class Usage Examples

Méthodes publiques

Свойство Type Description
NULL IntPtr

Protected Properties

Свойство Type Description
_ld IntPtr
_stringPointers List

Méthodes publiques

Méthode Description
Bind ( string domain, string username, SecureString, password ) : void
Dispose ( ) : void
IsValidCredentials ( string domain, string localAddress, string usernameDomain, string username, SecureString, password ) : bool
LDAPConnection ( string hostname, uint port )
LdapBind ( IntPtr, ld, string domain, string username, SecureString, password ) : void
LdapInit ( string hostname, uint port ) : IntPtr
LdapSetOption ( IntPtr ld, uint option, string invalue ) : IntPtr
LdapSetOption ( IntPtr ld, uint option, uint invalue ) : void

Private Methods

Méthode Description
LdapGetLastError ( ) : uint
ldap_bind_s ( IntPtr ld, IntPtr dn, IntPtr cred, uint method ) : uint
ldap_init ( string HostName, uint PortNumber ) : IntPtr
ldap_set_option ( IntPtr ld, uint option, IntPtr &invalue ) : uint
ldap_set_option ( IntPtr ld, uint option, uint &invalue ) : uint
ldap_unbind_s ( IntPtr ld ) : uint

Method Details

Bind() public méthode

public Bind ( string domain, string username, SecureString, password ) : void
domain string
username string
password SecureString,
Résultat void

Dispose() public méthode

public Dispose ( ) : void
Résultat void

IsValidCredentials() public static méthode

public static IsValidCredentials ( string domain, string localAddress, string usernameDomain, string username, SecureString, password ) : bool
domain string
localAddress string
usernameDomain string
username string
password SecureString,
Résultat bool

LDAPConnection() public méthode

public LDAPConnection ( string hostname, uint port )
hostname string
port uint

LdapBind() public static méthode

public static LdapBind ( IntPtr, ld, string domain, string username, SecureString, password ) : void
ld IntPtr,
domain string
username string
password SecureString,
Résultat void

LdapInit() public static méthode

public static LdapInit ( string hostname, uint port ) : IntPtr
hostname string
port uint
Résultat IntPtr

LdapSetOption() public static méthode

public static LdapSetOption ( IntPtr ld, uint option, string invalue ) : IntPtr
ld IntPtr
option uint
invalue string
Résultat IntPtr

LdapSetOption() public static méthode

public static LdapSetOption ( IntPtr ld, uint option, uint invalue ) : void
ld IntPtr
option uint
invalue uint
Résultat void

Property Details

NULL public_oe static_oe property

public static IntPtr NULL
Résultat IntPtr

_ld protected_oe property

protected IntPtr _ld
Résultat IntPtr

_stringPointers protected_oe property

protected List _stringPointers
Résultat List