Leaked source code of windows server 2003
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

  1. /*++
  2. Copyright (c) 1994-2001 Microsoft Corporation
  3. Module Name :
  4. authent.cpp
  5. Abstract:
  6. WWW Authentication Dialog Definitions
  7. Author:
  8. Ronald Meijer (ronaldm)
  9. Sergei Antonov (sergeia)
  10. Project:
  11. Internet Services Manager
  12. Revision History:
  13. --*/
  14. class CAuthenticationDlg : public CDialog
  15. {
  16. //
  17. // Construction
  18. //
  19. public:
  20. CAuthenticationDlg(
  21. IN LPCTSTR lpstrServerName, // For API name only
  22. IN DWORD dwInstance, // For use in ocx only
  23. IN CString & strBasicDomain,
  24. IN CString & strRealm,
  25. IN DWORD & dwAuthFlags,
  26. IN DWORD & dwAccessPermissions,
  27. IN CString & strUserName,
  28. IN CStrPassword & strPassword,
  29. IN BOOL & fPasswordSync,
  30. IN BOOL fAdminAccess,
  31. IN BOOL fHasDigest,
  32. IN CWnd * pParent = NULL
  33. );
  34. DWORD m_dwVersionMajor;
  35. DWORD m_dwVersionMinor;
  36. //
  37. // Dialog Data
  38. //
  39. protected:
  40. //{{AFX_DATA(CAuthenticationDlg)
  41. enum { IDD = IDD_AUTHENTICATION };
  42. CButton m_check_Anonymous;
  43. CEdit m_edit_UserName;
  44. CEdit m_edit_Password;
  45. CButton m_chk_PasswordSync;
  46. BOOL m_fClearText;
  47. BOOL m_fDigest;
  48. BOOL m_fChallengeResponse;
  49. BOOL m_fAnonymous;
  50. CButton m_check_ChallengeResponse;
  51. CButton m_check_ClearText;
  52. CButton m_check_Digest;
  53. CEdit m_edit_BasicDomain;
  54. CButton m_btn_SelectDomain;
  55. CEdit m_edit_Realm;
  56. CButton m_btn_SelectRealm;
  57. CButton m_chk_Passport;
  58. BOOL m_fPassport;
  59. //}}AFX_DATA
  60. //
  61. // Overrides
  62. //
  63. protected:
  64. // ClassWizard generated virtual function overrides
  65. //{{AFX_VIRTUAL(CAuthenticationDlg)
  66. protected:
  67. virtual void DoDataExchange(CDataExchange * pDX);
  68. //}}AFX_VIRTUAL
  69. //
  70. // Implementation
  71. //
  72. protected:
  73. // Generated message map functions
  74. //{{AFX_MSG(CAuthenticationDlg)
  75. virtual BOOL OnInitDialog();
  76. afx_msg void OnButtonBrowseUsers();
  77. afx_msg void OnCheckEnablePwSynchronization();
  78. afx_msg void OnChangeEditUsername();
  79. virtual void OnOK();
  80. afx_msg void OnCheckClearText();
  81. afx_msg void OnCheckAnonymous();
  82. afx_msg void OnCheckDigest();
  83. afx_msg void OnButtonSelectDomain();
  84. afx_msg void OnButtonSelectRealm();
  85. afx_msg void OnCheckPassport();
  86. //}}AFX_MSG
  87. afx_msg void OnItemChanged();
  88. DECLARE_MESSAGE_MAP()
  89. void SetControlStates();
  90. HRESULT BrowseDomain(CString& domain);
  91. private:
  92. BOOL& m_fPasswordSync;
  93. BOOL m_fPasswordSyncChanged;
  94. BOOL m_fPasswordSyncMsgShown;
  95. BOOL m_fAdminAccess;
  96. BOOL m_fHasDigest;
  97. BOOL m_fHasPassport;
  98. BOOL m_fChanged;
  99. BOOL m_fInDomain;
  100. DWORD& m_dwAuthFlags;
  101. DWORD& m_dwAccessPermissions;
  102. DWORD m_dwInstance;
  103. CString& m_strBasicDomain;
  104. CString& m_strRealm;
  105. CString& m_strUserName;
  106. BOOL m_fUserNameChanged;
  107. CStrPassword& m_strPassword;
  108. CString m_strServerName;
  109. };