Hello,
Two web applications I'm working with are using the ASP.NET membership and each have areas for user information which use this Property name/value storage method in the database.
Here is an example:
PropertyNameValues
publicEmail:S:0:19:yahooIM:S:19:0:timezone:S:19:2:commonName:S:21:4:birthdate:S:25:81:signatureFormatted:S:106...
My table, AccLink, has a foreign key, UserId, to the aspnet_User table created by the Membership Provider.
When creating an object of type AccLink (I'm using the entity framework) I need to assign the aspnet_User by getting the current user object.
I tried Membership.GetUser(userName) but it said it couldn't be converted to type aspnet...
I'm trying to setup an ActiveDirectoryMembershipProvider to go against a Forest and I can't seem to get it working. One of our AD Admins suggested I refer to the global catalog but it seems that is not supported. Anyone know if you can and if so how do you configure the AD Membership Provider to go against a Forest?
Here are some of t...
Hi there, guys.
I'm currently developing an ASP.NET website, and I'm using ASP.NET's built-in Login control with client-side cookie generation for state management.
Unfortunately, as I didn't figure out how to append custom information (generated by other controls on my application) to the Login control self-generated cookie, my applic...
I have an asp.net site which uses the ASP.net Membership provider. Each comment, entry etc in the DB is tracked by the userID.
Since MS doesn't provide a way to change the username, I've found the userNAME in the "users" table in the DB and there is only 1 place where the username appears.
My question is,
Is it safe to provide an "...
Hi,
I have a model, Docs, with a guid column, author_id, which should reference a MembershipUser.
I'm using the standard MembershipProvider (I only changed the db name), and of course I haven't a model for MembershipUsers.
I can easily define some methods in class Docs to get MembershipUser for a Doc and all Docs for a MembershipUser,...
Hi everyone!
I'm having a huge problem in understanding Membership with MVC. We have in our project controllers named "Admin" and "SuperAdmin" and they are restricted to some users.
Do I have to use the Authorize Roles attribute on each Action or can I use a ActionFilter to check if an user can view a certain page?
And if I have to us...
I have just finished creating a custom role provider using LINQ to SQL for data access. One of the functions you need to write for the provider is to remove users from roles;
public void RemoveUsersFromRoles(string[] usernames, string[] rolenames);
Now one approach would be;
return a list of roles
iterate for each role and remove t...
I have an ASP.Net application which renders sensitive information. The application needs users to log on before viewing the main page of the application. The authentication is done via a web service.
This is simple enough however the hardware design is multi-tiered. 1) Web Server for logon 2) Application server for main application ...
I have a User object on a Base controller, this is the standard type of User object you have with the .Net Membership Provider. I need this is decide if users have access to actions, views, and so on.
I am having a problem whereby I want to display user information on the Masterpage. Like a login view from WebForms. I tried to access t...
I am developing a website using Umbraco v4.0.2.1 which implements the ASP.NET membership provider.
When using either Hashed or Encrypted as the password format, I am unable to reset a password.
It does appear to work, i receive an email with the new password, and I can see that the password has changed in the database. However, when i ...
In a view in ASP.NET MVC I can access the profile and profile members like this:
<%= Profile.Name %> - <%= Profile.Karma %>
but how do I get the Profile variable populated? It seems to be in HttpContext.Current.Profile. I've wrote a custom Profile class with a CurrentUser method that looks like this:
static public Profile CurrentUser...
Hi
I want to do membership in asp.net mvc. I am not talking about the one that comes with a asp.net mvc project.
I am talking about a database that I have my own custom tables and the aspnet.db tables combined.
I know how to do this in webforms and I have combined my tables with the membership stuff but when I try to add my custom rol...
I'm using the ASP.NET Membership provider to handle all membership activities on my current site.
I've run into a weird problem. As you know, if you are familiar with Asp.Net membership, the data is stored in ProfileCommon.
So you could do ProfileCommon.UserId to get the userID.
This all works fine on my production server, my stagin...
I'm using ASP.NET MVC 1.0 along with the Oracle ASP.NET Membership Providers. I'm running into a case sensitivity problem.
When a user logs into the system, it appears that the Membership provider sets the User.Identity.Name value to whatever the user typed in. That is, if I created the user as Foo and the user logs in as fOo then eve...
Hi
I want to allow duplicate names on certain conditions(that I can check for myself).
such as
if 3 users come up to my site and have this
prefix: "jim"
userName: "chobo2"
prefix: "bob"
userName: "chobo2"
prefix: null
userName: "chobo2"
Now if someone comes in and tries to register
prefix: null
userName: "chobo2"
or
prefix: "b...
I am using Active Directory in a custom MembershipProvider class to authenticate users in an ASP.NET 2.0 intranet application and associate their sid with a profile for the application.
When the ActiveDirectoryMembershipProvider is used, the ProviderUserKey object for the MembershipUser is as follows
SecurityIdentifier sid = (SecurityI...
So we have reports which run, that our client runs multiple times daily and some of these reports hit very important tables which I'm not a fan of.
We currently have a small reporting table which is populated when a new user signs up. The user signs up and the aspnet_membership table is populated, then another sproc is run to populat...
Hi
Does anyone know how Asp.net membership generates their salt key and then how they encode it(ie is it salt + password or password + salt)?
I am using sha1 with my membership but I would like to recreate the same salts so the built in membership stuff could hash the stuff the same way as my stuff can.
Thanks
Edit 2
Never Mind I mi...
I have my site up and running just fine using the kit.
My question is, when you click on the check box to stay logged in, is their a way to extend the amount of time that you stay logged in for. My client would like something like an hour.
...