Questions tagged [membership]

Queries regarding The fact of being a member of a group. OR The number or body of members in a group.

A member is a person who belongs to a social group or an entity such as a company or nation. By extension it can refer to any part of a whole.

969 questions
15
votes
6 answers

What are the pros and cons using the asp.net membership?

I'm building a new website and a friend suggest to me to use the asp.net membership for the authentication process (login, registration, password recovery, etc..). I saw that everything is stored in an XML file. I would like to know what are the…
Andrea Turri
  • 6,480
  • 7
  • 37
  • 63
15
votes
4 answers

How should I implement "Forgot your password" in ASP.NET MVC?

I'm using the standard SqlMembershipProvider that comes with the ASP.NET MVC demo. I'm interested in implementing a "Forgot your password" link on my site. What is the correct way for this feature to be implemented? Should I overwrite the password…
Sitherax
14
votes
2 answers

jq: select where .attribute in list

In python I can do: >>> 5 in [2,4,6] False >>> 5 in [4,5,6] True to determine if the give value 5 exists in the list. I want to do the same concept in jq. But, there is no in. Here is an example with a more realistic data set, and how I can check…
Bruno Bronosky
  • 66,273
  • 12
  • 162
  • 149
14
votes
3 answers

Django - How to save m2m data via post_save signal?

(Django 1.1) I have a Project model that keeps track of its members using a m2m field. It looks like this: class Project(models.Model): members = models.ManyToManyField(User) sales_rep = models.ForeignKey(User) sales_mgr =…
Michael Godshall
  • 880
  • 11
  • 18
14
votes
3 answers

ASP.NET Application to authenticate to Active Directory or SQL via Windows Authentication or Forms Authentication

I am in the process of writing an application that will need multiple forms of authentication. The application will need to support authentication to Active Directory, but be able to fail back to a SQL Membership Provider if the user is not in…
divtag
  • 677
  • 2
  • 6
  • 21
14
votes
2 answers

Java equivalent of Python 'in' - for set membership test?

I want to check if an item exists in an item set. I want to do this in java: def is_item_in_set(item, item_set): return item in item_set I've managed writing this: boolean isItemInSet(String item, String[] itemSet) { for(int i =0; i <…
user2032663
13
votes
4 answers

Generating scripts for database role membership in SQL Server 2005

I have a database with a lot of users in it. Those users belong to different built-in roles in the DB (eg db_ddladmin). I want to generate a script that creates those same users with the same role assignments to use in a different database. SQL…
rickythefox
  • 6,601
  • 6
  • 40
  • 62
13
votes
1 answer

ASP.NET Membership Password Reset

This is crazy, I have been trying for hours to get this to work. My client wants to be able to reset password for users who have forgotten them The only parameter he has is the UserName. He does NOT want the user to be able to reset the password…
13
votes
2 answers

Sitecore Custom User Profile - where is it stored how can it be queried

I have created a custom User profile template and object in the core database in Sitecore (as per the Security API Cookbook). I can select this programmatically (as per the Security API Cookbook) so that my extranet users have an extended profile,…
misteraidan
  • 1,984
  • 4
  • 23
  • 31
13
votes
1 answer

MembershipUser.IsOnline is true even after logout

I'm currently creating a website using Visual Studio 2010. I'm using the default membership schema in SQL Server 2008 for user authentication. Now I'm facing the following problem. When a user logs out, the membership.IsOnline property of that…
Krishanu Dey
  • 6,326
  • 7
  • 51
  • 69
12
votes
2 answers

Is Windows Authorization Manager (AzMan) Obsolete? Is it good to use in a new ASP.NET application?

Does anyone use Windows Authorization Manager (AzMan) anymore for "greenfield" projects? If so, are there any benefits to using the technology in an ASP.NET application as a membership/role provider?
Jason
  • 4,897
  • 2
  • 33
  • 40
12
votes
2 answers

How to log out a user when a session times out or ends

Whats the best way to log out a user when a session ends or expires? Thanks for any help.
zSynopsis
  • 4,854
  • 21
  • 69
  • 106
12
votes
3 answers

How secure is the ASP.NET Membership framework?

What is the ASP.NET Membership framework's reputation as far as security goes? Are there any typical default configuration settings that are problematic? What best practices are there? Are there any built-in methods to combat things like session…
kenwarner
  • 28,650
  • 28
  • 130
  • 173
11
votes
2 answers

How to manually change password in asp.net membership?

I would like to change password in database manually, but I am not sure what exactly I need to change and which methods to use. I would change it via code but currently I have only access to db.
ilija veselica
  • 9,414
  • 39
  • 93
  • 147
11
votes
4 answers

asp.net membership - how to determine programmatically is user is in role

What is the code for determining if a user is in a role? I have set up all the users through the ASP.NET Configuration Security tab but now want to put logic around some key areas so only people in certain roles can see and access these areas.
leora
  • 188,729
  • 360
  • 878
  • 1,366
1 2
3
64 65