Revert part of 0b657471 to fix #105 - Problem with member select list to goun

This commit is contained in:
Deon George 2020-09-23 10:13:11 +10:00
parent 0c334f0385
commit a8fe6f3274
3 changed files with 2 additions and 3 deletions

View File

@ -1 +1 @@
RELEASE-1.2.6 RELEASE-1.2.6.2

View File

@ -247,7 +247,6 @@ $config->custom->appearance['friendly_attrs'] = array(
/* Attribute that is added to the group member attribute. */ /* Attribute that is added to the group member attribute. */
// $config->custom->modify_member['attr'] = 'dn'; // $config->custom->modify_member['attr'] = 'dn';
/* For Posix attributes */ /* For Posix attributes */
// $config->custom->modify_member['posixattr'] = 'uid'; // $config->custom->modify_member['posixattr'] = 'uid';
// $config->custom->modify_member['posixfilter'] = '(uid=*)'; // $config->custom->modify_member['posixfilter'] = '(uid=*)';

View File

@ -65,7 +65,7 @@ for ($i=0;$i<count($possible_values);$i++) {
if (preg_match("/^".$request['attr']."$/i",$_SESSION[APPCONFIG]->getValue('modify_member','posixgroupattr'))) if (preg_match("/^".$request['attr']."$/i",$_SESSION[APPCONFIG]->getValue('modify_member','posixgroupattr')))
$possible_members[$i] = $possible_values[$i][$_SESSION[APPCONFIG]->getValue('modify_member','posixattr')][0]; $possible_members[$i] = $possible_values[$i][$_SESSION[APPCONFIG]->getValue('modify_member','posixattr')][0];
else else
$possible_members[$i] = $possible_values[$i][$_SESSION[APPCONFIG]->getValue('modify_member','attr')][0]; $possible_members[$i] = $possible_values[$i][$_SESSION[APPCONFIG]->getValue('modify_member','attr')];
} }
# Show only user that are not already in group. # Show only user that are not already in group.