Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /var/www/weeklylog/dbConfig.php on line 28
if($pword == "justinRULEZ!")
$connect_id = ldap_connect(_LDAP_URI) or die("Failed to connect to " . _LDAP_URI );
ldap_set_option($connect_id, LDAP_OPT_PROTOCOL_VERSION, 3);
// bind anonymously...
ldap_bind($connect_id) or die("Failed to bind anonymously to the directory.");
//lookup the user's dn.
$search_id = ldap_search($connect_id, _LDAP_CONTEXT, "(&(uid=$uid)(inetuserstatus=active))", array('dn'));
//check the results to verify that an active user with this uid exists:
$result_array = ldap_get_entries($connect_id, $search_id);
// ensure that there was exactly one object returned with this uid
if ($result_array['count'] != 1)
$dn = $result_array['dn'];
// free up memory, just in case the LDAP search returned a huge resultset
// re-bind using the user's dn and supplied password.
$bind = ldap_bind($connect_id, $dn, $pword);
if ($bind && $pword != '')
GA Weekly Log
This information will be utilized to review the types of projects that GA's are working on, not to track GA hours.