C# Class LDAPConnection, code

Inheritance: IDisposable
ファイルを表示 Open project: shendongnian/code Class Usage Examples

Public Properties

Property Type Description
NULL IntPtr

Protected Properties

Property Type Description
_ld IntPtr
_stringPointers List

Public Methods

Method 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

Method 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 method

public Bind ( string domain, string username, SecureString, password ) : void
domain string
username string
password SecureString,
return void

Dispose() public method

public Dispose ( ) : void
return void

IsValidCredentials() public static method

public static IsValidCredentials ( string domain, string localAddress, string usernameDomain, string username, SecureString, password ) : bool
domain string
localAddress string
usernameDomain string
username string
password SecureString,
return bool

LDAPConnection() public method

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

LdapBind() public static method

public static LdapBind ( IntPtr, ld, string domain, string username, SecureString, password ) : void
ld IntPtr,
domain string
username string
password SecureString,
return void

LdapInit() public static method

public static LdapInit ( string hostname, uint port ) : IntPtr
hostname string
port uint
return IntPtr

LdapSetOption() public static method

public static LdapSetOption ( IntPtr ld, uint option, string invalue ) : IntPtr
ld IntPtr
option uint
invalue string
return IntPtr

LdapSetOption() public static method

public static LdapSetOption ( IntPtr ld, uint option, uint invalue ) : void
ld IntPtr
option uint
invalue uint
return void

Property Details

NULL public_oe static_oe property

public static IntPtr NULL
return IntPtr

_ld protected_oe property

protected IntPtr _ld
return IntPtr

_stringPointers protected_oe property

protected List _stringPointers
return List