/* if the user is not in the group */
if(!user_in_unix_group_list(pdb_get_username(sam_pass), grp_name)) {
pdb_free_sam(&sam_pass);
- return NT_STATUS_MEMBER_IN_ALIAS;
+ return NT_STATUS_MEMBER_NOT_IN_ALIAS;
}
smb_delete_user_group(grp_name, pdb_get_username(sam_pass));
if (!NT_STATUS_IS_OK(result)) {
d_printf("Could not add %s to %s: %s\n",
argv[1], argv[0], nt_errstr(result));
- return result;
}
+ return result;
}
if (group_type == SID_NAME_ALIAS) {
if (!NT_STATUS_IS_OK(result)) {
d_printf("Could not add %s to %s: %s\n",
argv[1], argv[0], nt_errstr(result));
- return result;
}
+ return result;
}
d_printf("Can only add members to global or local groups which "
if (!NT_STATUS_IS_OK(result)) {
d_printf("Could not del %s to %s: %s\n",
argv[1], argv[0], nt_errstr(result));
- return result;
}
+ return result;
}
if (group_type == SID_NAME_ALIAS) {
if (!NT_STATUS_IS_OK(result)) {
d_printf("Could not add %s to %s: %s\n",
argv[1], argv[0], nt_errstr(result));
- return result;
}
+ return result;
}
d_printf("Can only delete members from global or local groups which "