Click here to Skip to main content
15,911,646 members
Home / Discussions / C#
   

C#

 
QuestionHTTP GET Pin
Member 1355170113-Dec-17 2:54
Member 1355170113-Dec-17 2:54 
AnswerRe: HTTP GET Pin
Richard Deeming13-Dec-17 3:06
mveRichard Deeming13-Dec-17 3:06 
GeneralRe: HTTP GET Pin
Member 1355170113-Dec-17 7:25
Member 1355170113-Dec-17 7:25 
QuestionC# interface Pin
Member 1212070811-Dec-17 1:23
Member 1212070811-Dec-17 1:23 
AnswerRe: C# interface Pin
Pete O'Hanlon11-Dec-17 1:27
mvePete O'Hanlon11-Dec-17 1:27 
QuestionVoting System in C# Pin
Member 1356906610-Dec-17 20:41
Member 1356906610-Dec-17 20:41 
AnswerRe: Voting System in C# Pin
Richard MacCutchan10-Dec-17 20:59
mveRichard MacCutchan10-Dec-17 20:59 
GeneralRe: Voting System in C# Pin
Member 1356906610-Dec-17 22:16
Member 1356906610-Dec-17 22:16 
GeneralRe: Voting System in C# Pin
Richard MacCutchan10-Dec-17 22:38
mveRichard MacCutchan10-Dec-17 22:38 
GeneralRe: Voting System in C# Pin
Pete O'Hanlon10-Dec-17 22:47
mvePete O'Hanlon10-Dec-17 22:47 
AnswerRe: Voting System in C# Pin
OriginalGriff10-Dec-17 23:32
mveOriginalGriff10-Dec-17 23:32 
GeneralRe: Voting System in C# Pin
Mycroft Holmes10-Dec-17 23:39
professionalMycroft Holmes10-Dec-17 23:39 
GeneralRe: Voting System in C# Pin
OriginalGriff10-Dec-17 23:43
mveOriginalGriff10-Dec-17 23:43 
GeneralRe: Voting System in C# Pin
phil.o11-Dec-17 18:02
professionalphil.o11-Dec-17 18:02 
QuestionGeneric type passed into method question Pin
User987439-Dec-17 20:44
professionalUser987439-Dec-17 20:44 
AnswerRe: Generic type passed into method question Pin
OriginalGriff9-Dec-17 22:32
mveOriginalGriff9-Dec-17 22:32 
QuestionRe: Generic type passed into method question Pin
User9874310-Dec-17 0:49
professionalUser9874310-Dec-17 0:49 
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.

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.