asp.net-membership

Active Directory Membership Provider - how to expand on this?

断了今生、忘了曾经 提交于 2019-12-14 00:24:19
问题 I'm working on getting an MVC app up and running via AD Membership Provider and I'm having some issues figuring this out. I have a base configuration setup and working when I login as foo@my.domain.com + password. <connectionStrings> <add name="MyConnString" connectionString="LDAP://domaincontroller/OU=Product Users,DC=my,DC=domain,DC=com" /> </connectionStrings> <membership defaultProvider="MyProvider"> <providers> <clear /> <add name="MyProvider" connectionStringName="MyConnString"

Can I add a column to Membership Provider's tables to store a user's face picture?

半世苍凉 提交于 2019-12-13 22:37:22
问题 Should I add a column to users table to store user face pictures? Or should I create a new table to save face pictures? 回答1: You cannot alter Memebership's tables. If you add/edit/delete a column of one of those Membership tables, Membership Provider will stop working. Instead, you want to create your own table, and make UserID of Membership's Users table as primary key as well as foreign key (which is basically one-to-one relationship). Here is an example - 来源: https://stackoverflow.com

asp.net encrypted membership password & username retrieval

ε祈祈猫儿з 提交于 2019-12-13 21:30:36
问题 I can't seem to find out how I should decrypt the encrypted password using sha1 via the membership provider. I can't use the .GetPassword() method here because I'm retrieving the values from a sqldatasource and placing them into a gridview. Here's the gridview: <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="UserId" DataSourceID="SqlDataSource1" EmptyDataText="There are no data records to display." OnSelectedIndexChanged="GridView1_SelectedIndexChanged" >

approve user umbraco membership system

为君一笑 提交于 2019-12-13 21:18:56
问题 hi i am working on Umbraco(6.1.2) membership system ive made login ,registration, and authentication page after registeration user is redirected to authentication page with token_id now i want to set this user approved for this purpose i write the following code but there is some error check it string uname = Request.QueryString["a"]; string uguid = Request.QueryString["b"]; MembershipUser thisUser = Membership.GetUser(uname); if (thisUser != null) { if (!thisUser.IsApproved) { MemberProfile

How to Initialize SimpleMembershipProvider?

泪湿孤枕 提交于 2019-12-13 18:45:28
问题 I want to access full capabilities of SimpleMembershipProvider such as ValidateUser method. So according to its documentation I should not call WebSecurity.InitializeDatabaseConnection() for initialization and instead enable standard membership and role providers. My question is: How can I initialize SimpleMembershipProvider class To Finally: have access to full capabilities of SimpleMembershipProvider or if there is a better solution, thanks 回答1: How can I initialize SimpleMembershipProvider

Is there a WCF service to sit on top of ASPNET Membership and provide login/create user functionality?

耗尽温柔 提交于 2019-12-13 12:46:58
问题 I need a WCF service to sit on top of ASPNET membership and allow me to call all the methods of ASPNET membership such as validateUser , createUser etc. I need this becasue I have out-of-firewall apps that need to access a single central ASPNET membership database. If they were all inside the firewall I'd just point the connectionstring to the database and be done. Microsoft provides this service : WCF Authentication Service When I saw this I thought 'great - thats just what I need'. Then I

No login error text for role based authentication in ASP.NET

女生的网名这么多〃 提交于 2019-12-13 07:32:35
问题 I have an ASP.NET Role/Membership based forms authentication site. There's a subfolder and its pages which can be accessed only by a certain role. The problem is, login page does not display any error message if any user from non-allowed role group logins in login page. I mean, when a user from AllowedRole logins, the login page redirects the user correctly to the protected page, but when a user from NonAllowedRole tries to login, he/she correctly logs in but there are no error messages

Webforms HttpContext.Current.User.Identity.IsAuthenticated always true

一曲冷凌霜 提交于 2019-12-13 06:49:52
问题 EDIT: Can anyone explain why I am getting "/" for the username? See my "Answer" below I created a new WebForms application in VS2013 (.NET 4.51) which included the "new" Identity membership provider. I wanted to use the older Membership provider so did as follows. Populated the necessary entries in web.config as follows: : <membership defaultProvider="DefaultMembershipProvider"> <providers><add name="DefaultMembershipProvider" type="System.Web.Providers.DefaultMembershipProvider, System.Web

Trying to access the ASPNETDB.MDF database file to get user information.. ASP.NET MVC

蹲街弑〆低调 提交于 2019-12-13 05:41:40
问题 Hey everyone... I'm trying to access user information that's contained within the ASPNETDB.MDF file. I'm using ASP.NET MVC. This file gets created when you launch the ASP.NET Configuration tool from Visual Studio. So, I create users, roles, etc. via this ASP.NET Configuration tool, and the data gets saved to this database file. I'm needing to gain access to user information (just the user name) to use within my application. For example, what I'm trying to do is populate a drop down list with

How can I use the same encryption that asp.net mvc4 uses?

半世苍凉 提交于 2019-12-13 04:58:50
问题 Yes hashing is better but... So I knew I would regret this but here we go. I started a new project and decided I would use the built-in Microsoft membership stuff in MVC 4 (BasicMembership) so that I didn't have to write the registration, login, oauth, etc... Now I want to modify some of this behavior and use as much best practice as possible. This came about because I decided I would need to associate multiple users under 1 parent (company) - I know I can do all of the work in the controller