tbrehm
2009-03-02 99cb22d717aefea1b76ebfab33cada925c1d5e31
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);