active-directory

Monitoring group membership in Active Directory more efficiently (C# .NET)

I've got an Active Directory synchronization tool (.NET 2.0 / C#) written as a Windows Service that I've been working on for a while and have recently been tasked with adding the ability to drive events based on changes in group membership. The basic scenario is that users are synchronized with a security database and, when group members...

Attempting to update a user's "connect to:" home directory path in AD using C#

I have a small application I am working on that at one point needs to update a user's home directory path in AD under the profile tab where it allows you to map a drive letter to a particular path. The code I have put together so far sets the Home Folder Local path portion OK, but I'm trying to figure out the name for the "connect" port...

How to get AD User Groups for user in Asp.Net?

I need to be able to get a list of the groups a user is in, but I need to have one/some/all of the following properties visible: distinguishedname name cn samaccountname What I have right now returns some sort of name, but not any of the ones above (the names seem close, but don't all match correctly. This is what I am using: Array...

Can I get more than 1000 records from a DirectorySearcher in Asp.Net?

I just noticed that the return list for results is limited to 1000. I have more than 1000 groups in my domain (HUGE domain). How can I get more than 1000 records? Can I start at a later record? Can I cut it up into multiple searches? Here is my query: DirectoryEntry dirEnt = new DirectoryEntry("LDAP://dhuba1kwtn004"); string[] loadProp...

Querying Active Directory with "SQL"?

I just wonder if anyone knows or made a wrapper around Active Directory to be able to easily query it in .net? Kind of like "LINQ-to-ActiveDirectory" or some SQL Dialect, i.e. to be able to do "SELECT DISTINCT(DEPARTMENT) FROM /Users/SomeOU/AnotherOU" or "SELECT user FROM domain" or whatever. As far as I know, it is possible to query WM...

Global vs Universal Active Directory Group access for a web app

I have a SQL Server 2000, C# & ASP.net web app. We want to control access to it by using Active Directory groups. I can get authentication to work if the group I put in is a 'Global' but not if the group is 'Universal'. How can I make this work with 'Universal' groups an well? Here's my authorization block: <authorization> <all...

Inheriting a base class

I am trying to use forms authentication with Active Directory but I need roles (memberOf) from AD. I am trying to override members of RoleProvider to make this possible (unless someone knows of a better way). I am stuck on an error in the new class that is inheriting from RoleProvider. The error is: ADAuth.ActiveDirectoryRoleProvider' d...

What are some ADFS alternatives for doing single sign on for an ASP.NET app with users in active directory?

Needs to be secure and able to handle thousands of users. ...

Enumerate Windows network shares and all custom permissions on or within

We have various servers that have many directories shared. It's easy enough to look at the share browser to see what the "top level" shares are, but underneath is a jumbled mess of custom permissions, none of which is documented. I'd like to enumerate all the shares on the domain (definitely all the 'servers', local PCs would be nice) a...

How to Retrieve name of current Windows User (AD or local) using Python?

How can I retrieve the name of the currently logged in user, using a python script? The function should work regardless of whether it is a domain/ad user or a local user. ...

How can you find available ldap servers from a computer in the same network, but different domain?

My company has code that integrates with activedirectory/LDAP for centralized userid/password login. Currently, the configuration page can only show the LDAP server linked to the Exchange domain the current computer is on. I'd like to list all available LDAP servers, similar to when you go to Windows Explorer and view 'Microsoft Window...

How do I get the full name of the current user from a SQL Reporting Services 2008 report?

I know that the name of the user account can be retrieved from the built in variable User!UserID but how can I get the full user name of the user? I guess it would be possible to hook up some .NET code and do a Active Directory look up but are there any alternatives? ...

How do I add Active Directory support to Windows PE?

I want to query Active Directory from Windows PE 2.0, which is not supported "out of the box." Microsoft seems to suggest that this is possible, but not with any tools they provide. What do you recommend? ...

Linux-based solution for domain management?

Using any member of the Windows Server family, I can set up an active directory, and have a single pool of users for a large scale of computers; access can be given / removed for any shared resources in the given domain (including access to client computers, etc). What similar (and widespread) solutions exist for managing a multi-user, ...

Example client implementation for the Service Location Protocol?

Does anyone know of a good example implementation of the Service Location Protocol that can be build/ran on a windows box? ...

Active Directory: Retrieve User information

I've got a web application that is running against Windows Authentication using our Active Directory. I've got a new requirement to pull some personal information through from the Active Directory entry. What would be the easiest way to get access to this information? ...

C#/.net ActiveDirectory Resources

I have recently assumed maintenance of an app that performs a lot of ActiveDirectory-related tasks, both querying and updating. I have the existing code to look at of course, but I was also curious if anyone had any good links for AD manipulation through C# and .Net, or pointers to any good books I can convince my boss to buy. ...

Authenticating against active directory using python + ldap

How do I authenticate against AD using Python + LDAP. I'm currently using the python-ldap library and all it is producing is tears. I can't even bind to perform a simple query: import sys import ldap Server = "ldap://my-ldap-server" DN, Secret, un = sys.argv[1:4] Base = "dc=mydomain,dc=co,dc=uk" Scope = ldap.SCOPE_SUBTREE Filter = "...

How do I detect if my program runs in an Active Directory environment?

How do I detect if my program runs in an Active Directory environment? I'm using C# and .Net 2.0 ...

How can I create Exchange distribution list inside the GAL using .NET?

We need to remotely create an Exchange 2007 distribution list from Asp.Net. Near as I can tell, the only way to create a distribution list in the GAL is via the exchange management tools. Without installing this on our web server, is there any way to create a distribution list remotely? There are some third party components that allow...