Question : Active Directory Help

Hi guys
My company has asked me to merge all the users on active directory to a access control system. so basically, what I need to do, is get all the users from active directory and then add them via SQL queries into a Database. Information that I will require from active directory properties is Title, Firstname, Lastname, Gender, EmployeeID. Can anyone show me some basics on how to do this ? As I have not worked with AD before...

Thanks in advance for all and any help !! :)

Answer : Active Directory Help

Sorry slight correction,


$result = mysql_query("
      SELECT
            `ordering`.`user_id`,`ordering`.`first_name`, `ordering`.`last_name`, `ordering`.`total`,
                  sum(`ordering`.`total`) as `total`
            FROM
                  `ordering`

            GROUP BY   `ordering`.`user_id
            ORDER BY `total` DESC    
;");
Random Solutions  
 
programming4us programming4us