Commit Graph
38 Commits
Author SHA1 Message Date
Gonzalo Paniagua Javier 4568b14260 2008-12-25 Gonzalo Paniagua Javier <[email protected]>
* SqlRoleProvider.cs:
	* SqlMembershipProvider.cs: use IndexOf (char) instead of
	IndexOf (string).


svn path=/trunk/mcs/; revision=122108
2008-12-25 07:26:26 +00:00
Marek Habersack ef9c9e51ce Do not abuse the 'private' keyword
svn path=/trunk/mcs/; revision=116539
2008-10-20 17:37:54 +00:00
Vladimir Krasnov c2c3688601 * System.Web.dll.sources: added AspNetDBSchemaChecker.cs
* System.Web20.csproj: added AspNetDBSchemaChecker.cs
* SqlProfileProvider.cs: added db schema checking
* SqliteMembershipProvider.cs, SqlRoleProvider.cs: added chema checking
* added AspNetDBSchemaChecker.cs: schema checker helper class

svn path=/trunk/mcs/; revision=92040
2007-12-30 16:07:38 +00:00
Marek Habersack 401b23f9cc 2007-11-23 Marek Habersack <[email protected]>
* RequestNotificationStatus.cs: fix the order of enum members.

	* RequestNotification.cs: assign correct values to the enum
	members.

	* StaticSiteMapProvider.cs: change visibility of the constructor.

2007-11-28  Marek Habersack  <[email protected]>

	* SqlMembershipProvider.cs: handle situation when there is no
	connection string configured for the SQL Membership Provider.


svn path=/trunk/mcs/; revision=90387
2007-11-28 15:19:51 +00:00
Marek Habersack de3974edad 2007-08-14 Marek Habersack <[email protected]>
* SessionStateServerHandler.cs: remove unused field.

2007-08-14  Marek Habersack  <[email protected]>

	* Control.cs: include the actual exception when reporting control
	id clash.

2007-08-14  Marek Habersack  <[email protected]>

	* Roles.cs: remove unused field.

	* SqlMembershipProvider.cs: remove unused variable.

2007-08-14  Marek Habersack  <[email protected]>

	* ObjectDataSourceView.cs: remove unused variable.

	* ChangePassword.cs: remove unused variable.

	* RoleGroupCollection.cs: OnValidate shouldn't be overridden.

2007-08-14  Marek Habersack  <[email protected]>

	* SqlProfileProvider.cs: remove unused variable.

2007-08-14  Marek Habersack  <[email protected]>

	* XmlSiteMapProvider.cs: do not hide this_lock.



svn path=/trunk/mcs/; revision=84041
2007-08-14 10:52:59 +00:00
Vladimir Krasnov 16a521094d * SqlMembershipProvider.cs: fixed DeleteUser, fixed parameter name
svn path=/trunk/mcs/; revision=77523
2007-05-17 08:00:36 +00:00
Igor Zelmanovich 792f238938 2007-05-14 Igor Zelmanovich <[email protected]>
* SqlMembershipProvider.cs: Fix parameter binding to stored procedures.

svn path=/trunk/mcs/; revision=77349
2007-05-14 14:04:10 +00:00
Igor Zelmanovich 7808e05919 2007-04-19 Igor Zelmanovich <[email protected]>
* SqlMembershipProvider.cs:
	ChangePassword throws exception if new password has invalid format.	

2007-04-19 Igor Zelmanovich <[email protected]>

	* ChangePassword.cs:
	does not accept invalid new password.	


svn path=/trunk/mcs/; revision=75955
2007-04-19 15:05:39 +00:00
Marek Habersack 3f575470f5 Fix user creation, password reset etc.
svn path=/trunk/mcs/; revision=73634
2007-03-02 13:23:52 +00:00
Andreia Gaita c1bfc5b0b3 * SqlRoleProvider.cs: Fix parameter binding to stored procedures.
* SqlMembershipProvider.cs: Fix parameter binding to stored procedures.
CreateUser() doesn't use transactions in MS asp.net, so removed the 
transaction calls.

2007-02-28  Andreia Gaita  <[email protected]>

svn path=/trunk/mcs/; revision=73522
2007-02-28 03:40:17 +00:00
Miguel de Icaza 6b4c7232fd * SiteMapNode.cs (GetExplicitResourceString): implement.
* HttpContext.cs (GetGlobalResourceObject): remove unused variable.

        * StaticFileHandler.cs (ProcessRequest): remove unused variable.

        * HttpApplication.cs (ProcessError): Remove unused variable.

