summaryrefslogtreecommitdiff
path: root/source3/auth
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2002-05-25 07:37:44 +0000
committerAndrew Bartlett <abartlet@samba.org>2002-05-25 07:37:44 +0000
commit20efe2fe6cbc4b5cf861a3296e29f5495637f79c (patch)
tree320ae01d545132da8faeb265e7702254bb4bfb3d /source3/auth
parent9921fd9d0ef9a8862b371eec17d47a9e78c5ad67 (diff)
downloadsamba-20efe2fe6cbc4b5cf861a3296e29f5495637f79c.tar.gz
samba-20efe2fe6cbc4b5cf861a3296e29f5495637f79c.tar.bz2
samba-20efe2fe6cbc4b5cf861a3296e29f5495637f79c.zip
Clean up a few unused functions, add a bit of static etc.
Importantly: The removal of the silly 'delete user script' behaviour when secuity=domain. I have left the name the same - as it still does the (previously documented, but not in smb.conf(5)) sane behaviour of deleting users on request. When we decide what to do with the 'add user' functionality, we might rename it. Andrew Bartlett (This used to be commit cdcfe3671eb7570e15649b77f708e6579055e7bc)
Diffstat (limited to 'source3/auth')
-rw-r--r--source3/auth/auth_util.c28
1 files changed, 0 insertions, 28 deletions
diff --git a/source3/auth/auth_util.c b/source3/auth/auth_util.c
index 7179252ce7..0d7a952c04 100644
--- a/source3/auth/auth_util.c
+++ b/source3/auth/auth_util.c
@@ -49,24 +49,6 @@ static int smb_create_user(const char *unix_user, const char *homedir)
}
/****************************************************************************
- Delete a UNIX user on demand.
-****************************************************************************/
-
-int smb_delete_user(const char *unix_user)
-{
- pstring del_script;
- int ret;
-
- pstrcpy(del_script, lp_deluser_script());
- if (! *del_script)
- return -1;
- all_string_sub(del_script, "%u", unix_user, sizeof(pstring));
- ret = smbrun(del_script,NULL);
- DEBUG(3,("smb_delete_user: Running the command `%s' gave %d\n",del_script,ret));
- return ret;
-}
-
-/****************************************************************************
Add and Delete UNIX users on demand, based on NTSTATUS codes.
****************************************************************************/
@@ -88,16 +70,6 @@ void smb_user_control(const auth_usersupplied_info *user_info, auth_serversuppli
smb_create_user(user_info->internal_username.str, NULL);
}
}
- } else if (NT_STATUS_EQUAL(nt_status, NT_STATUS_NO_SUCH_USER)) {
- /*
- * User failed to validate ok against Domain controller.
- * If the failure was "user doesn't exist" and admin
- * wants us to try and delete that UNIX user on the fly,
- * do so.
- */
- if (lp_deluser_script()) {
- smb_delete_user(user_info->internal_username.str);
- }
}
}