if ($request->exist('preserve_members') && $request->get('preserve_members') == 'on') { $bindOption = LDAP_GroupManager::PRESERVE_MEMBERS_OPTION; } // Check if user has checked the Synchronization option. $synchro = LDAP_GroupManager::NO_SYNCHRONIZATION; if ($request->existAndNonEmpty('synchronize')) { $synchro = LDAP_GroupManager::AUTO_SYNCHRONIZATION; } $hp = Codendi_HTMLPurifier::instance(); $btn_update = $Language->getText('plugin_ldap', 'ugroup_edit_btn_update'); $btn_unlink = $Language->getText('plugin_ldap', 'ugroup_edit_btn_unlink'); $vSubmit = new Valid_WhiteList('submit', array($btn_update, $btn_unlink)); $vSubmit->required(); if ($request->isPost() && $request->valid($vSubmit)) { if ($request->get('submit') == $btn_unlink) { if ($ldapUserGroupManager->unbindFromBindLdap()) { $GLOBALS['Response']->addFeedback('info', $GLOBALS['Language']->getText('plugin_ldap', 'ugroup_manager_unlink')); } } else { $vBindWithGroup = new Valid_String('bind_with_group'); $vBindWithGroup->required(); if ($request->valid($vBindWithGroup)) { if ($request->existAndNonEmpty('confirm')) { // // Perform Ugroup <-> LDAP Group synchro // $ldapUserGroupManager->bindWithLdap($bindOption, $synchro); } elseif ($request->exist('cancel')) { // Display the screen below! continue; } else {