2007-01-20  Miguel de Icaza  <[email protected]>

        * ClientBuildManager.cs: Remove unused variable (this could be a
        real problem, we never use the appPhysicalTargetDir)

        * AssemblyBuilder.cs: Remove unused field.

        * AppResourceFilesCollection.cs: Remove unused field.

        * TemplateControlCompiler.cs (GetExpressionFromString): Remove
        unused variable.

        * AppResourcesCompiler.cs: Remove unused variable.

        * AppSettingsExpressionBuilder.cs (GetAppSetting): remove unused
        parameter.

        * PageCompiler.cs: Put InternalCreatePageProperty inside the
        NET_2_0 block to eliminate warnings.

2007-01-20  Miguel de Icaza  <[email protected]>

        * HandlerFactoryConfiguration.cs (LoadType): remove unused
        variable.
        (ctor): do not assign parent, we do not use it, keep the code for
        reference.

2007-01-20  Miguel de Icaza  <[email protected]>

        * ApplicationManager.cs: Remove unused variable.
        (ShutdownAll) remove unused variables.

        * ApplicationHost.cs: Protect create_dir lock

2007-01-20  Miguel de Icaza  <[email protected]>

        * SqlRoleProvider.cs: comment out unused code.

        * SqlMembershipProvider.cs: Removed unused variables.
        Remove unused variable.

        * AnonymousIdentificationModule.cs (ClearAnonymousIdentifier):
        remove unused variable.   This might be a real bug.

2007-01-20  Miguel de Icaza  <[email protected]>

        * SessionStateModule.cs: Removed unused variables.

2007-01-20  Miguel de Icaza  <[email protected]>

        * SessionDictionary.cs: Removed unused variable (dirty).

2007-01-20  Miguel de Icaza  <[email protected]>

        * XhtmlTextWriter.cs: comment out unused code.

        * ThemeProvider.cs: comment out unused code.

        * DataSourceView.cs: Comment unused variable.

        * ClientScriptManager.cs: Put the expandoAttributes inside the 2.0
        code

        * Control.cs: Put _templateControl inside the NET_2_0 ifdef

