Project

General

Profile

« Previous | Next » 

Revision 64fa4207

Added by Steve Beaver about 7 years ago

Fixed #7013
Added warning requiring reboot if group scope is changed

View differences:

src/etc/inc/auth.inc
880 880
	$group_name = $group['name'];
881 881
	$group_gid = $group['gid'];
882 882
	$group_members = '';
883

  
883 884
	if (!$reset && !empty($group['member']) && count($group['member']) > 0) {
884 885
		$group_members = implode(",", $group['member']);
885 886
	}
886 887

  
887
	if (empty($group_name) || $group['scope'] == "remote") {
888
	if (empty($group_name)) {
889
		return;
890
	}
891

  
892
	// If the group is now remote, make sure there is no local group with the same name
893
	if ($group['scope'] == "remote") {
894
		local_group_del($group);
888 895
		return;
889 896
	}
890 897

  
......
904 911
	if ($debug) {
905 912
		log_error(sprintf(gettext("Running: %s"), $cmd));
906 913
	}
907
	mwexec($cmd);
908 914

  
915
	mwexec($cmd);
909 916
}
910 917

  
911 918
function local_group_del($group) {

Also available in: Unified diff