Skip to content
Snippets Groups Projects
Commit a2e4dd0b authored by Imran Hussain's avatar Imran Hussain
Browse files

non member/soc home dirs now made in the right places

parent b7b61b1e
No related branches found
No related tags found
No related merge requests found
...@@ -79,6 +79,7 @@ function generateLdif($uid, $password, $type, $realname, $username){ ...@@ -79,6 +79,7 @@ function generateLdif($uid, $password, $type, $realname, $username){
$ldif .= "loginShell: /bin/bash\n"; $ldif .= "loginShell: /bin/bash\n";
$ldif .= "uidNumber: ".$uid."\n"; $ldif .= "uidNumber: ".$uid."\n";
// make some society specific changes // make some society specific changes
// More like make sure peoples home dirs get made in the right place
if($type==2){ if($type==2){
$gid=1130; $gid=1130;
$homebase="society"; $homebase="society";
...@@ -87,6 +88,14 @@ function generateLdif($uid, $password, $type, $realname, $username){ ...@@ -87,6 +88,14 @@ function generateLdif($uid, $password, $type, $realname, $username){
$gid=100; $gid=100;
$homebase="alumni"; $homebase="alumni";
} }
elseif($type==3){
$gid=100;
$homebase="honorary";
}
elseif($type==4){
$gid=100;
$homebase="life";
}
else { else {
$gid=100; $gid=100;
$homebase="member"; $homebase="member";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment