PHP Classes
elePHPant
Icontem

ADSI Access: Validate the access using Windows Active Directory

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   View files View files (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2004-04-02 (11 years ago) RSS 2.0 feedStarStar 38%Total: 2,731 This week: 1All time: 1,308 This week: 1,067Up
Version License Categories  
class_adsi_access 1.0FreewareUser Management, Windows
Description Author  

This class is meant to validate the access of an authenticated user to page a page associated with a given Windows Active directory group.

The class uses Windows ADSI (Active Directory Services Interface) via COM objects to verify whether an authenticated user belongs a given group

If the user does not belong to the group the class exits displaying an access error message.

Picture of Javier Campo Martínez
Name: Javier Campo Martínez <contact>
Classes: 1 package by
Country: Colombia Colombia
Age: 42
All time rank: 10729 in Colombia Colombia
Week rank: 859 Up6 in Colombia Colombia Up

Details provided by the author  
----------
IMPORTANT!
----------
Tested with Win2K and IIS
Win2K incorporates the Active Directory service.
I heard that WinNT needs some additional stuff to complain 
with Active Directory (?)

In order to test successfully this class, you must follow these steps:
1) Your webmaster must create a group in the Win2K Active Directory, i.e. "Test"
2) Your webmaster must add some users to the "Test" group, including yourself.
3) Download the class code (class_adsi_access.php) and the test file (test_access.php)
3) Try the sample code (test_access.php), with some users (including yours) 
   to see if the class works :)
  Files folder image Files  
File Role Description
Plain text file class_adsi_access Class Class
Accessible without login Plain text file readme Doc. short instructions to use the class
Accessible without login Plain text file test_access Test Code to test the file

 Version Control Unique User Downloads Download Rankings  
 0%Total:2,731All time:1,308
 This week:1This week:1,067Up
 User Ratings  
 
 All time
Utility:50%StarStarStar
Consistency:45%StarStarStar
Documentation:30%StarStar
Examples:-
Tests:60%StarStarStarStar
Videos:-
Overall:38%StarStar
Rank:2288