include('common_admin_inc.htm'); class CLDAP_info { var $enabled; var $lib_ug; var $lib_ag; var $principal; var $credential; var $repository_uri; var $user_dn; var $group_dn; var $domain; function CLDAP_info( $enabled, $lib_ug, $lib_ag, $principal, $credential, $repository_uri, $user_dn, $group_dn, $domain ) { $this->enabled = $enabled; $this->lib_ug = $lib_ug; $this->lib_ag = $lib_ag; $this->principal = $principal; $this->credential = $credential; $this->repository_uri = $repository_uri; $this->user_dn = $user_dn; $this->group_dn = $group_dn; $this->domain = $domain; } }; // Handel the progress screen if opened and get the NEW data if ($_SERVER[REQUEST_METHOD] == "POST") { $operationInProgress = true; $status = new ReturnStatus(); error_log("_POST = ". print_r($_POST,true) ); if( $_POST['test_ldap'] == "1" ) { test_ldap($user); } else { $ldap_info = new CLDAP_info( $_POST['enabled'], $_POST['lib_ug'], $_POST['lib_ag'], $_POST['principal'], $_POST['credential'], $_POST['repository_uri'], $_POST['user_dn'], $_POST['group_dn'], $_POST['domain'] ); set_ldap($user, $ldap_info); } print $status->out(); return; } else { // Load stuff up for the first time $ldap = get_ldap($user); error_log( "ldap = ". print_r($ldap, true) ); $ldapDomains = get_ldap_domains($user); error_log( "ldapDomains = ". print_r($ldapDomains, true) ); } ?>
Setup - LDAP |
Configure the LDAP client. |