activedirectorymembership

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 to the DC on the inside network - yet no matter what we try, we end up with an error that...

LDAPS with ActiveDirectoryMembershipProvider on ASP.Net Webforms.

Hi, 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 connect to Active Directory using SSL. If SSL fails, a second attempt to connect to Activ...

Custom Role Provider with ActiveDirectory Authentication.

Hi, I'm creating a custom Role provider based on the ASP.NET Role provider. I have 3 tables. One for Users, one for Roles, one for UsersInRoles.The Users table has no password column because the users are authenticated with ActiveDirectory. That's my approach so far. I can't get the cusstom Role Provider to work, anyone has the same sit...

Unable to connect to ADAM with Windows domain\username

I'm having some difficulty connecting to an ADAM instance from my Commerce Server 2007 ASP .NET solution, and I believe it relates to my config file somehow. The short version is that I can connect to ADAM through ADAM-ADSIEdit with my current username/password, but when I put this in my web.config i get "Parser Error Message: Logon fa...

PrincipalContext.ValidateCredentials always returns FALSE

Hello Everyone, 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 occur in the ValidateCredentials. Here is my code: public static bool...

How to create a PeopleEditor ?

Hi, I am building a windows application that upload documents to sharepoint document library and modify its column. My problem is that i'm uploading a file to document libary that has a people editor column. To solve my problem I want to pop up a windows form containing a people editor so users can pick the users or groups to fill in t...

AD Lightweight (ADAM) looking up user group(s)

Hello, I have a AD lightweight instance for testing purposes running on a windoows server 2008 R2 Created an AD structure that contains a container called Roles container Roles contains a bunch of groups (A, B and C) Binded a windows security principal (USER) to one of the groups (group A) Added group A to group B as a member (by addin...

How to determine user DN after authentication against an Active Directory?

I'm using DirectoryServices to authenticate a user against an ADLDS (the lighteweight Active Directory). After I pass authentication. How can I determine the DN or SID of the currently logged in user? using (DirectoryEntry entry = new DirectoryEntry(<a>LDAP://XYZ:389</a>, userName.ToString(), password.ToString(), AuthenticationTypes.Sec...

Error: Only LDAP Connection Strings are Supported against Active Directory

I have the following ASP.NET Membership section defined in the Web.config file: <membership defaultProvider="AspNetActiveDirectoryMembershipProvider"> <providers> <clear/> <add connectionStringName="ADService" connectionUsername="umanage" connectionPassword="letmein" enablePasswordReset="true" enableSearchMethods="true" ...

ActiveDirectoryMembershipProvider and ADAM (or AD LDS) and SetPassword

By the subject line it seems to be a rather broad subject and I need some help here. Basically what I want is to use ActiveDirectoryMembershipProvider with an ADAM instance to authenticate users in an ASP.NET web application. My development environment is a windows 7 machine with an AD LDS instance on it whilst the QA server is a Wind...

How to add the distrubtion group in Active Directory for a user?

How to add the distrubtion group from Powershell in Active Directory ? I have user in active directory and i want to add the user into particular group rather than going and server because that part is going to be outsourced. so how to add the distrubution group for particular user. ...

What is the domain name when using ActiveDirectoryMembershipProvider against ADAM (AD LDS)

Ok, I've come a long way in my quest to authenticate WCF invokers against AD LDS, right now I have ActiveDirectoryMembershipProvider set up so that even the VS2010 Project/ASP.NET configuration tool allows me to create and edit AD LDS users, and does so using a Secure connection (so no username/password needed in web.config), so far so g...

How to make the ActiveDirectoryMembershipProvider accept an empty password?

We are developing a web application that uses forms authentication and the ActiveDirectoryMembershipProvider to authenticate users against the Active Directory. We soon found out that the provider does not allow a blank/empty password to be specified, even though this is perfectly legal in the Active Directory (provided a preventative pa...

ActiveDirectoryMembershipProvider not accepting FQDN

We are trying to set up the ActiveDirectoryMemebershipProvider for an ASP.NET intranet application that is supposed to automatically sign the users into the application when it is accessed in the browser. However the browser is sending the FQDN (MYDOMAIN\some.user) to the server and the ActiveDirectoryMemebershipProvider seems not to b...

Using SqlMembershipProvider when ActiveDirectoryProvider fails to log a user in

I have a requirement to allow access to an app with users being authenticated by AD. Sadly, not all of the users who can access the app will have been authenticated this way so I need to provide a mechanism whereby if a user arrives as the site their authentication is checked using AD and if it fails, they are handed off to a login page ...

Find current users active directory group C++

How would I go about querying what active directory group the currently logged in user belongs to? I am assuming it will be through LDAP but I havnt been able to find much on how to get this particular information. I have put together some code but im not quite sure what I need to do next // Open the access token associated with th...

Query Active Directory from ASP.NET and bind result to List View

I managed to do ASP.NET authentication work wih AD. Now, I want to query an OU in AD and display the result either ListView or GridView in ASP.NET page. Here's the Domain Controller: dc.itlab.edu The OU: UsersStudents In the organizational unit (OU) UsersStudents there are following columns: First Name, Last Name, Pre-Window...