|
|
|
@ -50,6 +50,7 @@ int addmember() { |
|
|
|
|
int krb_ok, user_ok, group_ok, home_ok, quota_ok; |
|
|
|
|
int id; |
|
|
|
|
char homedir[1024]; |
|
|
|
|
char acl_s[1024], dacl_s[1024]; |
|
|
|
|
acl_t acl = NULL, dacl = NULL; |
|
|
|
|
|
|
|
|
|
logmsg("adding uid=%s cn=%s program=%s by %s", userid, name, program, user); |
|
|
|
@ -61,12 +62,14 @@ int addmember() { |
|
|
|
|
deny("user %s already exists", userid); |
|
|
|
|
|
|
|
|
|
snprintf(homedir, sizeof(homedir), "%s/%s", member_home, userid); |
|
|
|
|
snprintf(acl_s, sizeof(acl_s), club_home_acl, userid); |
|
|
|
|
|
|
|
|
|
acl = acl_from_text(member_home_acl); |
|
|
|
|
if (acl == NULL) |
|
|
|
|
fatalpe("Unable to parse member_home_acl"); |
|
|
|
|
|
|
|
|
|
if (*member_home_acl) { |
|
|
|
|
snprintf(dacl_s, sizeof(dacl_s), club_home_dacl, userid); |
|
|
|
|
dacl = acl_from_text(member_home_dacl); |
|
|
|
|
if (dacl == NULL) |
|
|
|
|
fatalpe("Unable to parse member_home_dacl"); |
|
|
|
|