From a2e4dd0b6fab090d20dd1b154d1cc985ee32e024 Mon Sep 17 00:00:00 2001 From: Imran Hussain <imranh@sucs.org> Date: Thu, 24 Apr 2014 15:10:36 +0000 Subject: [PATCH] non member/soc home dirs now made in the right places --- lib/member_functions.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lib/member_functions.php b/lib/member_functions.php index 799131d..a1ee518 100644 --- a/lib/member_functions.php +++ b/lib/member_functions.php @@ -79,6 +79,7 @@ function generateLdif($uid, $password, $type, $realname, $username){ $ldif .= "loginShell: /bin/bash\n"; $ldif .= "uidNumber: ".$uid."\n"; // make some society specific changes + // More like make sure peoples home dirs get made in the right place if($type==2){ $gid=1130; $homebase="society"; @@ -87,6 +88,14 @@ function generateLdif($uid, $password, $type, $realname, $username){ $gid=100; $homebase="alumni"; } + elseif($type==3){ + $gid=100; + $homebase="honorary"; + } + elseif($type==4){ + $gid=100; + $homebase="life"; + } else { $gid=100; $homebase="member"; -- GitLab