directoryservices Questions
5
For instances when Active Directory takes too long to replicate data between sites, I need to ensure that the local AD replica contains the most up to date information.
How can I get a list of Do...
Glazier asked 12/6, 2012 at 15:22
3
I've been running into an error on one of my applications that happens a few times a month but has occurred twice this week. When this happens, it's always first thing in the morning when the first...
Tilth asked 11/4, 2014 at 13:15
10
Solved
I'm trying to use System.DirectoryServices in a web site project and I'm getting this error:
The type or namespace name 'DirectoryServices' does not exist in the namespace 'System' (are you miss...
Oscillation asked 5/11, 2008 at 13:15
2
I am preforming a long search in active directory and would really like to user the DirectorySearcher.Asynchronous = True. Microsoft provides very little documentation on MSDN
An asynchronous se...
Inglebert asked 8/11, 2012 at 22:21
7
Solved
I have a set of test accounts that are going to be created but the accounts will be setup to require password change on the first login. I want to write a program in C# to go through the test accou...
Claudine asked 30/6, 2009 at 21:19
14
Solved
I'm trying to run a simple LDAP query using directory services in .Net.
DirectoryEntry directoryEntry = new DirectoryEntry("LDAP://someserver.contoso.com/DC=contoso,DC=com");
directoryEntry.Auth...
Cabrales asked 12/11, 2009 at 14:3
1
I have a PowerShell script which checks the currently signed in user as part of its start-up process. I'm using .Net to do this by adding the assembly:
Add-Type -AssemblyName System.DirectoryServic...
Scuta asked 27/9, 2021 at 16:33
1
Team,
I am getting the following error when trying to run on docker. its working fine on windows machine-
Unable to load shared library 'libldap-2.4.so.2' or one of its
dependencies. In order to h...
Reposition asked 19/2, 2022 at 20:36
11
Solved
I checked this post already. But it doesn't answer my question. I want to get all the active directory groups in which a particular user is a member.
I've written the following code. But I'm not a...
Deracinate asked 16/12, 2010 at 12:3
6
Solved
Question:
I use the code found at
http://support.microsoft.com/kb/306273
to add a windows user.
The problem is i need to add the user to a group, but the groupnames are localized.
E.g. the MS-examp...
Celinecelinka asked 9/7, 2010 at 13:10
4
Solved
I see Active Directory examples that use PrincipalSearcher and other examples that do the same thing but use DirectorySearcher. What is the difference between these two examples?
Example using Pr...
Durr asked 19/4, 2014 at 22:26
6
Solved
I too have a long running service using plugins and appdomains and am having a memory leak due to using directoryservices. Note that I am using system.directoryservices.accountmanagement but it is ...
Weaponeer asked 14/6, 2012 at 13:34
2
Solved
So I have a question I'm honestly not quite sure how to ask. Essentially I have a bit of code that works fantastically on my local machine when I run it. Once I publish it to our development web se...
Mildred asked 3/1, 2012 at 17:40
2
Solved
I'm using the following code to get the members of a group on my domain:
Dim de As New DirectoryEntry("LDAP://" & GroupDN)
For Each user As String In CType(de.Properties("member"), IEnumera...
Carboniferous asked 8/2, 2009 at 2:30
5
Solved
I am throwing together a quick C# win forms app to help resolve a repetitive clerical job.
I have performed a search in AD for all user accounts and am adding them to a list view with check boxes....
Reis asked 5/1, 2010 at 11:21
2
The following code works fine from a variety of machines on our domain.
var context = new PrincipalContext(ContextType.Domain);
var principal = UserPrincipal.FindByIdentity(context, @"domain\usern...
Showoff asked 23/9, 2011 at 19:21
1
Solved
Why PrincipalSearcher gives System.__ComObject for attribut msExchRecipientDisplayType ??
I want to retrieve attribute msExchRecipientDisplayType and PrincipalSearcher gives System.__ComObject. Al...
Bittencourt asked 10/6, 2020 at 14:40
2
Solved
I'm currently trying to authenticate via Active Directory Services using the PrincipalContext class. I would like to have my application authenticate to the Domain using Sealed and SSL contexts. In...
Toluene asked 29/3, 2010 at 13:10
3
Solved
As the title suggests, I am having an issue regarding respecting the password policy when setting a users password, specifically, the password history restriction.
The scenario is a user password...
Rabbinical asked 5/7, 2013 at 16:47
6
I've looked into the DirectoryServices class and it seems to be what I need, but I can't seem to find the classes/methods needed to fetch a collection of Organizational Units.
Can you guys give so...
Sunlight asked 18/3, 2011 at 1:26
1
Solved
I set up my OpenLDAP server on a Ubuntu 19.04 VM and allowed replication (using this tutorial: https://help.ubuntu.com/lts/serverguide/openldap-server.html#openldap-server-replication). Everything ...
Fibrinolysis asked 12/9, 2019 at 14:23
3
Solved
I have a security group (pictured below) in active directory that has an e-mail address associated with it. How do I get the e-mail address of the group? The GroupPrincipal object does not have any...
Flintlock asked 7/1, 2013 at 15:4
2
I'm using .Net account management libraries to access Active Directory to search the details of current http request user.
My app pool runs with custom account and it also from the same domain. Ser...
Thirteen asked 28/3, 2016 at 9:51
2
Solved
I have the following code which returns me a UserPrincipal but loginname never includes the domainname. There is also no property "Domainname" or similar.
How can i get from a UserPrincipal or Pri...
Daria asked 25/4, 2016 at 14:35
1
Solved
This seemed to have been asked a few years ago at Constraint violation when trying to set "User Cannot Change Password" in active directory from c#
but no response actually answered the q...
Introit asked 3/1, 2019 at 15:24
1 Next >
© 2022 - 2025 — McMap. All rights reserved.