Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tag: AD_Group_Manag…
Fetching contributors…

Cannot retrieve contributors at this time

executable file 47 lines (42 sloc) 1.564 kb
<?php
// CAS Login Info
define('CAS_HOST', 'login.middlebury.edu');
define('CAS_PORT', 443);
define('CAS_PATH', '/cas');
// Define $getUserDisplayName as a custom callback function for accessing the current user's name.
// $getUserDisplayName = create_function('', " return phpCAS::getAttribute('FirstName').' '.phpCAS::getAttribute('LastName');");
// Configure the first LDAP Server.
$ldapConfig = array();
$ldapConfig['LDAPHost'] = 'ad.middlebury.edu';
$ldapConfig['LDAPPort'] = 389;
$ldapConfig['BindDN'] = 'binduser';
$ldapConfig['BindDNPassword'] = 'bindpassword';
$ldapConfig['BaseDN'] = 'DC=middlebury,DC=edu';
$ldapConfig['UserBaseDN'] = 'DC=middlebury,DC=edu';
$ldapConfig['GroupBaseDN'] = 'OU=Groups,DC=middlebury,DC=edu';
$ldapConfig['WritableGroupContainers'] = array(
'OU=MIDD,OU=web data,DC=middlebury,DC=edu',
'OU=MIIS,OU=web data,DC=middlebury,DC=edu',
);
global $notifyConfig;
$notifyConfig = array(
array( 'URL' => 'http://chisel.middlebury.edu/~afranco/directory/',
'Type' => 'POST',
'GroupParam' => 'group_id',
'OtherParams' => array(
'action' => 'clear_cache',
'ADMIN_ACCESS' => 'sdfj239ug2jasdgae01jLKJ',
),
),
array( 'URL' => 'http://chisel.middlebury.edu/~afranco/drupal/',
'Type' => 'GET',
'GroupParam' => 'group_id',
'OtherParams' => array(
'q' => 'casmmsync/update_group',
'passkey' => 'OkCacheCleared',
),
),
);
define('DISPLAY_ERROR_BACKTRACE', false);
define('SHOW_TIMERS', true);
define('SHOW_TIMERS_IN_OUTPUT', false);
Jump to Line
Something went wrong with that request. Please try again.