"; $auth_err = auth_nds("CIPCINSA", $ss_username, strtoupper($pwd),"profs.pc"); } else if ($ctx == ".GCP.PC") { #echo "authentification à GCP
"; $auth_err = auth_nds("GCP", $ss_username, strtoupper($pwd),"profs.gcp.pc"); } else $auth_err = "Access denied!"; } else { $ss_username=$uu; #echo "authentification à ".$HTTP_POST_VARS["svr"]."
"; $auth_err = auth_bindery($ss_svr, $uu, $pwd, $HTTP_POST_VARS["grp"]); } # write in /var/log/secure openlog ("php_nds_auth",LOG_ID |LOG_PID ,LOG_AUTHPRIV); if ($auth_err == "") { $ss_authenticated=1; session_register("ss_username"); session_register("ss_authenticated"); session_register("ss_tree"); session_register("ss_server"); syslog (LOG_NOTICE,"granted access to ".$ss_username." the ".$date. " from ".$machine); closelog(); header ("Location: menu.phtml"); } else { syslog (LOG_WARNING,"access denied for ".$uu." from ".$machine." due to ".$auth_err); closelog(); header ("Location: index.phtml?uid=".$uu."&message=".urlencode($auth_err)); } } ?>