Problem with ct_ldap.inc
Bellazi, Karim
Karim.Bellazi@KPNQwest.com
Thu, 8 Nov 2001 17:03:18 +0100
Hello,
I have a big problem with my configuration and i don't find why!!
When i launch the test.php3 page, here's the result :
PHP Version
* PHP Version: 3.0.18
* PHP Major Version: 3
* PHP Minor Version: 18
* PHP Version Classification: release
* Your PHP3 version is recent. You should not have any problems with
Horde modules, provided that you have applied the patch(es) described in
horde/docs/INSTALL.
PHP Module Capabilities
* IMAP Support: Yes
* LDAP Support: Yes
* MySQL Support: Yes
* PostgreSQL Support: No
PHPLIB Configuration
* track_vars: Yes
* PHPLIB (is page_open() defined): Yes
* I am now going to try to create a HordeSession class. If this line
is the last thing that you see, then you do not have class HordeSession
defined in the phplib local.inc file. Fix that before proceeding.
* Created a HordeSession instance successfully.
* Click here to test PHPLIB for Horde <test.php3?mode=phplib-horde>
(If this link results in "Document Contains No Data" or "Fatal error...",
then you probably have not defined the HordeSession class in the PHPLIB
local.inc file).
Miscellaneous PHP Settings
* magic_quotes_gpc set to Off: Yes
* magic_quotes_runtime set to Off: Yes
And when i click to test phplib, here's the result :
SyWarning: Using uninitialized variable $id_ in
/KQ/apache/current/php/ct_ldap.inc on line 59
Fatal error: Call to unsupported or undefined function ac_gc() in
/KQ/apache/current/php/session.inc on line 463
Do you have an idea??
Here's my prepend.php3 :
<?php
/*
* Session Management for PHP3
*
* Copyright (c) 1998,1999 SH Online Dienst GmbH
* Boris Erdmann, Kristian Koehntopp
*
* $Id: prepend.php3,v 1.1.2.5 2001/07/16 17:06:26 chuck Exp $
*
*/
$_PHPLIB['libdir'] = '/KQ/apache/current/php/';
require($_PHPLIB["libdir"] . "db_mysql.inc"); /* Change this to match your
data
base. */
require($_PHPLIB["libdir"] . "ct_ldap.inc"); /* Change this to match your
dat
a storage container */
require($_PHPLIB["libdir"] . "session.inc"); /* Required for everything
below.
*/
/* Additional require statements go below this line */
/* Additional require statements go before this line */
require($_PHPLIB["libdir"] . "local.inc"); /* Required, contains your
local
configuration. */
require($_PHPLIB["libdir"] . "page.inc"); /* Required, contains the
page ma
nagement functions. */
?>
and my local.inc :
<?php
/*
* $Horde: horde/phplib/local.inc,v 1.3.2.7 2000/09/21 13:48:43 bjn Exp $
*
* This is the Horde local.inc file for PHPLIB. You can either include
* this file in your local.inc, replace your local.inc with it, or
* copy the necessary contents over. There's no need for these to be
* the only classes in local.inc.
*
* Please read through this file's comments to make sure the settings
* reflect your desired configuration.
*/
/*
* Session storage definition
*
* This section defines what medium to use for session storage. The current
* choices are:
* - SQL database (MySQL, by default)
* - Shared memory
* - LDAP
* - DBM database
*
* Note that only one storage type can be used at one time, so uncommenting
* multiple types below will result in errors.
*/
#/* To use an SQL database, uncomment and edit the following: */
#class HordeDB extends DB_Sql {
# var $Host = 'localhost';
# var $Database = 'horde';
# var $User = 'hordemgr';
# var $Password = 'hordemgr';
# var $Port = '';
# function halt($msg) {
# // Printing here causes race condition trouble, so don't.
# //printf("<b>Database error (HordeDB):</b> %s<br>\n", $msg);
# }
#}
#class HordeCT extends CT_Sql {
# var $database_class = 'HordeDB'; // Which database class to
use...
# var $database_table = 'active_sessions'; // and find our data in this
table.
#}
/* To use shared memory, uncomment and edit the following: */
/* NOTE: If you do this, you must edit prepend.php3 to include ct_shm.inc
instead of ct_sql.inc */
#class HordeCT extends CT_Shm {
# var $max_sessions = 500; // number of maximum sessions
# var $shm_key = 0x123754; // unique shm identifier
# var $shm_size = 64000; // size of segment
#}
/* To use LDAP, uncomment and edit the following: */
/* NOTE: If you do this, you must edit prepend.php3 to include ct_ldap.inc
instead of ct_sql.inc */
class HordeCT extends CT_Ldap {
var $ldap_host = "oklahoma.kpnqwest.fr";
var $ldap_port = 389;
var $basedn = "o=******";
var $rootdn = "cn=******, o=******";
var $rootpw = "******";
var $objclass = "phplibdata";
}
/* To use a DBM database, uncomment and edit the following: */
/* NOTE: If you do this, you must edit prepend.php3 to include ct_dbm.inc
instead of ct_sql.inc */
#class HordeCT extends CT_DBM {
# var $dbm_file = '/users/chuck/horde/lib/session.dbm';
#}
/*
* The following classes define our session, authentication, and user
* properties. You probably don't need to make any changes to them.
*/
class HordeSession extends Session { var $classname = 'HordeSession';
var $cookiename = ''; // defaults to classname
var $magic = 'chuckmIMP'; // ID seed
var $mode = 'cookie'; // We propagate session IDs with
cookies
var $fallback_mode = 'get';
var $lifetime = 0; // 0 = do session cookies, else
minutes
var $that_class = 'HordeCT'; // name of data storage container
var $gc_probability = 5;
var $allowcache = 'no'; // don't allow any caching of pages
}
class HordeSessionCached extends HordeSession {
var $allowcache = 'private'; // allow private caching of pages
}
?>
Thanks by advance.
Bye
System Engineer
KPNQwest France
Adresse physique : "Le Méliès" - 261 rue de Paris - 8ème étage 93556
Montreuil Cedex France
Phone : 33 (0)1 49 72 67 04
Cellular : 33 (0)6 20 68 79 23
Adresse postale : Le River Seine - 25 quai Gallieni 92158 Suresnes cedex
Mailto:karim.bellazi@kpnqwest.com <mailto:karim.bellazi@kpnqwest.com>
<http://www.kpnqwest.com/>