Click here to Skip to main content
15,886,137 members
Home / Discussions / C#
   

C#

 
AnswerRe: Generic type passed into method question Pin
OriginalGriff10-Dec-17 0:57
mveOriginalGriff10-Dec-17 0:57 
GeneralRe: Generic type passed into method question Pin
User9874310-Dec-17 1:05
professionalUser9874310-Dec-17 1:05 
GeneralRe: Generic type passed into method question Pin
OriginalGriff10-Dec-17 1:49
mveOriginalGriff10-Dec-17 1:49 
AnswerRe: Generic type passed into method question Pin
Eddy Vluggen10-Dec-17 3:03
professionalEddy Vluggen10-Dec-17 3:03 
GeneralRe: Generic type passed into method question Pin
User9874310-Dec-17 18:41
professionalUser9874310-Dec-17 18:41 
GeneralRe: Generic type passed into method question Pin
Eddy Vluggen11-Dec-17 2:34
professionalEddy Vluggen11-Dec-17 2:34 
AnswerRe: Generic type passed into method question Pin
Gerry Schmitz10-Dec-17 1:04
mveGerry Schmitz10-Dec-17 1:04 
Question2 Active Directory Questions Pin
Kevin Marois7-Dec-17 9:42
professionalKevin Marois7-Dec-17 9:42 
I'm very new to Active Directory, so bear with me please...

First
I'm using the following to validate a user:
public bool ValidateUser(Credentials credentials, string userName = "", string password = "")
{
    using (var context = new PrincipalContext(ContextType.Domain, credentials.ServerName, credentials.UserName, credentials.Password))
    {
        return context.ValidateCredentials(userName, password);
    }
}
But the ValidateCredentials takes the password in PLAIN TEXT and it works fine. This doesn't seem right. How is encryption handled? How do you encrypt the text and how does AD know the PW is encrypted?

Second
Next, I know that LDAP is a protocol. From what I see you specify LDAP in the
query string, as in "LDAP://OU=staffusers,DC=leeds-art,DC=ac,DC=uk"

Is this the way it's done? How do you specify another protocol to use?

Thanks
If it's not broken, fix it until it is.
Everything makes sense in someone's mind.
Ya can't fix stupid.

AnswerRe: 2 Active Directory Questions Pin
Dave Kreskowiak7-Dec-17 13:11
mveDave Kreskowiak7-Dec-17 13:11 
GeneralRe: 2 Active Directory Questions Pin
Kevin Marois8-Dec-17 5:13
professionalKevin Marois8-Dec-17 5:13 
GeneralRe: 2 Active Directory Questions Pin
Dave Kreskowiak8-Dec-17 7:29
mveDave Kreskowiak8-Dec-17 7:29 
AnswerRe: 2 Active Directory Questions Pin
Eddy Vluggen7-Dec-17 14:20
professionalEddy Vluggen7-Dec-17 14:20 
QuestionHow can I add multiple headers in a ListView Control winforms c#? Pin
Dionisio Huerta Rosario7-Dec-17 6:25
Dionisio Huerta Rosario7-Dec-17 6:25 
AnswerRe: How can I add multiple headers in a ListView Control winforms c#? Pin
Gerry Schmitz7-Dec-17 20:41
mveGerry Schmitz7-Dec-17 20:41 
AnswerRe: How can I add multiple headers in a ListView Control winforms c#? Pin
Ralf Meier8-Dec-17 1:06
mveRalf Meier8-Dec-17 1:06 
QuestionDynamic HTML from Code Behind Pin
warren8r7-Dec-17 5:16
warren8r7-Dec-17 5:16 
AnswerRe: Dynamic HTML from Code Behind Pin
Gerry Schmitz7-Dec-17 6:16
mveGerry Schmitz7-Dec-17 6:16 
QuestionCreating a loop for multiple files coying to SQL Server which are coming from SFTP Loaction. Pin
Naveen Reddy Ankampalli6-Dec-17 14:49
Naveen Reddy Ankampalli6-Dec-17 14:49 
AnswerRe: Creating a loop for multiple files coying to SQL Server which are coming from SFTP Loaction. Pin
Dave Kreskowiak6-Dec-17 16:45
mveDave Kreskowiak6-Dec-17 16:45 
AnswerRe: Creating a loop for multiple files coying to SQL Server which are coming from SFTP Loaction. Pin
Gerry Schmitz6-Dec-17 16:58
mveGerry Schmitz6-Dec-17 16:58 
GeneralRe: Creating a loop for multiple files coying to SQL Server which are coming from SFTP Loaction. Pin
Naveen Reddy Ankampalli6-Dec-17 17:25
Naveen Reddy Ankampalli6-Dec-17 17:25 
GeneralRe: Creating a loop for multiple files coying to SQL Server which are coming from SFTP Loaction. Pin
Gerry Schmitz6-Dec-17 17:41
mveGerry Schmitz6-Dec-17 17:41 
GeneralRe: Creating a loop for multiple files coying to SQL Server which are coming from SFTP Loaction. Pin
Richard MacCutchan6-Dec-17 22:16
mveRichard MacCutchan6-Dec-17 22:16 
QuestionC# Is Active Directory Configured Pin
Kevin Marois6-Dec-17 11:02
professionalKevin Marois6-Dec-17 11:02 
AnswerRe: C# Is Active Directory Configured Pin
Dave Kreskowiak6-Dec-17 12:05
mveDave Kreskowiak6-Dec-17 12:05 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.