Author: fapeeler
Date: Thu May 17 20:39:42 2012
New Revision: 1339854

URL: http://svn.apache.org/viewvc?rev=1339854&view=rev
Log:
VCL-463



Modified:
    incubator/vcl/trunk/managementnode/lib/VCL/Module/OS.pm
    incubator/vcl/trunk/managementnode/lib/VCL/Module/OS/Linux.pm

Modified: incubator/vcl/trunk/managementnode/lib/VCL/Module/OS.pm
URL: 
http://svn.apache.org/viewvc/incubator/vcl/trunk/managementnode/lib/VCL/Module/OS.pm?rev=1339854&r1=1339853&r2=1339854&view=diff
==============================================================================
--- incubator/vcl/trunk/managementnode/lib/VCL/Module/OS.pm (original)
+++ incubator/vcl/trunk/managementnode/lib/VCL/Module/OS.pm Thu May 17 20:39:42 
2012
@@ -2296,6 +2296,9 @@ sub manage_server_access {
                        next;
                }
                my $standalone = 0;
+               if(!$self->user_exists($user_hash{$userid}{username})){
+         delete($res_accounts{$userid});
+      }
                if(!exists($res_accounts{$userid})){
                        # check affiliation
                        notify($ERRORS{'DEBUG'}, 0, "checking affiliation for 
$userid");

Modified: incubator/vcl/trunk/managementnode/lib/VCL/Module/OS/Linux.pm
URL: 
http://svn.apache.org/viewvc/incubator/vcl/trunk/managementnode/lib/VCL/Module/OS/Linux.pm?rev=1339854&r1=1339853&r2=1339854&view=diff
==============================================================================
--- incubator/vcl/trunk/managementnode/lib/VCL/Module/OS/Linux.pm (original)
+++ incubator/vcl/trunk/managementnode/lib/VCL/Module/OS/Linux.pm Thu May 17 
20:39:42 2012
@@ -4401,8 +4401,7 @@ sub user_exists {
                 $username = $self->data->get_user_login_id();
         }
 
-
-                               notify($ERRORS{'DEBUG'}, 0, "checking if user 
$username exists on $computer_node_name");
+                 notify($ERRORS{'DEBUG'}, 0, "checking if user $username 
exists on $computer_node_name");
 
         # Attempt to query the user account
         my $query_user_command = "id $username";
@@ -4412,7 +4411,7 @@ sub user_exists {
                notify($ERRORS{'DEBUG'}, 0, "user $username exists on 
$computer_node_name");
                return 1;
        }
-       elsif (grep(/no such user/, $query_user_output)) {
+       elsif (grep(/No such user/i, $query_user_output)) {
                notify($ERRORS{'DEBUG'}, 0, "user $username does not exist on 
$computer_node_name");
                return 0;
        }


Reply via email to