Top "Directoryservices" questions

System.

Does System.DirectoryServices.DirectoryEntry contain a constructor that actually uses "domain\username" with Ldap?

Microsoft has a general purpose KB article (Q316748) describing how to authenticate against Active Directory using the DirectoryEntry object. In …

c# active-directory ldap directoryservices
How to get the NETBIOS Domain Name using the FQDN in a Complex Environment

Getting the NETBIOS domain name from a fully qualified Active Directory domain name is sometimes a tedious task. I found …

c# active-directory directoryservices
Memory Leak when using DirectorySearcher.FindAll()

I have a long running process that needs to do a lot of queries on Active Directory quite often. For …

c# .net memory-leaks directoryservices adsi
DirectoryEntry to change password: Different behavior between Vista/Server2008

On a Vista dev machine I used this code successfully to change user "Administrator" password: directoryEntry.Invoke("SetPassword", "new"); When …

c# active-directory directoryservices change-password
Error with UserPrincipal.GetAuthorizationGroups() method

I am having an issue using the GetAuthorizationGroups method of the UserPrincipal class in a web application. Using the following …

c# active-directory directoryservices
If an OU contains 3000 users, how to use DirectorySearcher to find all of them?

I use this code: DirectoryEntry objEntry; DirectorySearcher objSearchEntry; SearchResultCollection objSearchResult; string strFilter = "(&(objectCategory=User))"; objEntry = new DirectoryEntry(conOUPath, conUser, …

c# active-directory directoryservices
How to use the objectGUID get a DirectoryEntry?

I know ,we can get a DirectoryEntry like this: string conPath = "LDAP://10.0.0.6/DC=wds,DC=gaga,DC=com"; string conUser = "…

c# active-directory guid directoryservices directoryentry
How can I get the local group name for guests/administrators?

Question: I use the code found at http://support.microsoft.com/kb/306273 to add a windows user. The problem is …

c# .net vb.net active-directory directoryservices
Acquiring AD OU list

I am looking to be able to pull a list of current OU's from Active Directory I have been looking …

c# active-directory directoryservices
How to change passwords using System.DirectoryServices.Protocols

Our user store is an LDAP server called eDirectory. How do you change user passwords using System.DirectoryServices.Protocols?

c# .net ldap directoryservices edirectory