active-directory

How do I authenticate against Active Directory using php and CodeIgniter?

I have code that authenticates against Active Directory using LDAP and boilerplate PHP code. However, I'm left wondering is there a more standard way to do this from within the CodeIgniter? Is there some plugin out there that makes this easier? So far, Google has failed me. ...

Intercepting Change Password in Windows - Showing our custom interface

Hello all I've been trying to synchronize the profile passwords of a third party system with AD. The third party system has its user profiles stored in a database. I initially tried of writing a password filter to get the password in clear text and updating it in the database. Later i learnt that it is extremely risky to mess with the ...

Copy specific File from a list to Directory & sub Directory

Friends I have alist of Files and its location, in text format, I want to copy few files to other location maintaing the Directory Tree structure.e.g below give TestFile1 under the subdirectory TestFolder3 e.g. Source File TestFolder TestFile1.txt TestFolder2 TestFile2.txt TestFolder3 TestFile1.txt TestFile3.txt Destination...

TFS access denied to only one specific domain user

I created a local group user which I added to TFS Contributor/Valid User groups. Anytime if I needed to add a user as contributor, I would add him/her to the local group and the person has the access to TFS; which is until now. Recently a new person got hired and MIS setup the domain account for him. I added him the same way but for some...

Active directory - ldap attribute createTimeStamp in Windows Server 2008 R2

To check how many users were created in the past one year for a particular domain I queried like the following, (&(objectCategory=person)(objectClass=user)(!(sAMAccountType=805306370))(createTimeStamp>=20090831022227.0Z)) I have two domain controllers, DC-1 is Windows Server 2008 and DC-2 is Windows Server 2008 R2 and this query works ...

User impersonation with asp.net forms authentication

I've written a small ASP.NET 3.5 application to allow users to update selected account attributes on their own. Everything works fine when I use Basic Authentication, but because the dialog that is presented is less than ideal, I'd like to use forms authentication to give the users more instruction on how to log in. My problem is that ...

ASP.NET MVC Windows Authentication 403 Forbidden: Access is denied

Hello all, I'm developing an ASP.NET MVC 2 app using Windows Authentication. When I run it within Visual Studio (using the built-in IIS), under the same domain, I was able to login using my credential. But when I deployed it to the server, which is also on the same domain, in-house, I got the "403 - Forbidden: Access is denied." error. ...

windows server Active Directory users data into windows phone 7 (windows mobile 7)?

How do I connect to windows server active directory using windows phone 7 without using a web service/ wcf. Microsoft didn't provide "System.DirectorySerice" namespace in windows compact framework. ...

LDAP or VBscript to list all real users in AD

Good morning all, Please can you help me with a LDAP query or VBscript to list all current users; real, flesh and blood people so it must exclude service accounts, administrator accounts and shared mailboxes. If you can help with this, it would be greatly appriciated. Kind regards, Justin ...

creating service accounts in windows server 2008 R2

hello. how can I create a service account such as sql service in active directory on win server 2008 R2? I dont know in which part of administrative tools i can find it. ...

Strange COM interop exception 0x80005000 using System.DirectoryServices.AccountManagement libraries

Hi, I'm trying to write something that (amongst other things) adds a user to an AD group - using VS2010, .Net4 and the library facilities in System.DirectoryServices.AccountManagement. I've gotten a user and group by code like the sample below, and this works for other operations like enabling or disabling accounts. group = System.Dir...

Perl function for negative integers using the 2's complement

I am trying to convert AD maxpwdAge (a 64-bit integer) into a number of days. According to Microsoft: Uses the IADs interface's Get method to retrieve the value of the domain's maxPwdAge attribute (line 5). Notice we use the Set keyword in VBScript to initialize the variable named objMaxPwdAge—the variable used to store the val...

Can I configure gitosis to ask for passwords and check against an Active Directory

I have successfully installed and configured gitosis on an Ubuntu server. We're currently just a few developers creating a development platform for a large organization (more than 2000 employees.) Currently they use subversion for version control. The departments can modify their users permissions by editing and commit a single file, m...

ASP.NET Intranet App Using Windows Authentication Reports Previous Login Name

I'm currently troubleshooting an Intranet application hosted at our company. In this application, Windows Authentication (Integrated Mode) is used to obtain the IPrincipal object for the current user and the current user's name (i.e. "DOMAIN\Joe123"). Our domain is 4 characters long, so the individual who put this code together is grabbi...

Connection pooling in System.DirectoryServices.Protocols (S.DS.P)

I'm struggling with System.DirectoryServices.Protocols (S.DS.P) in an ASP.NET Helpdesk application to manage users and security groups. I want to implement connection pooling for my LDAP connections and I can´t really find any good articles or information about successful patterns for solving the problem with too many TIME_WAIT TCP co...

AD Lightweight Directory Services not Authenticating Users

For some reason, I cannot authenticate user credentials using LDS for users created in LDS. My test code is: PrincipalContext context = new PrincipalContext(ContextType.ApplicationDirectory, "adlds:50000", "CN=test,DC=test,DC=internal", ContextOptions.Negotiate); UserPrincipal user = new UserPrincipal(context); ...

Retrieve user information and check if member of a group in active directory using VB.NET

I'm using the following code, which works, to login a user to an application built in VB.NET against active directory. This code works great but I need to retreive the user's first name, last name, display name and also check if the user is part of a group. I've tried many forms of adResults.Property("displayname").ToString() and the l...

Is there a FluentNHibernate provider for Active Directory?

I would like to use FluentNHibernate to map an Active Directory user object to a POCO object but can't find a provider in the FluentNHibernate.Cfg.Db namespace that will allow me to setup the connection. This is the data layer of a WCF RIA Service. Is there a way to do this? ...

C#, AD: get members of a group recursively, i.e. including subgroups.

Given a group like this in Active Directory: MainGroup GroupA User1 User2 GroupB User3 User4 I can easily determine if User3 is member of MainGroup or any of its subgroups with code like this: using System; using System.DirectoryServices; static class Program { static void Main() { DirectoryEntry user =...

How To Log User In To ASP .NET Site Automatically If They Are Logged In To Active Directory?

Hi, Our client's site currently uses forms authentication, so users have to go to the login page to type in their username and password. There are custom membership and role providers that access a database through NHibernate to get users and roles. The client now wants users from within the local Active Directory to get logged in aut...