2007-01-20  Miguel de Icaza  <[email protected]>

        * HtmlHead.cs: comment out unused code, in particular metadata is
        commented out because nothing could have triggered its creation.

        * HtmlButton.cs: Move declaration of `csm' inside the 1.1 case.

2007-01-20  Miguel de Icaza  <[email protected]>

        * DataControlFieldCollection.cs (RemoveAt): remove unused
        variable.

        * RoleGroupCollection.cs (OnValidate): Flag as protected, as it
        should not show up.

        * RadioButton.cs (RaisePostDataChangedEvent): This method was not
        used in 1.0, so put the whole method in 2.0

2007-01-20  Miguel de Icaza  <[email protected]>

        * WebPart.cs: Remove

        * PersonalizableAttribute.cs: Remove extra API that was wrong as well.

2006-11-28  Miguel de Icaza  <[email protected]>

        * WebPart.cs:

2007-01-20  Miguel de Icaza  <[email protected]>

        * FileUtils.cs (CreateTemporaryFile): Remove unused variable.



svn path=/trunk/mcs/; revision=71399
2007-01-20 22:42:04 +00:00
Miguel de Icaza 8616a7e405 2006-11-28 Miguel de Icaza <[email protected]>
* Rationalize the user of MonoTODOs.  

		- Removed all the TODOs that were only overwritten methods
		and had no further information.

		- Methods that threw exceptions now have the message "Not
		implemnted".

		- Methods that return some constant are declared like
		that.

		- Removed a bunch of stale MonoTODOs that had not been
		removed. 


svn path=/trunk/mcs/; revision=68620
2006-11-28 22:15:23 +00:00
Vladimir Krasnov 66f190fa42 * SqlMembershipProvider.cs: typo bug
svn path=/trunk/mcs/; revision=68504
2006-11-27 12:36:24 +00:00
Vladimir Krasnov c6aeee778e * SqlMembershipProvider.cs: fixed fixed exception type in GetPassword, checks user lockout
svn path=/trunk/mcs/; revision=68244
2006-11-21 10:31:20 +00:00
Igor Zelmanovich 9a9d91b1f5 svn path=/trunk/mcs/; revision=68184 2006-11-20 11:41:20 +00:00
Igor Zelmanovich 6ce6105ee1 2006-11-15 Igor Zelmanovich <[email protected]>
* SqlMembershipProvider.cs: fixed: name is used for ReturnValue parameter.


svn path=/trunk/mcs/; revision=67923
2006-11-15 14:25:28 +00:00
Vladimir Krasnov 49aa6ea128 * MembershipProvider.cs, SqlMembershipProvider.cs: refactoring of DecryptPassword and EncryptPassword methods according to documentation
svn path=/trunk/mcs/; revision=67374
2006-11-05 13:32:07 +00:00
Vladimir Krasnov 6e96be9db1 * Membership.cs: fixed GetAllUsers, typo bug
* SqlRoleProvider.cs, SqlMembershipProvider.cs: refactored to use aspnetdb built in stored procedures,
fixed application name and membership relation,
improved exception handling

svn path=/trunk/mcs/; revision=64996
2006-09-06 11:43:47 +00:00
Igor Zelmanovich c76635f8a5 fixed GetUser, when username is String.Empty method returns null.
svn path=/trunk/mcs/; revision=64792
2006-09-03 09:18:13 +00:00
Igor Zelmanovich 4b1fb66ced fixed CreateUser,
password is checked, properties MinRequiredPasswordLength and 
MinRequiredNonAlphanumericCharacters are considered.

svn path=/trunk/mcs/; revision=64618
2006-08-31 14:48:03 +00:00
Konstantin Triger 3304353a1f fix dispose order of reader vs connection
svn path=/trunk/mcs/; revision=64510
2006-08-29 13:36:15 +00:00
Igor Zelmanovich f42ce063fc fixed CreateUser, parameter isApproved is considered.
svn path=/trunk/mcs/; revision=64478
2006-08-28 15:55:54 +00:00
Konstantin Triger 7f499d5b52 * SqlMembershipProvider.cs: ensure GetUser() returns null if it cannot
retrieve user information

svn path=/trunk/mcs/; revision=64470
2006-08-28 12:18:44 +00:00
Konstantin Triger 81305af79f use SqlClientFactory in case the ProviderName is not specified
svn path=/trunk/mcs/; revision=64463
2006-08-28 08:16:05 +00:00
Konstantin Triger 9dcf63a8bd enable concurrent usage, refactoring
svn path=/trunk/mcs/; revision=64441
2006-08-27 15:20:52 +00:00
Vladimir Krasnov 12742fd81c * SqlMembershipProvider.cs: fixed ValidateUser, bug when user not exists
svn path=/trunk/mcs/; revision=64425
2006-08-27 07:09:39 +00:00
Chris Toshok 06d0f2af03 2006-05-03 Chris Toshok <[email protected]>
* SqlMembershipProvider.cs (GetAlg): move this here for the time
	being, as it's the only class that uses it.
	(HashAndBase64Encode): nuke.
	(EncryptAndBase64Encode): nuke.
	(Base64DecodeAndDecrypt): nuke.
	(DecryptPassword): new function.
	(EncryptPassword): new function.
	(ChangePassword): replace the switch with a call to
	EncodePassword.
	(ChangePasswordQuestionAndAnswer): same.
	(CreateUser): same.
	(ResetPassword): same.
	(ValidateUsingPassword): same.
	(ValidateUsingPasswordAnswer): same.
	(GetPassword): same, and throw MembershipPasswordException if the
	password answer is incorrect.

	* MembershipProvider.cs (InitVector): nuke this.  it's actually
	the salt from the database (for the sql provider, anyway).
	(EncodePassword): based on the password format, password, and
	salt, encode it.  Makes use of EncryptPassword.
	(DecodePassword): likewise for decoding, makes use of
	DecryptPassword.
	(DecryptPassword): revert this to throwing
	NotImplementedException, as the sql provideroverrides it to
	perform the actual decryption.
	(EncryptPassword): same.


svn path=/trunk/mcs/; revision=60240
2006-05-03 22:14:51 +00:00
Chris Toshok 9a371dee3b 2006-05-02 Chris Toshok <[email protected]>
* SqlMembershipProvider.cs: 85% complete, maybe more.  The major
	functionality should work.  Password retrieval (and encrypted
	passwords in general) is untested.


svn path=/trunk/mcs/; revision=60190
2006-05-02 18:09:49 +00:00
Chris Toshok f570008c4c oops. committed the wrong revision
svn path=/trunk/mcs/; revision=60127
2006-05-01 17:55:08 +00:00
Chris Toshok f9bc30604e 2006-05-01 Chris Toshok <[email protected]>
* SqlMembershipProvider.cs: lots more work.  checking this in in
	its present state because I don't want to lose it.  It still needs
	work.
	
	* Membership.cs (.cctor): remove the fallback.
	(ValidatingPassword): remove the MonoTODO.

	* MembershipProvider.cs (DecryptPassword): implement.
	(EncryptPassword): implement.
	(GetAlg): helper function for Decrypt/EncryptPassword.
	(InitVector): same.

	* SqlMembershipProvider.cs (GeneratePassword): call
	Membership.GeneratePassword with the configured minimum strength
	requirements.
2006-04-27  Chris Toshok  <[email protected]>

	* SqlMembershipProvider.cs (UnlockUser): fix sql query, and move
	the CheckPararm call to the top of the method.


svn path=/trunk/mcs/; revision=60126
2006-05-01 17:49:10 +00:00
Chris Toshok 66273fce26 2006-04-27 Chris Toshok <[email protected]>
* SqlMembershipProvider.cs (UnlockUser): fix sql query.


svn path=/trunk/mcs/; revision=59992
2006-04-27 17:13:28 +00:00
Chris Toshok d874121651 2006-04-12 Chris Toshok <[email protected]>
* SqlMembershipProvider.cs: commit initial pass at
	SqlMembershipProvider work.  lots of stuff untested in here.


svn path=/trunk/mcs/; revision=59426
2006-04-12 21:50:41 +00:00
Miguel de Icaza 54079f764a Commit of changes to core files, on behalf of the team
svn path=/trunk/mcs/; revision=48944
2005-08-26 22:58:48 +00:00
Lluis Sanchez c2a04b1212 2005-06-10 Lluis Sanchez Gual <[email protected]>
* MembershipUserCollection.cs:
	* MembershipPasswordException.cs:
	* RoleProviderCollection.cs:
	* ActiveDirectoryMembershipProvider.cs:
	* SqlMembershipProvider.cs:
	* MembershipProvider.cs:
	* SqlRoleProvider.cs:
	* Membership.cs:
	* MembershipUser.cs:
	* MembershipProviderCollection.cs:
	* Roles.cs:.
	* RoleProvider.cs: Track api changes in ASP.NET 2.0. Implemented
	some missing methods.
	
	* AccessRoleProvider.cs:
	* AccessMembershipProvider.cs: Removed.
	
	* MembershipCreateUserException.cs:
	* MembershipValidatePasswordEventHandler.cs:
	* ValidatePasswordEventArgs.cs: Implemented.


svn path=/trunk/mcs/; revision=45762
2005-06-10 15:30:39 +00:00
Lluis Sanchez c99594ef82 2004-11-18 Lluis Sanchez Gual <[email protected]>
* RoleProvider.cs, Roles.cs, SqlRoleProvider.cs, RoleProviderCollection.cs,
	AccessRoleProvider.cs: IRoleProvider has been renamed to ProviderBase.
	* IMembershipProvider.cs: Deleted.
	* MembershipProvider.cs, AccessMembershipProvider.cs, MembershipUser.cs,
	Membership.cs, ADMembershipProvider.cs, SqlMembershipProvider.cs
	MembershipProviderCollection.cs: MembershipProvider has been deleted
	and replaced by the abstract class MembershipProvider.
	* MembershipProviderCollection.cs: Minor fixes.
	* ADMembershipProvider.cs: Renamed to ActiveDirectoryMembershipProvider.cs.


svn path=/trunk/mcs/; revision=36274
2004-11-18 14:32:06 +00:00
Duncan Mak d1c09fcc67 Add licensing info
svn path=/trunk/mcs/; revision=30345
2004-06-24 20:59:43 +00:00
Martin Baulig dfedf08d98 2004-04-22 Martin Baulig <[email protected]>
Renamed the `NET_1_2' conditional to `NET_2_0' in all files.

