tbrehm
2009-03-09 9a5d63807ff17826d30b597b8cced9f21f7a20a4
server/plugins-available/shelluser_base_plugin.inc.php
@@ -87,6 +87,13 @@
         
            exec($command);
            $app->log("Added shelluser: ".$data['new']['username'],LOGLEVEL_DEBUG);
            //* Disable shell user temporarily if we use jailkit
            if($data['new']['chroot'] == 'jailkit') {
               $command = 'usermod --lock '.escapeshellcmd($data['new']['username']);
               exec($command);
               $app->log("Disabling shelluser temporarily: ".$data['new']['username'],LOGLEVEL_DEBUG);
            }
         
         } else {
            $app->log("UID = $uid for shelluser:".$data['new']['username']." not allowed.",LOGLEVEL_ERROR);