summaryrefslogtreecommitdiffstats
path: root/application/controllers
diff options
context:
space:
mode:
Diffstat (limited to 'application/controllers')
-rw-r--r--application/controllers/ResourceController.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/application/controllers/ResourceController.php b/application/controllers/ResourceController.php
index b538b07..7935b68 100644
--- a/application/controllers/ResourceController.php
+++ b/application/controllers/ResourceController.php
@@ -407,6 +407,7 @@ class ResourceController extends Zend_Controller_Action
exec("tar -C $path_userconf -xvf ../resources/config/$configID/default.tgz");
exec("echo '$loginname:x:1000:1000:".$person->getName()." ".$person->getFirstname().",,,:/home/$loginname:/bin/bash' >> $path_userconf/rootfs/etc/passwd");
exec("md5pass ".$person->getPassword(), $pwhash);
+ // crypt(password, '$6$'.randomString(8).'$')
exec("echo '$loginname:$pwhash[0]:0:0:99999:7:::' >> $path_userconf/rootfs/etc/shadow");
exec("echo 'mkdir /home/$loginname' >> $path_userconf/initramfs/postinit.local");
}