Can I use the SAM to authenticate my users ?

We currently market a client server system which uses a text based dialogue over TCPIP. It authenticates itself using a locally implemented form of CHAP, to avoid passing the password over the network. This obviously requires that the our server maintains an account database holding login IDs and hashed passwords.

What we would like to be able to do away with our local database and authenticate our client login details against the SAM database on the machine that the server is running.

Is this possible?

It occurs to me that if the server needs to call local APIs to hash a password or use the password directly then it will need to be sent over the network - which does not sound too clever. Is this what MS FTP Server relies on ?

Do we need to call a client side API to convert our password into a compatible hashed form to be used by the server side. What API would the server and client use. If we did call a client side API how do we prevent someone evesdropping replaying?

*Any* feedback gratefully received.

[1052 byte] By [Markeque] at [2008-2-15]
# 1
This is more of a question for a Windows Forum, or a Crypto/Authentication Forum, so please take ,my response as just my knowledge and not as the best information. I used to work in other teams in Microsoft doing more Dev stuff in Windows and Exchange so from that perspective I know some of this information.

You can use Kerberos to do your authentication with an AD instead of just the SAM. with the SAM you can do NTLM calls and yes they would be sniffable over the wire unless you protect them with some type of TLS or https and there fore crackable as NTLM is weeker than Kerberos. But what I would suggest is that if you are using a Client Server infrastructure then make the server a DC and run AD and then use Kerberos.

For FTP and telnet they use NTLM. try the telnet command you will see some set optioons for going plain text and NTLM.

Again its my 2 cents. But check some of the NT formus for more information.

James Baker
PM MSN Messenger

jbaker_ms at 2007-9-9 > top of Msdn Tech,Windows Live Developer Forums,Windows Live Messenger: Development...

Windows Live Developer Forums

Site Classified