summaryrefslogtreecommitdiff
path: root/source3/auth
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2005-05-31 02:23:47 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:57:01 -0500
commit450e8d5749504f8392c0cfe8b79218f03b88076a (patch)
treecef9fa5ebb4909a57ad02af6416b94182c6b874d /source3/auth
parenta3f4c365171097eaa615b390d74a90b9345a3973 (diff)
downloadsamba-450e8d5749504f8392c0cfe8b79218f03b88076a.tar.gz
samba-450e8d5749504f8392c0cfe8b79218f03b88076a.tar.bz2
samba-450e8d5749504f8392c0cfe8b79218f03b88076a.zip
r7130: remove 'winbind enable local accounts' code from the 3.0 tree
(This used to be commit 318c3db4cb1c85be40b2f812f781bcf5f1da5c19)
Diffstat (limited to 'source3/auth')
-rw-r--r--source3/auth/auth_util.c32
1 files changed, 2 insertions, 30 deletions
diff --git a/source3/auth/auth_util.c b/source3/auth/auth_util.c
index 30933c6c93..79205f1206 100644
--- a/source3/auth/auth_util.c
+++ b/source3/auth/auth_util.c
@@ -51,34 +51,6 @@ static int smb_create_user(const char *domain, const char *unix_username, const
}
/****************************************************************************
- Add and Delete UNIX users on demand, based on NTSTATUS codes.
- We don't care about RID's here so ignore.
-****************************************************************************/
-
-void auth_add_user_script(const char *domain, const char *username)
-{
- /*
- * User validated ok against Domain controller.
- * If the admin wants us to try and create a UNIX
- * user on the fly, do so.
- */
-
- if ( *lp_adduser_script() )
- smb_create_user(domain, username, NULL);
- else {
- DEBUG(10,("auth_add_user_script: no 'add user script'. Asking winbindd\n"));
-
- /* should never get here is we a re a domain member running winbindd
- However, a host set for 'security = server' might run winbindd for
- account allocation */
-
- if ( !winbind_create_user(username, NULL) ) {
- DEBUG(5,("auth_add_user_script: winbindd_create_user() failed\n"));
- }
- }
-}
-
-/****************************************************************************
Create a SAM_ACCOUNT - either by looking in the pdb, or by faking it up from
unix info.
****************************************************************************/
@@ -1092,7 +1064,7 @@ struct passwd *smb_getpwnam( char *domuser, fstring save_username, BOOL create )
if (username[strlen(username)-1] == '$')
return NULL;
- auth_add_user_script(NULL, username);
+ smb_create_user(NULL, username, NULL);
pw = Get_Pwnam(username);
}
@@ -1181,7 +1153,7 @@ NTSTATUS make_server_info_info3(TALLOC_CTX *mem_ctx,
if (NT_STATUS_EQUAL(nt_status, NT_STATUS_NO_SUCH_USER)) {
DEBUG(3,("User %s does not exist, trying to add it\n", internal_username));
- auth_add_user_script( nt_domain, sent_nt_username );
+ smb_create_user( nt_domain, sent_nt_username, NULL);
nt_status = fill_sam_account( mem_ctx, nt_domain, sent_nt_username,
&found_username, &uid, &gid, &sam_account );
}