Changes required so the sudoRole objectClass will present a link so members can be modified by default. (#101)

This commit is contained in:
JamesCordell 2020-02-19 22:17:37 +00:00 committed by GitHub
parent 4661aa2114
commit 0b65747110
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 3 deletions

View File

@ -235,7 +235,7 @@ $config->custom->appearance['friendly_attrs'] = array(
*********************************************/ *********************************************/
/* Add "modify group members" link to the attribute. */ /* Add "modify group members" link to the attribute. */
// $config->custom->modify_member['groupattr'] = array('member','uniqueMember','memberUid'); // $config->custom->modify_member['groupattr'] = array('member','uniqueMember','memberUid','sudoUser');
/* Configure filter for member search. This only applies to "modify group members" feature */ /* Configure filter for member search. This only applies to "modify group members" feature */
// $config->custom->modify_member['filter'] = '(objectclass=Person)'; // $config->custom->modify_member['filter'] = '(objectclass=Person)';
@ -243,6 +243,7 @@ $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')]; $possible_members[$i] = $possible_values[$i][$_SESSION[APPCONFIG]->getValue('modify_member','attr')][0];
} }
# Show only user that are not already in group. # Show only user that are not already in group.

View File

@ -444,7 +444,7 @@ class Config {
*/ */
$this->default->modify_member['groupattr'] = array( $this->default->modify_member['groupattr'] = array(
'desc'=>'Group member attributes', 'desc'=>'Group member attributes',
'default'=>array('member','uniqueMember','memberUid')); 'default'=>array('member','uniqueMember','memberUid','uid'));
/** /**
* Attribute that is added to the group member attribute. For groupOfNames or groupOfUniqueNames this is dn, * Attribute that is added to the group member attribute. For groupOfNames or groupOfUniqueNames this is dn,