asp.net-membership

ASP.Net Membership AD, get Organization Unit

How can I get Organization Unit (OU) from ActiveDirectory when using ASP.Net Membership? I can't find any possible mappings for web.config and there is nothing like that in User.Identity. ...

Binding menu items to a sitemap.

Hello all..this is driving me nuts. I have a navigation menu I would like to display based upon user roles (using.net membership) After several hours and headaches (from banging my head against the desk) I was wondering if someone can point me in the error of my ways. Page: <body> <form runat="server"> <div class="page"> ...

ASP.NET Membership - Need to add custom fields to admin screens

I need to add a Company Name field that is associated with the logins. Later on I need to incorporate that into my existing admin screens for reporting. I just can't figure out how to get this done. I have tried the add a column to the Membership table and modifying the stored procs but the column will not show up. Here is the code of ...

How would you audit ASP.NET Membership tables, while recording what user made the changes?

Using a trigger-based approach to audit logging, I am recording the history of changes made to tables in the database. The approach I'm using (with a static sql server login) to record which user made the change involves running a stored procedure at the outset of each database connection. The triggers use this username when recording ...

how to tell a user exactly why login failed in asp.net

I have a membership provider and i have several reasons a login can fail that I need to relay to the user. Everything I have read involves a lot of code. Is there an easy way to do this? ...

ASP.NET Web Site Administration Tool unkown Error ASP.NET 4 VS 2010

I was following the MVCMusic tutorial with an machine with full sql server 2008 r2 and full visual studio professional, in ASP.NET 4.0 and when I got to the page where it sets up membership (near page 66) the Web administration tool wont work, i got the following error: An error was encountered. Please return to the previous page and tr...

asp.net mvc custom membership provider - strict login cache to one application

I created custom membership provider for asp.net mvc applications and it all works fine except one thing: when logged in to my application, I am also logged in to all other asp.net mvc applications that I run using Visual Studio. I suppose this data is being pulled from cache because when I logout and try to login again in other applicat...

Sql ASP.NET membership missing data.

Hey I'm starting to get really worried about the Sql membership that is setup with ASP.NET MVC. I have made no changes to the defaults but out of 4000 registrations on our site 18 of these are missing corresponding data in the aspnet_membership table, there is only data in the aspnet_users table. Looking at the stored procedure to c...

Authenticating to multiple OUs in Active Directory

I'm using the Active Directory Membership Provider with the following configuration: <connectionStrings> <add name="MyConnString" connectionString="LDAP://domaincontroller/OU=Product Users,DC=my,DC=domain,DC=com" /> </connectionStrings> <membership defaultProvider="MyProvider"> <providers> <clear /> <...

How to store account-specific information in ASP.NET MVC 2

I have an ASP.NET MVC 2 web application. There are two tables like "FIRST_KIND_OF_USERS" and "SECOND_KIND_OF_USERS". Both are mapped to the default aspnet_users table via UserId column. Each of them has it's own integer primary key column like "FirstKindOfUsersId". When a user is trying to add some data to the database, for instance, "C...

Share ASP.Net membership info between two applications

Hi All, I have an existing webapp and i'm attempting to setup BlogEngine .Net to share the membership tables Everything seems to work.. accept i can see that the Membership.ValidateUser call in blogengine returns false! While the other apps returns true. I'm at a loss.. Membership.GetUser called from both apps returns the correct user...

Make password case unsensitive in shared ASP.Net membership tables web ap

Hi all, i have two webapps.. that share ASP.Net membership tables. Everything works fine except i cannot remove case-sensitivity in one of the apps the way i am doing it in the other. in the non-working app void Login1_LoggingIn(object sender, LoginCancelEventArgs e) { string username = Login1.UserName.Trim(); if (!string.IsNu...

anyone know of a custom membership provider implementation that check password strength against in-built dictionary

I've got an Asp.net MVC app and before being able to go live, the IT have requested for us to comply with their password policy. The flexibility of AspnetSqlMembershipProvider doesn’t quite satisfy the requirement. The password strength and length rules are as follows: one lowercase one Uppercase one number and or special character 8...

Is ASP.NET membership, role management and Profile usable in a C# Class Library?

I know it's possible to use this information in a winform, wpf or console application. But I rather to determine which user with what roles are running a sepecific method, so I could decide upon them and run different codes. In addition in a desktop app. how a user can login? Is there any special winform or wpf login control? ...

How can I create users in a ASP.NET membership table without using CreateUser

I want to migrate users and posts from an existing forum I am using to a ASP.NET membership table without using CreateUser. Basically I want to maintain userIDs so that when I migrate posts they continue to associate with the correct users. Is there a way to do this or would I be better off just using CreateUser and then finding a way to...

Extending the RoleProvider GetRolesForUser()

The GetRolesForUser() method in the RoleProvider takes the user login name and returns the list of roles for that user. But in my application this is not enough, I need a few more pieces of information to be able to get the user's roles. How can I get this extra information into the method? I have it in the Session, but I found out tha...

I use godaddy hosting and want to have asp.net membership database. How many user accounts will bring the database size to 200 MB ?

I user godaddy hosting and they allow database use upto 200 mb. I plan to have a website with many user account and will use asp.net membership database for managing these accounts. How many user accounts will eat up 200 MB space. If someone can give an exact figure then it would be easy to decide if i have to plan on my budget to buy mo...

Is *not* using the asp.net membership provider a bad idea?

Is it generally a really bad idea to not use the built-in asp.net membership provider? I've always rolled my own for my asp.net apps (public facing), and really have not had any problems in doing so. It works, and seems to avoid a layer of complexity. My needs are pretty basic: once setup, the user must use email address and password t...

whats are the major disadvantages of using Membership API?

Whats are the major disadvantages of using Membership API? And when should i consider relying on using manual coding? ...

ASP.NET membership assign roles in Windows Authintication

Hi Guys I'm working on intranet project and for some purpose i have to use windows authintication. my Question is how can i assign the users from my organization active directory to the rules that I've created in Asp.Net Web Site Administration Tool or if there is another way to create and mange rules please tell me about it. than...