summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2002-09-25 09:55:41 +0000
committerAndrew Bartlett <abartlet@samba.org>2002-09-25 09:55:41 +0000
commit8a3bb8b36bf1bedabb6dfa931ec9a1d579f80500 (patch)
treed47c0ff47efee14b3711d24cc54075dcbb78326f /source3/smbd
parentb06d2abe746fb7873846e9f14bb8d3895c4290ed (diff)
downloadsamba-8a3bb8b36bf1bedabb6dfa931ec9a1d579f80500.tar.gz
samba-8a3bb8b36bf1bedabb6dfa931ec9a1d579f80500.tar.bz2
samba-8a3bb8b36bf1bedabb6dfa931ec9a1d579f80500.zip
Kill of Get_Pwnam_Modify and smb_getpwnam(). The latter assumes some things
that just don't apply any more - now that we always keep username and domain seperate. Also, the policy it was trying to permit is now implemented by the auth code. Andrew Bartlett (This used to be commit 760c0740cad948665db4a1d462fbbd99332713ef)
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/sesssetup.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/smbd/sesssetup.c b/source3/smbd/sesssetup.c
index 09288ad44d..785f8d6821 100644
--- a/source3/smbd/sesssetup.c
+++ b/source3/smbd/sesssetup.c
@@ -160,12 +160,12 @@ static int reply_spnego_kerberos(connection_struct *conn,
ads_destroy(&ads);
/* the password is good - let them in */
- pw = smb_getpwnam(user,False);
+ pw = Get_Pwnam(user);
if (!pw && !strstr(user, lp_winbind_separator())) {
char *user2;
/* try it with a winbind domain prefix */
asprintf(&user2, "%s%s%s", lp_workgroup(), lp_winbind_separator(), user);
- pw = smb_getpwnam(user2,False);
+ pw = Get_Pwnam(user2);
if (pw) {
free(user);
user = user2;