Is there a way to do the same thing but using Active Directory? Here's the script I said was below (oops)
<?php
$ldap_host = "dnsdhcp1";
$base_dn = "DC=TFCU,DC=org";
$filter = "(samaccountname=".$HTTP_GET_VARS['uname']."

";
//$ldap_user = "CN=Joe User,OU=Sales,DC=php,DC=net";
$ldap_user = "TFCU\\administrator";
$ldap_pass = "focus";
$connect = ldap_connect( $ldap_host, $ldap_port)
or exit(">>Could not connect to LDAP server<<"

;
ldap_set_option($connect, LDAP_OPT_PROTOCOL_VERSION, 3);
ldap_set_option($connect, LDAP_OPT_REFERRALS, 0);
$bind = ldap_bind($connect, $ldap_user, $ldap_pass)
or exit(">>Could not bind to $ldap_host<<"

;
$read = ldap_search($connect, $base_dn, $filter)
or exit(">>Unable to search ldap server<<"

;
$info = ldap_get_entries($connect, $read);
echo $info["count"]." entries returned<p>";
$ii=0;
for ($i=0; $ii<$info[$i]["count"]; $ii++){
$data = $info[$i][$ii];
echo $data.": ".$info[$i][$data][0]."<br>";
}
ldap_close($connect);
?>
Basically you goto
and you get all the information about my name from Active Directory. Works like a champ.
However this whole authentication issue arrises really when it comes to what they have permission to is something like a $rights variable should be defined? So like if its a common page everyone can come to make $rights = all and then when it comes to division pages say $rights = br36 where if their userID has a CN=br36 in it they can see the page.
Digatle