Click here to Skip to main content
15,923,006 members
Home / Discussions / C#
   

C#

 
QuestionINT Declarations? Pin
Anonymous10-May-04 2:41
Anonymous10-May-04 2:41 
AnswerRe: INT Declarations? Pin
Heath Stewart10-May-04 2:55
protectorHeath Stewart10-May-04 2:55 
GeneralC# Builder Pin
sreejith ss nair10-May-04 1:01
sreejith ss nair10-May-04 1:01 
GeneralRe: C# Builder Pin
Heath Stewart10-May-04 2:36
protectorHeath Stewart10-May-04 2:36 
QuestionHow to compare the file? Pin
m7779-May-04 22:37
m7779-May-04 22:37 
AnswerRe: How to compare the file? Pin
Heath Stewart10-May-04 2:52
protectorHeath Stewart10-May-04 2:52 
Questionhow to invoke API function which has pointer param ? Pin
fu09-May-04 21:58
fu09-May-04 21:58 
AnswerRe: how to invoke API function which has pointer param ? Pin
Mazdak9-May-04 22:41
Mazdak9-May-04 22:41 
AnswerRe: how to invoke API function which has pointer param ? Pin
Mazdak9-May-04 22:48
Mazdak9-May-04 22:48 
AnswerRe: how to invoke API function which has pointer param ? Pin
Heath Stewart10-May-04 3:04
protectorHeath Stewart10-May-04 3:04 
AnswerRe: how to invoke API function which has pointer param ? Pin
fu011-May-04 17:24
fu011-May-04 17:24 
GeneralLogon Problem using DataSets with Crsytal Reports Pin
AAQ9-May-04 21:07
AAQ9-May-04 21:07 
GeneralRe: Logon Problem using DataSets with Crsytal Reports Pin
Mazdak9-May-04 21:49
Mazdak9-May-04 21:49 
Generalcreating a form at runtime Pin
cristina_tudor9-May-04 20:25
cristina_tudor9-May-04 20:25 
GeneralRe: creating a form at runtime Pin
Stefan Troschuetz9-May-04 21:18
Stefan Troschuetz9-May-04 21:18 
GeneralRe: creating a form at runtime Pin
Heath Stewart10-May-04 3:15
protectorHeath Stewart10-May-04 3:15 
GeneralSearching Text in a RichTextBox Pin
myNameIsRon9-May-04 19:09
myNameIsRon9-May-04 19:09 
GeneralRe: Searching Text in a RichTextBox Pin
Aryadip9-May-04 21:31
Aryadip9-May-04 21:31 
GeneralRe: Searching Text in a RichTextBox Pin
myNameIsRon10-May-04 13:50
myNameIsRon10-May-04 13:50 
QuestionNT / LM Hash? Pin
RhysMG9-May-04 18:43
RhysMG9-May-04 18:43 
AnswerRe: NT / LM Hash? Pin
Heath Stewart10-May-04 3:28
protectorHeath Stewart10-May-04 3:28 
First of all, it's "NTLM" not "LM and NT". It stands for "Windows NT LAN Manager". The older "LM" just refers to LAN Manager (before NT, but still supported in part).

Second of all, it's not just a simple hash like MD5 or SHA1. The server creates a 16-byte random number (the challenge). The client hashes the password and encrypts the challenge with it. This is the response. If it's the client hash you're talking about, this is described in the Samba ENCRYPTION[^] documentation.

Why are you communicating with the LDAP server directly, though? If possible, you should use the negotiate security package, or Windows Integrated security. Since the hash of the password will always be the same, sending across the wire would be subject to replay attacks. A cracker wouldn't need the plain-text password - the hash would suffice, which is why the server sends a challenge to the client with either authentication request to be encrypted (the response).

You should go through the proper "channels" to authenticate the user, not do it yourself. One such easy way is to call the LogonUser API. This negotiates the security package and authenticates the user. If youre LDAP server is part of the Active Directory domain, there should be no problems doing it this way.

 

Microsoft MVP, Visual C#
My Articles
GeneralRe: NT / LM Hash? Pin
10-May-04 10:27
suss10-May-04 10:27 
GeneralRe: NT / LM Hash? Pin
Heath Stewart10-May-04 10:48
protectorHeath Stewart10-May-04 10:48 
QuestionHow o change this code to C#? Pin
kookai9-May-04 18:17
kookai9-May-04 18:17 
AnswerRe: How o change this code to C#? Pin
Dave Kreskowiak10-May-04 0:38
mveDave Kreskowiak10-May-04 0:38 

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.