svn path=/trunk/mcs/; revision=25877
2004-04-23 02:24:02 +00:00
Ben Maurer 6659397e03 2003-11-25 Ben Maurer <[email protected]>
* AccessMembershipProvider.cs: New v2 file
	* AccessRoleProvider.cs: New v2 file
	* ADMembershipProvider.cs: New v2 file
	* AnonymousIdentificationEventArgs.cs: New v2 file
	* AnonymousIdentificationEventHandler.cs: New v2 file
	* AnonymousIdentificationModule.cs: New v2 file
	* CookieProtection.cs: New v2 file
	* IMembershipProvider.cs: New v2 file
	* IRoleProvider.cs: New v2 file
	* Membership.cs: New v2 file
	* MembershipCreateStatus.cs: New v2 file
	* MembershipCreateUserException.cs: New v2 file
	* MembershipOnlineStatus.cs: New v2 file
	* MembershipPasswordException.cs: New v2 file
	* MembershipPasswordFormat.cs: New v2 file
	* MembershipProviderCollection.cs: New v2 file
	* MembershipSortOptions.cs: New v2 file
	* MembershipUser.cs: New v2 file
	* MembershipUserCollection.cs: New v2 file
	* RoleManagerEventArgs.cs: New v2 file
	* RoleManagerEventHandler.cs: New v2 file
	* RoleManagerModule.cs: New v2 file
	* RolePrincipal.cs: New v2 file
	* RoleProviderCollection.cs: New v2 file
	* Roles.cs: New v2 file
	* SqlMembershipProvider.cs: New v2 file
	* SqlRoleProvider.cs: New v2 file

svn path=/trunk/mcs/; revision=20447
2003-11-26 03:33:43 +00:00