Skip to content
Snippets Groups Projects
Commit 0e38349d authored by Graham Cole's avatar Graham Cole
Browse files

yet more fixes from live site

parent 08f85bc2
No related branches found
No related tags found
No related merge requests found
......@@ -242,7 +242,7 @@ $smarty->assign('session', $session);
if ($session->loggedin === TRUE) {
$sucsDB = NewADOConnection('postgres8');
$sucsDB->Connect('dbname='.$sucsdbname);
$sucsDB->Connect('dbname='.$sucsdbname.' user=apache');
$sucsDB->SetFetchMode(ADODB_FETCH_ASSOC);
// $sucsDB->debug = true;
......@@ -317,9 +317,9 @@ if ($session->loggedin === TRUE) {
// connect to Blog DB to see if user has a SUCS blog
require_once("/usr/share/adodb/adodb.inc.php");
require_once("/usr/share/php/adodb/adodb.inc.php");
$BlogDB = NewADOConnection('postgres8');
$BlogDB->Connect('dbname=blogs');
$BlogDB->Connect('dbname=blogs user=apache');
$BlogDB->SetFetchMode(ADODB_FETCH_ASSOC);
require_once('../lib/blog/validation.lib.php');
if (blogger($session->username)) {
......
......@@ -5,7 +5,8 @@ define('_LDAP_SERVER', 'ldap://silver');
// Connect and bind to ldap server
$conn = ldap_connect(_LDAP_SERVER);
$bind = ldap_bind($conn);
# ldap_set_option($conn, LDAP_OPT_PROTOCOL_VERSION, 3);
# $bind = ldap_bind($conn);
$search = ldap_search($conn, _BASE_DN, 'uid=*', array('uid', 'cn', 'homedirectory'));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment