ActiveDirectoryMembershipProvider.cs 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221
  1. //
  2. // System.Web.Security.ActiveDirectoryMembershipProvider
  3. //
  4. // Authors:
  5. // Ben Maurer ([email protected])
  6. // Lluis Sanchez Gual ([email protected])
  7. //
  8. // (C) 2003 Ben Maurer
  9. // Copyright (c) 2005 Novell, Inc (http://www.novell.com)
  10. //
  11. // Permission is hereby granted, free of charge, to any person obtaining
  12. // a copy of this software and associated documentation files (the
  13. // "Software"), to deal in the Software without restriction, including
  14. // without limitation the rights to use, copy, modify, merge, publish,
  15. // distribute, sublicense, and/or sell copies of the Software, and to
  16. // permit persons to whom the Software is furnished to do so, subject to
  17. // the following conditions:
  18. //
  19. // The above copyright notice and this permission notice shall be
  20. // included in all copies or substantial portions of the Software.
  21. //
  22. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  23. // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  24. // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  25. // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
  26. // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
  27. // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
  28. // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  29. //
  30. #if NET_2_0
  31. using System.Collections.Specialized;
  32. namespace System.Web.Security {
  33. [MonoTODO ("that's only a stub")]
  34. public class ActiveDirectoryMembershipProvider : MembershipProvider {
  35. [MonoTODO ("Not implemented")]
  36. public override bool ChangePassword (string username, string oldPwd, string newPwd)
  37. {
  38. throw new NotImplementedException ();
  39. }
  40. [MonoTODO ("Not implemented")]
  41. public override bool ChangePasswordQuestionAndAnswer (string username, string password, string newPwdQuestion, string newPwdAnswer)
  42. {
  43. throw new NotImplementedException ();
  44. }
  45. [MonoTODO ("Not implemented")]
  46. public override MembershipUser CreateUser (string username, string password, string email, string pwdQuestion, string pwdAnswer, bool isApproved, object providerUserKey, out MembershipCreateStatus status)
  47. {
  48. throw new NotImplementedException ();
  49. }
  50. [MonoTODO ("Not implemented")]
  51. public override bool DeleteUser (string username, bool deleteAllRelatedData)
  52. {
  53. throw new NotImplementedException ();
  54. }
  55. [MonoTODO ("Not implemented")]
  56. public virtual string GeneratePassword ()
  57. {
  58. throw new NotImplementedException ();
  59. }
  60. [MonoTODO ("Not implemented")]
  61. public override MembershipUserCollection FindUsersByEmail (string emailToMatch, int pageIndex, int pageSize, out int totalRecords)
  62. {
  63. throw new NotImplementedException ();
  64. }
  65. [MonoTODO ("Not implemented")]
  66. public override MembershipUserCollection FindUsersByName (string nameToMatch, int pageIndex, int pageSize, out int totalRecords)
  67. {
  68. throw new NotImplementedException ();
  69. }
  70. [MonoTODO ("Not implemented")]
  71. public override MembershipUserCollection GetAllUsers (int pageIndex, int pageSize, out int totalRecords)
  72. {
  73. throw new NotImplementedException ();
  74. }
  75. [MonoTODO ("Not implemented")]
  76. public override int GetNumberOfUsersOnline ()
  77. {
  78. throw new NotImplementedException ();
  79. }
  80. [MonoTODO("Not implemented")]
  81. public override string GetPassword (string username, string answer)
  82. {
  83. throw new NotImplementedException ();
  84. }
  85. [MonoTODO("Not implemented")]
  86. public override MembershipUser GetUser (string username, bool userIsOnline)
  87. {
  88. throw new NotImplementedException ();
  89. }
  90. [MonoTODO("Not implemented")]
  91. public override MembershipUser GetUser (object providerUserKey, bool userIsOnline)
  92. {
  93. throw new NotImplementedException ();
  94. }
  95. [MonoTODO("Not implemented")]
  96. public override string GetUserNameByEmail (string email)
  97. {
  98. throw new NotImplementedException ();
  99. }
  100. [MonoTODO("Not implemented")]
  101. public override void Initialize (string name, NameValueCollection config)
  102. {
  103. throw new NotImplementedException ();
  104. }
  105. [MonoTODO("Not implemented")]
  106. public override string ResetPassword (string username, string answer)
  107. {
  108. throw new NotImplementedException ();
  109. }
  110. [MonoTODO("Not implemented")]
  111. public override void UpdateUser (MembershipUser user)
  112. {
  113. throw new NotImplementedException ();
  114. }
  115. [MonoTODO("Not implemented")]
  116. public override bool ValidateUser (string username, string password)
  117. {
  118. throw new NotImplementedException ();
  119. }
  120. [MonoTODO("Not implemented")]
  121. public override bool UnlockUser (string userName)
  122. {
  123. throw new NotImplementedException ();
  124. }
  125. [MonoTODO("Not implemented")]
  126. public override string ApplicationName {
  127. get { throw new NotImplementedException (); }
  128. set { throw new NotImplementedException (); }
  129. }
  130. [MonoTODO("Not implemented")]
  131. public ActiveDirectoryConnectionProtection CurrentConnectionProtection {
  132. get { throw new NotImplementedException (); }
  133. }
  134. [MonoTODO("Not implemented")]
  135. public override bool EnablePasswordReset {
  136. get { throw new NotImplementedException (); }
  137. }
  138. [MonoTODO("Not implemented")]
  139. public override bool EnablePasswordRetrieval {
  140. get { throw new NotImplementedException (); }
  141. }
  142. [MonoTODO("Not implemented")]
  143. public bool EnableSearchMethods {
  144. get { throw new NotImplementedException (); }
  145. }
  146. [MonoTODO("Not implemented")]
  147. public override MembershipPasswordFormat PasswordFormat {
  148. get { throw new NotImplementedException (); }
  149. }
  150. [MonoTODO("Not implemented")]
  151. public override bool RequiresQuestionAndAnswer {
  152. get { throw new NotImplementedException (); }
  153. }
  154. [MonoTODO("Not implemented")]
  155. public override bool RequiresUniqueEmail {
  156. get { throw new NotImplementedException (); }
  157. }
  158. [MonoTODO("Not implemented")]
  159. public override int MaxInvalidPasswordAttempts {
  160. get { throw new NotImplementedException (); }
  161. }
  162. [MonoTODO("Not implemented")]
  163. public override int MinRequiredNonAlphanumericCharacters {
  164. get { throw new NotImplementedException (); }
  165. }
  166. [MonoTODO("Not implemented")]
  167. public override int MinRequiredPasswordLength {
  168. get { throw new NotImplementedException (); }
  169. }
  170. [MonoTODO("Not implemented")]
  171. public override int PasswordAttemptWindow {
  172. get { throw new NotImplementedException (); }
  173. }
  174. [MonoTODO("Not implemented")]
  175. public int PasswordAnswerAttemptLockoutDuration {
  176. get { throw new NotImplementedException (); }
  177. }
  178. [MonoTODO("Not implemented")]
  179. public override string PasswordStrengthRegularExpression {
  180. get { throw new NotImplementedException (); }
  181. }
  182. }
  183. }
  184. #endif