active-directory

Search Active Directory in WebApp for multiple users

a web application I work with requires a form which allows an Administrator to add users into the web applications user table. The web application is intranet based and is run in a number of countries world wide. They need the ability to search Active Directory to find users to add from across multiple domains. Searching domains that ar...

Active Directory - a script to find all users that aren't in a set of groups?

I have a set of 10 AD groups. What I'd like is to programmatically find out which users in the AD domain are NOT members of those 10 groups. There is only one domain. I know it's possible to perform ADO SQL queries in a vbscript but I was wondering (hoping, praying) if someone had a canned script? I suppose a hacky way might be: Dump...

Min Security Rights to Preform LDAP Queries in Active Directory

Our company is trying to implement a few single sign-on applications using Active Directory (Windows Server 2003) and LDAP. I would like to lock down the account used to make these LDAP queries as much as possible. What is the best practice for configuring this type of account? ...

Active Directory Groups With SQL Server 2005

Alright, so I already have an existing connection to Active Directory on my server. I know that querying active directory works. What I want to be able to do is query for all of the ou's and/or groups in active directory, and also be able to find the users the belong to those groups/ous. this is the current query that just pulls user ...

How can you find a user in active directory from C#?

I'm trying to figure out how to search AD from C# similarly to how "Find Users, Contacts, and Groups" works in the Active Directory Users and Computers tool. I have a string that either contains a group name, or a user's name (usually in the format firstname middleinitial [if they have one] lastname, but not always). Even if I do a seper...

How to get user GUID from Active Directory using WinNT protocol?

I'm trying to get user GUID from Active Directory. My code: DirectoryEntry entry = new DirectoryEntry("WinNT://DOMAIN/UserName"); Console.WriteLine("The GUID of the ADS object:" + entry.Guid); Console.WriteLine("The Native GUID of the ADS object:" + entry.NativeGuid); The code above always returns d83f1060-1e71-11cf-b1f3-02608c9e7553,...

DirectoryEntry memberOf property returns full path

I need just the commonName of the groups a user is a member of. DirectoryEntry user = new DirectoryEntry("LDAP://cn=myuser...."); foreach(string path in user.Properties["memberOf"]) Console.WriteLine(path); then the memberOf property contains a set of strings, the full paths of the groups. That's makes sense, but it's not what I ...

Use the list of active directory users in a drop down in ms access 2007

At work we have Windows Server 2003. In my access database, I need to link to the user / group data so that it can populate a drop-down list and can thus be associated with database records. Does anyone know how to do this? Thanks, Chris ...

Active Directory

How can i get the password for a user from Active Directory ...

Is it possible to LDAP query users common to a set of groups

I need a list of all the users common to a known collection of groups, using a single LDAP query of our Active Directory. It would seem, from the our reading so far, that such is not possible, but I thought it best to ask the hive mind. ...

C# Asp.Net 2.0 - How do I check a password against an active directory password?

I'm rewriting an internal application, which currently uses its own username/password combination. People are forever forgetting it, or not changing their password from the default, so I want to use single sign on and make use of our domain. I am using .Net2.0 and I cannot find any ways of doing this outside of 3.5. How can get the lo...

directory services group query changing randomly

I am receiving an unusual behaviour in my asp.net application. I have code that uses Directory Services to find the AD groups for a given, authenticated user. The code goes something like ... string username = "user"; string domain = "LDAP://DC=domain,DC=com"; DirectorySearcher search = new DirectorySearcher(domain); search.Filter = "...

DomainPolicy object

Hi, I am trying to check for locked accounts in AD. In a few snippets of code, such as http://social.msdn.microsoft.com/Forums/en-US/csharpgeneral/thread/5e0fadc2-f27b-48f6-a6ac-644e12256c67/, the code is using the DomainPolicy object, as in: DirectoryContext context; DirectoryEntry root; DomainPolicy policy; public Lockout(str...

Active Directory

How to get the details of the deleted objects from Active directory using LDAP. ...

Missing field in the Active Directory?

Hello, Is there a field or anyway to retreave the smtp server of a user in the Active Directory? Edit1: Using Exchange of course thanks vinny ;) ...

Incorrect LastLogonTimeStamp Value of user in Active Directory

I'm using LastLogonTimeStamp property of user in Active Directory to get the Last logon date time, Value isn't consistent, Any one else faced same issue? Can we trust the LastLogonTimeStamp? Update: It's just one Domain Controller ...

How can I grant permissions for a FTP Folder for users of the active directory

I have a asp.net web application that creates a Folder on a FTP site, but I need to grant permissions to that folder to some users of the active directory. How can I do that programatically, inside my app when I create the folder? ...

Active Directory synchronization with transformation?

I'm not too familiar with Active Directory, so I may be taking the wrong approach here... I'd like to have my master active directory instance replicated to another instance on a continuous basis, with various attributes changed. For example, I may want the passwords changed for all users, set to something random in the replica copy. D...

What permissions are needed to read Active Directory as LDAP?

The setup: There is a central AD domain (CENTRAL) and multiple seperate forests, each of which has their own domain (BRANCH1, BRANCH2, BRANCH3) There are 2-way domain trusts between CENTRAL and all other domains. An application I'm working on runs on the CENTRAL domain and performs LDAP searches on all domains, using the credentials C...

ASP.NET Membership - Which user is authenticated and which user is impersonated?

Hi, i'm a little confused while trying to find out how ActiveDirectory and ASP.NET Membership work... I've created a new MVC project and removed the AccountController / Views. I've changed the Web.Config so that it uses ActiveDirectory and automatically authenticates users based on their current Windows login: Web.Config <authenticati...