hostname)) $config->hostname = ''; if (!isset ($config->port)) $config->port = ''; if (!isset ($config->casversion)) $config->casversion = ''; if (!isset ($config->baseuri)) $config->baseuri = ''; if (!isset ($config->language)) $config->language = ''; if (!isset ($config->proxycas)) $config->proxycas = ''; if (!isset ($config->logoutcas)) $config->logoutcas = ''; if (!isset ($config->multiauth)) $config->multiauth = ''; // set to defaults if undefined (LDAP) if (!isset($config->host_url)) { $config->host_url = ''; } if (empty($config->ldapencoding)) { $config->ldapencoding = 'utf-8'; } if (!isset($config->contexts)) { $config->contexts = ''; } if (!isset($config->user_type)) { $config->user_type = 'default'; } if (!isset($config->user_attribute)) { $config->user_attribute = ''; } if (!isset($config->search_sub)) { $config->search_sub = ''; } if (!isset($config->opt_deref)) { $config->opt_deref = LDAP_DEREF_NEVER; } if (!isset($config->bind_dn)) {$config->bind_dn = ''; } if (!isset($config->bind_pw)) {$config->bind_pw = ''; } if (!isset($config->version)) {$config->version = '2'; } if (!isset($config->objectclass)) {$config->objectclass = ''; } if (!isset($config->memberattribute)) {$config->memberattribute = ''; } if (!isset($config->memberattribute_isdn)) {$config->memberattribute_isdn = ''; } if (!isset($config->groupecreators)) {$config->groupecreators = ''; } if (!isset($config->attrcreators)) {$config->attrcreators = ''; } if (!isset($config->removeuser)) {$config->removeuser = 0; } $yesno = array( get_string('no'), get_string('yes') ); if (!function_exists('ldap_connect')) { // Is php4-ldap really there? notify(get_string('auth_ldap_noextension','auth')); } ?> '; $help .= get_string('auth_updateremote_ldap','auth'); print_auth_lock_options('cas', $user_fields, $help, true, true); ?>

:
:
:
:
: language, ''); ?>
: proxycas, get_string('no'), '', ''); ?>
: logoutcas, get_string('no'), '', ''); ?>
: multiauth, get_string('no'), '', ''); ?>

version, ''); if (isset($err['version'])) formerr($err['version']); ?>

ldap_suppported_usertypes(), 'user_type', $config->user_type, ''); ?>
search_sub, ''); ?>
opt_deref, ''); if (isset($err['opt_deref'])) formerr($err['opt_deref']); ?>

removeuser, ''); ?>