active-directory

Managing terminal users through System.DirectoryServices

I have a environment where I need to frequently change the parameters to a program that is launched when a user logs in to the terminal server. As of right now we open the computer management snap-in and edit the environment tab for the user and change the parameters by hand under "Start the following program at logon:". I would like to ...

how to tell why integrated windows authentication fails in asp.net

In our asp.net intranet application we are using windows authentication to authenticate the users. We have recently had a request to give the user a reason for why they cannot login. For example, tell the user they can't login because their password has expired vs they can't login because their account is locked out. When an account i...

Registering change notification with Active Directory using C#

This link http://msdn.microsoft.com/en-us/library/aa772153(VS.85).aspx says: You can register up to five notification requests on a single LDAP connection. You must have a dedicated thread that waits for the notifications and processes them quickly. When you call the ldap_search_ext function to register a notification request, the funct...

Where to place technology specific things in domain model?

We have an application that, along with many things, does some changes to Active Directory (add/remove user from group, change attribute values on user, etc). We are now in the process of redesigning it (from "spaghetti-code" into a more layered solution). The Active Directory management functions is something we would like to abstract...

How to determine if user account is enabled or disabled

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. I would like to default the listviewitems' default check state to depend upon the enabled/disabled state of the account. string path = "LDA...

default search provider corrupted in IE when running as another user

I am using Watin to do some automated testing and I am running IE as a different user then attaching to the IE instance. The problem is with Internet Explorer. I get a message saying that the default search provider is corrupted. I have reproduced this on two computers. Is there a way of getting around this? Can turn the warnings of...

ASP.NET Login Control with Active Directory Membership Provider

Hello there! I have setup a basic application which uses the ActiveDirectoryMembershipProvider to talk to our AD and authenticate users. It's a simple login page with the control which redirects me to a simple output of who is logged in and associated ticket information, this works great and when I test it on my development machine it ...

C# - is there a way to get the local path of the Default FTP site?

Hi, Is there a way to get the local path of the Default FTP site (in IIS) programmatically? Like C:\program files\ftproot, shown below: I'd imagine it would be something like: DirectoryEntry ftproot = new DirectoryEntry("IIS://localhost/MSFTPSVC/1/Root"); string directory; // = ftproot.something Any ideas? Edit: This would be f...

Unable to response quickly to AD retrieval

Hi, I am developing a SharePoint application which needs users from a specified Windows Server 2003 Active Directory Organizational Unit. Firstly I wasn't concerned about the 'Dispose' and 'Close' operations on DirectoryServices objects. In this point the retrieve operations were quick and successful. But this was causing 'Server is...

Delphi & Active Directory security groups

Hi Im writing a program for my school in which users have to enter a code given to them by a teacher to access the internet. My Question is how can i from delphi check if the current user is part of the teacher security group in active directory or not before it runs my code generating program. Thanks Erik ...

How do I use the AD username to select content from a WSS list

I have a WSS list containing user profile data (Columns: Username, Name, DOB) etc. I need to display the correct user profile from this list using the username of the currently logged in user (Active Directory). I know the WSS web parts are limited so I'm going to use the RSS feed for the list and filter & transform it through some XSL ...

TFS Authentication from another Domain

Hello, I need to have access to TFS from another domain. The problem is the following: TFS --> domain A (main company domain) Visual Studio --> domain B (development domain) Domain A does not allow a trust between the 2. Another solution would be to configure external authentication on TFS but it seems to require SSL an I don't...

javascript active directory user / groups query

Is it possible to query AD from javascript? I'm working from within SharePoint, and I can get the current SharePoint user's information using some js I found on a blog. But I'm wondering if I can then query AD to see if the current user is in a specific AD group. ...

Webservice that handles 1 million user accounts

Imagine you're writing a web app that will have 1 million users (they all grow that big, right!) How would you handle user accounts? I can imagine a few scenarios: Roll your own (database tables, salted/hashed passwords stored in a user profile table) If written with ASP.NET, use the login/role provider (which falls back to the datab...

AD Password About to Expire check problem with ASP.Net

Hello everyone, I am trying to write some code to check the AD password age during a user login and notify them of the 15 remaining days. I am using the ASP.Net code that I found on the Microsoft MSDN site and I managed to add a function that checks the if the account is set to change password at next login. The login and the change pas...

Using win32com and/or active_directory, how can I access an email folder by name?

In python w/ Outlook 2007, using win32com and/or active_directory, how can I get a reference to a sub-folder so that I may move a MailItem to this sub-folder? I have an inbox structure like: Inbox | +-- test | `-- todo I can access the inbox folder like: import win32com.client import active_directory ses...

Using win32com and/or active_directory, how can I change the conversation of a MailItem?

In Python w/ Outlook 2007, using win32com and/or Active Directory, how can I change the conversation of an email? Is there a way to change the mapping of a ConversationIndex to a ConversationTopic? I can successfully change the subject of a MailItem by creating a new MailItem, but when I view the folder in "Conversation" view mode, the...

How to use Python to get local admins from a computer on the Network?

Hi, I need to get a list of all people in the company who have local admin rights on their computers. We have a group on each machine called "Administrators." I can get a list of all computers from active directory with: import active_directory for computer in active_directory.search ("objectCategory='Computer'"): print computer.dis...

Authentication against Active Directory using C#

I am just having a user name and not having any password. I just want to check if this user name exist in Active Directory. How do I go about it? ...

Windows authentication mode in ASP.NET uses the Active Directory group name (pre-Windows 2000)?

Here is the background. I had an .NET MVC v1.0 project that I was trying to secure it by using Windows authentication mode. So I set the web.config to: <authentication mode="Windows" /> And then went into my controller and did the following: [Authorize(Roles="IT")] public class LicenseController : Controller In AD we have a group c...