Click here to Skip to main content
15,943,325 members
Home / Discussions / C#
   

C#

 
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 
GeneralDraw text on another app's DirectX window Pin
Darvus9-May-04 18:06
Darvus9-May-04 18:06 
QuestionInitialize control dropped on form? Pin
MilesAhead9-May-04 17:13
MilesAhead9-May-04 17:13 
AnswerRe: Initialize control dropped on form? Pin
Aryadip9-May-04 17:56
Aryadip9-May-04 17:56 
GeneralRe: Initialize control dropped on form? Pin
MilesAhead10-May-04 10:43
MilesAhead10-May-04 10:43 
AnswerRe: Initialize control dropped on form? Pin
MilesAhead13-May-04 11:43
MilesAhead13-May-04 11:43 
Generalwhich dll need to be imported to customize PrintPreviewDialog Pin
sachinkalse9-May-04 16:25
sachinkalse9-May-04 16:25 
GeneralRe: which dll need to be imported to customize PrintPreviewDialog Pin
Heath Stewart10-May-04 3:59
protectorHeath Stewart10-May-04 3:59 
GeneralRe: which dll need to be imported to customize PrintPreviewDialog Pin
sachinkalse12-May-04 21:05
sachinkalse12-May-04 21:05 
GeneralRe: which dll need to be imported to customize PrintPreviewDialog Pin
Heath Stewart13-May-04 2:30
protectorHeath Stewart13-May-04 2:30 
GeneralBeginInvoke Pin
Hugo Hallman9-May-04 12:50
Hugo Hallman9-May-04 12:50 
GeneralRe: BeginInvoke Pin
Heath Stewart10-May-04 3:57
protectorHeath Stewart10-May-04 3:57 
GeneralRe: BeginInvoke Pin
Hugo Hallman10-May-04 5:29
Hugo Hallman10-May-04 5:29 
GeneralRe: BeginInvoke Pin
Heath Stewart10-May-04 5:34
protectorHeath Stewart10-May-04 5:34 

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.