You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
124 lines
3.0 KiB
124 lines
3.0 KiB
/*++
|
|
|
|
Copyright (c) 1994-2001 Microsoft Corporation
|
|
|
|
Module Name :
|
|
authent.cpp
|
|
|
|
Abstract:
|
|
WWW Authentication Dialog Definitions
|
|
|
|
Author:
|
|
Ronald Meijer (ronaldm)
|
|
Sergei Antonov (sergeia)
|
|
|
|
Project:
|
|
Internet Services Manager
|
|
|
|
Revision History:
|
|
|
|
--*/
|
|
|
|
|
|
|
|
class CAuthenticationDlg : public CDialog
|
|
{
|
|
//
|
|
// Construction
|
|
//
|
|
public:
|
|
CAuthenticationDlg(
|
|
IN LPCTSTR lpstrServerName, // For API name only
|
|
IN DWORD dwInstance, // For use in ocx only
|
|
IN CString & strBasicDomain,
|
|
IN CString & strRealm,
|
|
IN DWORD & dwAuthFlags,
|
|
IN DWORD & dwAccessPermissions,
|
|
IN CString & strUserName,
|
|
IN CStrPassword & strPassword,
|
|
IN BOOL & fPasswordSync,
|
|
IN BOOL fAdminAccess,
|
|
IN BOOL fHasDigest,
|
|
IN CWnd * pParent = NULL
|
|
);
|
|
|
|
DWORD m_dwVersionMajor;
|
|
DWORD m_dwVersionMinor;
|
|
//
|
|
// Dialog Data
|
|
//
|
|
protected:
|
|
//{{AFX_DATA(CAuthenticationDlg)
|
|
enum { IDD = IDD_AUTHENTICATION };
|
|
CButton m_check_Anonymous;
|
|
CEdit m_edit_UserName;
|
|
CEdit m_edit_Password;
|
|
CButton m_chk_PasswordSync;
|
|
BOOL m_fClearText;
|
|
BOOL m_fDigest;
|
|
BOOL m_fChallengeResponse;
|
|
BOOL m_fAnonymous;
|
|
CButton m_check_ChallengeResponse;
|
|
CButton m_check_ClearText;
|
|
CButton m_check_Digest;
|
|
CEdit m_edit_BasicDomain;
|
|
CButton m_btn_SelectDomain;
|
|
CEdit m_edit_Realm;
|
|
CButton m_btn_SelectRealm;
|
|
CButton m_chk_Passport;
|
|
BOOL m_fPassport;
|
|
//}}AFX_DATA
|
|
|
|
//
|
|
// Overrides
|
|
//
|
|
protected:
|
|
// ClassWizard generated virtual function overrides
|
|
//{{AFX_VIRTUAL(CAuthenticationDlg)
|
|
protected:
|
|
virtual void DoDataExchange(CDataExchange * pDX);
|
|
//}}AFX_VIRTUAL
|
|
|
|
//
|
|
// Implementation
|
|
//
|
|
protected:
|
|
// Generated message map functions
|
|
//{{AFX_MSG(CAuthenticationDlg)
|
|
virtual BOOL OnInitDialog();
|
|
afx_msg void OnButtonBrowseUsers();
|
|
afx_msg void OnCheckEnablePwSynchronization();
|
|
afx_msg void OnChangeEditUsername();
|
|
virtual void OnOK();
|
|
afx_msg void OnCheckClearText();
|
|
afx_msg void OnCheckAnonymous();
|
|
afx_msg void OnCheckDigest();
|
|
afx_msg void OnButtonSelectDomain();
|
|
afx_msg void OnButtonSelectRealm();
|
|
afx_msg void OnCheckPassport();
|
|
//}}AFX_MSG
|
|
afx_msg void OnItemChanged();
|
|
DECLARE_MESSAGE_MAP()
|
|
|
|
void SetControlStates();
|
|
HRESULT BrowseDomain(CString& domain);
|
|
|
|
private:
|
|
BOOL& m_fPasswordSync;
|
|
BOOL m_fPasswordSyncChanged;
|
|
BOOL m_fPasswordSyncMsgShown;
|
|
BOOL m_fAdminAccess;
|
|
BOOL m_fHasDigest;
|
|
BOOL m_fHasPassport;
|
|
BOOL m_fChanged;
|
|
BOOL m_fInDomain;
|
|
DWORD& m_dwAuthFlags;
|
|
DWORD& m_dwAccessPermissions;
|
|
DWORD m_dwInstance;
|
|
CString& m_strBasicDomain;
|
|
CString& m_strRealm;
|
|
CString& m_strUserName;
|
|
BOOL m_fUserNameChanged;
|
|
CStrPassword& m_strPassword;
|
|
CString m_strServerName;
|
|
};
|