active-directory

SSO from external web app to multiple LDAP (AD) providers

Hi, We are looking into a solution for this problem: We host a ASP.NET web app externally on a dedicated web server which is on its own domain. We have a client who use the web app exclusively, and want SSO using their windows credentials to automatically authenticate into the web application without having to log on. This client has u...

LDAP DirectorySearcher with MemberOf property

I want to find all the users that are a member of a group in a certain OU, so my filter would look something like this: (&(objectClass=user)(memberOf=*OU=something,OU=yep,DC=dev,DC=local)) Is there a way to run a directorysearcher on the memberof property with a wildcard? ...

Mocking an Active Directory for off site development

I received a client application, using SQL Server 2005, which contains many views with joins to their active directory. They do this to secure what people can see in the database. I need to be able to run these view from my remote development environment and I am looking for suggestion on how to do this. I cannot duplicate their AD ...

A local error has occurred while connecting to AD in Windows 2008 server

There's Active directory on windows 2000 advance server, I have a web server on Windows 2008 server Enterprise Edition, the following code works fine in Winsows 2003 server but when I installed Win 2008 server, it gives me the following error, the webserver is not subdomain of the AD server. but they have the same range IP address. A l...

permissions issues with ADCCSharp.dll c#

I have used the ADCCSharp.dll to check if a user exists in Active Directory. I use this in the login form of a windows application. The problem is that some users can not access the program and they are (exists) in active directory. I guess there must be some right| permissions|security problem. How can i set rights to the dll i use? t...

web.config secure directory with gal group

So, I have the following in the web.config <authentication mode="Windows"/> <authorization> <allow users="domain\johndoe" /> <!--Deny All Others--> <deny users="*" /> </authorization> But, what I want to do, is only allow users in a specific GAL group on our AD server and that doesn't seem to work with these settin...

How can I work with Active Directory from Perl?

I am considering writing some Perl scripts that interact with Active Directory. Being somewhat new to Perl, I was wondering if there were any specific modules, tools, techniques, etc. that anyone would suggest I use. As of right now, I am only looking to pull user information to process with the script. ...

Active Directory and Network ID

I know that I can get the fully qualified domain name by using the windows NT network domain. I'd like to do the reverse: Ex: User.Identity.Name = "slaterock\fflintstone"; Active Directory returns fully qualified domain name of slaterock.bedrock.us.com. I would like to be able to get the domain portion of User.Identity.Name by querying ...

Convert AD Timestamps to .Net DateTime

In active directory there are a bunch of INT64 fields (like lastlogintimestamp, accountexpires, etc) How do I convert these to datetime values in C#? ...

.htaccess - list URL's to be restricted by ActiveDirectory LDAP Groups

Currently I have a .htaccess file within the directory of the folder I want to restrict, with the appropriate group that has access to it. What I want to do is have one htaccess for the entire site, and restrict groups to specific URL's. So I want staff to have access to: /staff/.. and Students to have access to: /students/.. I wou...

VB6 Get List of Active Directory Domains

Using VB6, is it possible to get a list of all available domains in active directory? Thanks, Alex ...

Authenticate against ldap using PHP, active directory, while using IE/Firefox

This code below checks for the user's credentials against ldap <?php $ldaphost = "ldap.domain.com"; $ldapport = 389; $ds = ldap_connect($ldaphost, $ldapport) or die("Could not connect to $ldaphost"); if ($ds) { $username = "[email protected]"; $upasswd = "pass"; $ldapbind = ldap_bind($ds, $username, $upasswd); if (...

powershell check sharepoint URLs

I'm trying to write a script that iterates through a bunch of sharepoint URLs and verifies that they exist. From what I can find, it looks like this should work: $webclient = new-object System.Net.WebClient $webclient.Credentials = new-object System.Net.NetworkCredential ("username", "password", "domain") $webpage = $webclient.Downlo...

How to check if a another user is on the same or lower level in the company hierarchy?

I've got this: UserProfile prof = getUserProfile(properties.CurrentUserId); UserProfile toCheck = getUserProfile(anotherUsersId); "prof" user must be on a higher or on the same level as "toCheck" user. If "toCheck" is on a lower level he/she must be on the same branch of the hierarchy tree. If they are on the same level, their manager...

Using DirectorySearcher to query multiple OUs

I have the following code: var directoryEntry = new DirectoryEntry(distributionListsListADSPath); var directorySearcher = new DirectorySearcher(directoryEntry) { SizeLimit = int.MaxValue, PageSize = int.MaxValue }; var result = directorySearcher.FindAll(); The problem is I want to search two seperate OUs. So what I do is r...

SVN + Active Directory

How do I setup SVN (On a linux box - Centos 5.2) to authenticate using Active Directory? Also: Any tips or tricks? What should I watch out for? How fine grain can I set the access? This group have access to these projects, etc? And how does this work if I use something like tortoissvn to access my repository? What I have learned ...

convert sql server datetime to active directory date?

I want to query Active Directory from SQL Server like this, but retrieving only current users. I presume the way to do this is to check the 'accountExpires' field. This is made slightly tricky since dates in AD are stored as the number of 100 nanosecond intervals since January 1, 1601 (UTC). In the accountExpires field a value of 0 or...

Searching for a objectGUID in AD

I'm using the Active Directory Explorer from Mark Russinovich. It is a great tool. I'm using it to navigate active directory to make sure my program that uses DirectorySearcher from .NET returns correct data. Something happens though, when I try to search inside my program with DirectorySearcher for objectGUID, if I pass in the actual ...

System.DirectoryServices vs system.directoryservices.accountmanagement

Hello: I have an array (propertyList) that contains the names of certain Active Directory properties whose data I want to retrieve. Using Ironpython and .NET library System.DirectoryServices I solve the retrieval of properties to be loaded in this way: for propertyActDir in propertyList: obj.PropertiesToLoad.Add(propertyActDir) res...

Active Directory - how to retrieve all schema entries for a user

I am wanting to develop a staff directory application, listing all people in the organization, including name, email address, phone number, office location - all of that information. We currently have that in Active Directory, and I'm wanting to develop a simple .Net application to allow people to search and retrieve it. Getting the in...