RE: Webserver and FTP user authentication
From: Corey Burke [MS] (coreyb_at_online.microsoft.com)
Date: 01/03/05
- Next message: Boo Khan Ming: "Plugin for Notepad?"
- Previous message: r_z_aret_at_pen_fact.com: "Re: Installation of eVC++ 4.0 hangs."
- In reply to: shiva: "RE: Webserver and FTP user authentication"
- Next in thread: shiva: "RE: Webserver and FTP user authentication"
- Reply: shiva: "RE: Webserver and FTP user authentication"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 03 Jan 2005 21:59:18 GMT
There are two types of users we're talking about here. Local and Domain.
Domain users have their passwords verified by the domain controller for
example mydomain.microsoft.com. Local users have their names+passwords
stored on the local device and are created using the NTLMSetUserInfo()
function or via the RemoteAdmin web ISAPI.
After you set the DefaultDomain key, you'll need to reset the device to get
it to use the new settings. When you set A=1 in the virtual root, you'll
get prompted for credentials. Enter in your domain credentials:
MYDOMAIN\DomainUserName and DomainUserPass. The local PC you're using to
view the web page will create an encrypted NTLM package that it will send
to the CE server. The CE server will then send this package on to the
domain controller which will decrypt it, verify the password and reply to
the CE device with whether or not the credentials were valid. The CE
device does not actually store your domain credentials and for security
reasons, it should not.
For local user authentication you need to create a user with
NTLMSetUserInfo, like the following:
typedef BOOL ( *PFnSetUser )(IN LPCTSTR pszUser, IN LPCTSTR pszPassword);
HMODULE hModule = NULL;
PFnSetUser pFnSetUser;
hModule = LoadLibrary( _T("ntlmssp.dll") );
if( hModule == NULL )
{
QAError( TEXT("LoadLibrary() failed, error = %d"), GetLastError() );
return FALSE;
}
pFnSetUser = (PFnSetUser)GetProcAddress(hModule, _T("NTLMSetUserInfo"));
if(!pFnSetUser)
return FALSE;
pFnSetUser( _T("user1"), _T("pass1") );
Then put the local user's name in the UserList for the website like so, and
reset the web server to get the web server to read the new settings:
[HKEY_LOCAL_MACHINE\Comm\HTTPD]
"UserList"="user1"
The same goes for FTP authentication.
-Corey
- Next message: Boo Khan Ming: "Plugin for Notepad?"
- Previous message: r_z_aret_at_pen_fact.com: "Re: Installation of eVC++ 4.0 hangs."
- In reply to: shiva: "RE: Webserver and FTP user authentication"
- Next in thread: shiva: "RE: Webserver and FTP user authentication"
- Reply: shiva: "RE: Webserver and FTP user authentication"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|