Source code of Windows XP (NT5)
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.

82 lines
2.4 KiB

  1. //---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1992 - 1995
  5. //
  6. // File: cuas.cxx
  7. //
  8. // Contents: User Object Account Statistics FunctionalSet
  9. //
  10. // History: 11-1-95 krishnag Created.
  11. //
  12. //
  13. // PROPERTY_RO(AccountExpiration, DATE, 1) Implemented
  14. // PROPERTY_RO(BadLoginAddress, BSTR, 2) NI
  15. // PROPERTY_RO(BadLoginCount, long, 3) NI
  16. // PROPERTY_RO(BadPasswordAttempts, long, 4) Implemented
  17. // PROPERTY_RO(LastLogin, DATE, 5) Implemented
  18. // PROPERTY_RO(LastLogoff, DATE, 6) Implemented
  19. // PROPERTY_RO(LastFailedLogin, DATE, 7) NI
  20. // PROPERTY_RO(PasswordLastChanged, DATE, 8) Implemented
  21. //
  22. //----------------------------------------------------------------------------
  23. #include "ldap.hxx"
  24. #pragma hdrstop
  25. // Class CLDAPUser
  26. STDMETHODIMP CLDAPUser::get_EmailAddress(THIS_ BSTR FAR* retval)
  27. {
  28. GET_PROPERTY_BSTR((IADsUser *)this, EmailAddress );
  29. }
  30. STDMETHODIMP CLDAPUser::put_EmailAddress(THIS_ BSTR bstrEmailAddress )
  31. {
  32. PUT_PROPERTY_BSTR((IADsUser *)this, EmailAddress );
  33. }
  34. STDMETHODIMP CLDAPUser::get_HomeDirectory(THIS_ BSTR FAR* retval)
  35. {
  36. GET_PROPERTY_BSTR((IADsUser *)this, HomeDirectory);
  37. }
  38. STDMETHODIMP CLDAPUser::put_HomeDirectory(THIS_ BSTR bstrHomeDirectory)
  39. {
  40. PUT_PROPERTY_BSTR((IADsUser *)this, HomeDirectory);
  41. }
  42. STDMETHODIMP CLDAPUser::get_Languages(THIS_ VARIANT FAR* retval)
  43. {
  44. // Disable this for now since NTDS stores the language ID as an integer.
  45. // GET_PROPERTY_VARIANT((IADsUser *)this, Languages);
  46. RRETURN(E_ADS_PROPERTY_NOT_SUPPORTED);
  47. }
  48. STDMETHODIMP CLDAPUser::put_Languages(THIS_ VARIANT vLanguages)
  49. {
  50. // Disable this for now since NTDS stores the language ID as an integer.
  51. // PUT_PROPERTY_VARIANT((IADsUser *)this, Languages);
  52. RRETURN(E_ADS_PROPERTY_NOT_SUPPORTED);
  53. }
  54. STDMETHODIMP CLDAPUser::get_Profile(THIS_ BSTR FAR* retval)
  55. {
  56. GET_PROPERTY_BSTR((IADsUser *)this, Profile);
  57. }
  58. STDMETHODIMP CLDAPUser::put_Profile(THIS_ BSTR bstrProfile)
  59. {
  60. PUT_PROPERTY_BSTR((IADsUser *)this, Profile);
  61. }
  62. STDMETHODIMP CLDAPUser::get_LoginScript(THIS_ BSTR FAR* retval)
  63. {
  64. GET_PROPERTY_BSTR((IADsUser *)this, LoginScript);
  65. }
  66. STDMETHODIMP CLDAPUser::put_LoginScript(THIS_ BSTR bstrLoginScript)
  67. {
  68. PUT_PROPERTY_BSTR((IADsUser *)this, LoginScript);
  69. }