Questions tagged [activedirectorymembership]

99 questions
18
votes
3 answers

PrincipalContext.ValidateCredentials always returns FALSE

I have an MVC application that needs to login and verify a user against Active Directory. I am using the PrincipalContext.ValidateCredentials method but always get a authentication of false. Connecting to the Server is fine. The problem seems to…
Billy Logan
  • 2,833
  • 16
  • 43
  • 49
15
votes
3 answers

PrincipalContext not connecting

I am attempting to use PrincipalContext for a webservice that I am developing. I have already been using forms authentication on the web server in a different application and it works fine. The error that I am recieving is…
PSinclair
  • 151
  • 1
  • 1
  • 4
12
votes
1 answer

Error: Only LDAP Connection Strings are Supported against Active Directory

I have the following ASP.NET Membership section defined in the Web.config file:
10
votes
6 answers

Query From LDAP for User Groups

How To Get User group of user from LDAP active directory in C# .NET for ASP. In my Scenario I want to Pass user name to method which query from LDAP Active directory and tell me my user is Member of This User Groups. Please help me in this
Arslan Pervaiz
  • 1,575
  • 4
  • 29
  • 62
10
votes
6 answers

ActiveDirectoryMembershipProvider "The specified domain or server could not be contacted."

I have an application that is using ActiveDirectoryMembershipProvider to grant access to users. The application is hosted on a non-domain machine, with a firewall between the application server and the domain controller. We've opened the LDAP port…
Scott Ivey
  • 40,768
  • 21
  • 80
  • 118
6
votes
3 answers

MVC Active Directory Membership

I am trying to make use of the active directory membership rather than SQL but there is very limited documentation available online. I have managed to connect my application to the domain controller without any problems but when you use…
Matt
  • 2,691
  • 3
  • 22
  • 36
4
votes
3 answers

Can LDAP_MATCHING_RULE_IN_CHAIN return 'subtree search results' with attributes (specifically "memberOf")?

I have an active directory (AD) test instance with nested groups: Employees (Parent) with two subgroups: Executives and Engineers. Tree: Employees | -Executives | | | -Mister Executive | -Engineers | -Joe Engineer I…
4
votes
1 answer

Simple username login with membership provider in Active Directory

I use Active Directory for authentication through ActiveDirectoryMembershipProvider in one of my ASP.Net projects. I connect to it successfully with this LDAP connection string: LDAP://server/DC=mydomain,DC=com but two issues remain : calling…
4
votes
2 answers

Check whether current user is a member of an active directory group

I need to check whether current user is a member of an active directory group. I started with getting the current user as below. Now I want to know how to check this CurrentUser is in active directory group "CustomGroup" string CurrentUser =…
4
votes
1 answer

ActiveDirectoryMembershipProvider "The specified domain or server could not be contacted" AFTER changing to Comcast

My company recently changed from a dedicated T-1 to a broadband business Comcast connection. Immediately after, this problem began. Our development machines are local, but our Active Directory server (used for testing and staging the product before…
3
votes
2 answers

Is there a way i can give permissions based on the groups of active directory in my asp.net web application?

I am trying to achieve the following: Authenticate users against Active directory. If the user belongs to group "A" i want to limit user rights If the user belongs to group "B" i want to have some other logic in my code. I am able to achieve the…
Macnique
  • 1,028
  • 2
  • 19
  • 44
3
votes
2 answers

Using ActiveDirectoryMembershipProvider with SqlMembershipProvider

I want to create a web-app (a website) used in house by staff only. I want to use active directory membersip provider to authenticate users. The thing that is confusing me is how do I manage profiles and roles, and also link users with a FK to other…
raklos
  • 28,027
  • 60
  • 183
  • 301
3
votes
0 answers

How to Update the department, manager properties in Userprincipal?

I can't fullfil the operation that update a domain accounts information like "company","manager","department"...etc. Following are my two ways 1: DirectoryEntry de = new DirectoryEntry("LDAP://"); de.InvokeSet("company", new Object[] {…
3
votes
2 answers

LDAPS with ActiveDirectoryMembershipProvider on ASP.Net Webforms

I have set the ActiveDirectoryMembershipProvider connectionProtection attribute to secure, according to MSDN documentation states that when this is set to secure the following holds: "The ActiveDirectoryMembershipProvider class will attempt to…
Jacob Bellamy
  • 769
  • 2
  • 10
  • 16
3
votes
1 answer

Create employee-manager relationship in Active Directory

So got to put some data structure for employee-manager relationship in Active diractory. The employee list already exists in Active directory. Can I create Manager group and assign some employee as Manager. After that can I assign some other…
1
2 3 4 5 6 7