I'm trying to pull the username of every user available through active directory. Here is the code my colleague first tried to use, but this method is burning all of the memory out and throwing out of memory exceptions. Is there a quick alternative?
Dim userList As ArrayList = New ArrayList
Dim sPath As String = "LDAP://test.ca/OU=foo...
Is there a way using C# to search for users with an extended right? Specifically I am looking for users with the right "ms-Exch-EPI-May-Impersonate".
As a followup is there a way to set that right for a specific user?
...
I'm struggling with an issue in utilizing System.DirectoryServices.AccountManagement in my internal web application. The error is not very descriptive, but here's what's going on:
When I attempt to validate that a provided user id exists in the AD, I do so with the following code:
private bool IsWindowsIDValid(string strWindowsID)
{...
I have the need in my program to get the list of user logon names in a group.
This is what I have so far but it only returns all the users...which I need cut down to those in a group, of which i have the name of.
Option Explicit On
Imports System.DirectoryServices
Imports System.DirectoryServices.ActiveDirectory
Module Module1
...
This is almost identical to this question asked by another user, and is the sequel to a question I asked previously.
Basically, my company recently bought Tidal Scheduler. We need to launch jobs ad hoc from other process, e.g.: BizTalk, .NET web apps, etc. Our plan was to wrap a .net web service around the C++ API. That is apparently go...
I need to write some .NET code for listing user and groups. I am planing to use LINQ. I do not have access to the Active directory for testing. I do not have a server and can not set up my own Active directory. Are there any public Active directory that I could use for testing. The code is only reading data from the Active directory and ...
Hi Everyone,
I am going to write a small software to track active directory changes. I need an expert opinion from members and also validate my findings from you.
What I Need?
I want to display information about What ( with before and after values), When, Where and Who of any change in AD.
What I Found So Far?
I found that there are ...
I'm having trouble getting AD authentication working on my website. I have the following test code that works fine :
DirectoryEntry entry = new DirectoryEntry(srvr, usr, pwd);
object nativeObject = entry.NativeObject;
On my website I get an error "Your login attempt was not successful. Please try again.". I really haven't been able t...
Is there a way to install AD LDS (http://msdn.microsoft.com/en-us/library/aa705886%28VS.85%29.aspx) on a Windows 7 machine? I can only find references to Windows Server 2008 on the net.
...
We're writing a system that allows a user to change their account password through a web application on our intranet.
At first, everything appeared to be running smoothly. During development passwords for our test accounts could be changed with no problem.
When we made the system live, however, we started running into issues. Here are...
I am going to write a small software to track active directory changes. I need an expert opinion from you. I want to display information about What ( with before and after values), When, Where and Who of any change in AD.
I am going to implement this by one of the following way
1. Change Notification Control
2. DirSync Control
Both of ...
Hello everyone. Please help!
I am new to the .NET web application development. I have used the code from the link below to create a basic login page in front of the Microsoft Live Single Sing On.
http://support.microsoft.com/default.aspx/kb/326340
I managed to combine the two together (LiveSSO w/ Forms Authentication) turning off the...
Edit: It seems it doesn't work. Some permissions aren't copied over it seems.
This is inside an Active Directory for Exchange 2010. In the screenshot, there's the user "RTCUniversalUserReadOnlyGroup", with the "permission" column empty. Those permissions don't get copied over at all. Any tips?
I'm currently having to uncheck the "Includ...
If I want to store users pictures in Active Directory, what format do I use?
...
Im writing an IIS Application, which manages AD users. For this purpose Ive configured site to use Negitiate AuthenticationProvider, and everything works. I wonder, is NTLM suitable for operations with Active Directory (such as creating user accounts)? Or AD accepts only Kerberos authentication?
...
Hi,
I am trying to create a custom content type in Sharepoint where one of the multiple choice fields needs to get data from Active Directory. I've been looking on Google but haven't found any good solutions. Probably I'd have to create a custom field type?
Thanks!
...
I am new to active directory and I am trying to put together a query that will return list of users and groups who have permissions to read the contents of any accessible file.
I can not find any samples that deal with files. So I am at a lost on how to start.
...
i'm new to asp.net mvc and starting the following project. The company wants an intra-net website for various groups of people to upload files to a database, run reports off the it and amend data in several master tables in the database. The company use Active Directory and do not want the users to log in again to use the web site. The w...
We have a group in Active Directory with over 70k user accounts. I need to check whether someone is a member of that group. The code is going to run in a web app with a high volume of concurrent users. I'd prefer to stick to System.DirectoryServices.AccountManagement if possible to reduce the amount of code that's written for this app.
...
I have an Asp.net MVC project authenticating through AD. I would like to store audit information in tables for the current logged in user. What should I be storing in the database? I am currently using SamAccountName for my membership and role providers. Should I be using this? Should I use the more verbose and modern UserPrincipalName? ...