<?php

/**
 * The phpLDAPadmin config file, customised for use with Samba4
 * This overrides phpLDAPadmin defaults
 * that are defined in config_default.php.
 *
 * DONT change config_default.php, you changes will be lost by the next release
 * of PLA. Instead change this file - as it will NOT be replaced by a new
 * version of phpLDAPadmin.
 */
/*********************************************/
/* Useful important configuration overrides  */
/*********************************************/
/* phpLDAPadmin can encrypt the content of sensitive cookies if you set this
   to a big random string. */
$i = 0;
$ldapservers = new LDAPServers();
/* A convenient name that will appear in the tree viewer and throughout
   phpLDAPadmin to identify this LDAP server to users. */
$ldapservers->SetValue($i, 'server', 'name', 'Samba4 LDAP Server');
$ldapservers->SetValue($i, 'server', 'host', 'ldapi://%2Fhome%2Fmat%2Fworkspace%2Fsamba%2Falpha13%2Fprivate%2Fldapi');
$ldapservers->SetValue($i, 'server', 'auth_type', 'session');
$ldapservers->SetValue($i, 'login', 'attr', 'dn');
Example #2
0
   Please help by writing language files. See lang/en.php for an example. */
// $config->custom->appearance['language'] = 'auto';
/* The temporary storage directory where we will put jpegPhoto data
   This directory must be readable and writable by your web server. */
// $config->custom->jpeg['tmpdir'] = "/tmp";     // Example for Unix systems
#  $config->custom->jpeg['tmpdir'] = "c:\\temp"; // Example for Windows systems
/*********************************************/
/* Define your LDAP servers in this section  */
/*********************************************/
// This added by AZ
require_once '../../include/ldap_vars.php';
// get the LDAP server vars
// also changed lib/config_default.php line 274 -AZ
// 'default'=>array('uid','sakaiUser','cn','mail','o','givenname','sn','objectClass'));
$i = 0;
$ldapservers = new LDAPServers();
/* A convenient name that will appear in the tree viewer and throughout
   phpLDAPadmin to identify this LDAP server to users. */
$ldapservers->SetValue($i, 'server', 'name', 'SakaiLDAP');
$ldapservers->SetValue($i, 'server', 'host', $LDAP_SERVER);
$ldapservers->SetValue($i, 'server', 'port', $LDAP_PORT);
$ldapservers->SetValue($i, 'server', 'auth_type', 'cookie');
$ldapservers->SetValue($i, 'login', 'dn', 'cn=Manager,dc=sakaiproject,dc=org');
/* Examples:
   'ldap.example.com',
   'ldaps://ldap.example.com/',
   'ldapi://%2fusr%local%2fvar%2frun%2fldapi'
           (Unix socket at /usr/local/var/run/ldap) */
// $ldapservers->SetValue($i,'server','host','127.0.0.1');
/* The port your LDAP server listens on (no quotes). 389 is standard. */
// $ldapservers->SetValue($i,'server','port','389');
Example #3
0
<?php

/**
 * The phpLDAPadmin config file, customised for use with Samba4
 * This overrides phpLDAPadmin defaults
 * that are defined in config_default.php.
 *
 * DONT change config_default.php, you changes will be lost by the next release
 * of PLA. Instead change this file - as it will NOT be replaced by a new
 * version of phpLDAPadmin.
 */
/*********************************************/
/* Useful important configuration overrides  */
/*********************************************/
/* phpLDAPadmin can encrypt the content of sensitive cookies if you set this
   to a big random string. */
$i = 0;
$ldapservers = new LDAPServers();
/* A convenient name that will appear in the tree viewer and throughout
   phpLDAPadmin to identify this LDAP server to users. */
$ldapservers->SetValue($i, 'server', 'name', 'Samba4 LDAP Server');
$ldapservers->SetValue($i, 'server', 'host', '${S4_LDAPI_URI}');
$ldapservers->SetValue($i, 'server', 'auth_type', 'session');
$ldapservers->SetValue($i, 'login', 'attr', 'dn');