mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-11-03 21:02:34 +00:00 
			
		
		
		
	-Function skeleton for deleting users in AD
-Fix bug where a user in AD was missed git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5368 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
		@@ -136,8 +136,20 @@ sub list_user_accounts { #provide enough data to construct an /etc/passwd lookin
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
    if ($failure) { return undef; }
 | 
			
		||||
    foreach(keys %currvalues) {
 | 
			
		||||
        $userhash{$currvalues{accountname}}->{$_} = $currvalues{$_};
 | 
			
		||||
    }
 | 
			
		||||
    return \%userhash;
 | 
			
		||||
}
 | 
			
		||||
sub delete_user_account { #provide enough data to construct an /etc/passwd looking output
 | 
			
		||||
    my %args = @_;
 | 
			
		||||
    my $directoryserver = $args{directoryserver};
 | 
			
		||||
    my $dnsdomain = $args{dnsdomain};
 | 
			
		||||
    my $username = $args{username};
 | 
			
		||||
    unless ($dnsdomain and $directoryserver $username) {
 | 
			
		||||
        die "Invalid arguments";
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
=cut
 | 
			
		||||
  example: add_user_account(username=>'fred',fullname=>'fred the great');
 | 
			
		||||
=cut
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user