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...
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...
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?
...
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 ...
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...
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,...
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 ...
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
...
How can i get the password for a user from Active Directory
...
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.
...
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...
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 = "...
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...
How to get the details of the deleted objects from Active directory using LDAP.
...
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 ;)
...
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
...
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?
...
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...
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...
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...