Method | Description | |
---|---|---|
Authenticate ( string uname, string password ) : |
Attempt to authenticate the user by binding to the LDAP server.
|
|
Bind ( ) : void |
Tries to bind to the server anonymously. Throws LdapException if the bind fails.
|
|
Bind ( |
Try to bind to the LDAP server with the given credentials. This uses basic authentication. Throws LdapException if the bind fails.
|
|
BindForSearch ( ) : void | ||
Close ( ) : void | ||
Dispose ( ) : void | ||
FindFirstDN ( string searchBase, string filter ) : string |
Does a search in the subtree at searchBase, using the filter provided and returns the DN of the first match.
|
|
GetUserDN ( string uname ) : string | ||
LdapServer ( ) : System | ||
MemberOfGroup ( string user, string group ) : bool | ||
SetUserAttribute ( string uname, string attribute, string value ) : void |
Method | Description | |
---|---|---|
Connect ( ) : void | ||
CreateSearchFilter ( string uname ) : string |
This generates the search filter to be used when searching for the DN
|
|
CreateUserDN ( string uname ) : string |
This generates the DN for the user assuming that a pattern has been provided. This assumes that Settings.Store.DnPattern has a valid DN pattern.
|
|
FindUserDN ( string uname ) : string |
Attempts to find the DN for the user by searching a set of LDAP trees. The base DN for each of the trees is retrieved from Settings.Store.SearchContexts. The search filter is taken from Settings.Store.SearchFilter. If all searches fail, this method returns null.
|
|
VerifyCert ( System.DirectoryServices.Protocols.LdapConnection conn, |
This is the verify certificate callback method used when initially binding to the LDAP server. This manages all certificate validation.
|
public Authenticate ( string uname, string password ) : |
||
uname | string | |
password | string | |
return |
public Bind ( |
||
creds | The credentials to use when binding. | |
return | void |
public FindFirstDN ( string searchBase, string filter ) : string | ||
searchBase | string | The DN of the root of the subtree for the search (search context). |
filter | string | The search filter. |
return | string |
public MemberOfGroup ( string user, string group ) : bool | ||
user | string | |
group | string | |
return | bool |
public SetUserAttribute ( string uname, string attribute, string value ) : void | ||
uname | string | |
attribute | string | |
value | string | |
return | void |