diff options
author | Jeremy Allison <jra@samba.org> | 2001-04-23 04:15:35 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2001-04-23 04:15:35 +0000 |
commit | ae8418d0c400f6458c1eb0b79881fd02629e5acd (patch) | |
tree | 5d05e1532ac5fa56a4ff90e6c77e003b0ffbe3fc /source3/smbd | |
parent | e277c08631316ccda875a09a67ebb220c495c5a9 (diff) | |
download | samba-ae8418d0c400f6458c1eb0b79881fd02629e5acd.tar.gz samba-ae8418d0c400f6458c1eb0b79881fd02629e5acd.tar.bz2 samba-ae8418d0c400f6458c1eb0b79881fd02629e5acd.zip |
Added smb_ prefix to all Samba wrapper pam functions.
Fixed off by one bug using StrnCpy instead of strdup().
Jeremy.
(This used to be commit d4b1c0be2e700c86a4338bb497777f97e3c960a7)
Diffstat (limited to 'source3/smbd')
-rw-r--r-- | source3/smbd/password.c | 2 | ||||
-rw-r--r-- | source3/smbd/session.c | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/source3/smbd/password.c b/source3/smbd/password.c index 698c6a1356..ba882f2bf2 100644 --- a/source3/smbd/password.c +++ b/source3/smbd/password.c @@ -632,7 +632,7 @@ BOOL password_ok(char *user, char *password, int pwlen, struct passwd *pwd) */ if (ret) - return pam_accountcheck(user); + return smb_pam_accountcheck(user); } return pass_check(user, password, pwlen, pwd, diff --git a/source3/smbd/session.c b/source3/smbd/session.c index fb13019812..2f86832b4a 100644 --- a/source3/smbd/session.c +++ b/source3/smbd/session.c @@ -111,8 +111,8 @@ BOOL session_claim(uint16 vuid) } #if WITH_PAM - if (!pam_session(True, sessionid.username, sessionid.id_str, sessionid.hostname)) { - DEBUG(1,("pam_session rejected the session for %s [%s]\n", + if (!smb_pam_session(True, sessionid.username, sessionid.id_str, sessionid.hostname)) { + DEBUG(1,("smb_pam_session rejected the session for %s [%s]\n", sessionid.username, sessionid.id_str)); tdb_delete(tdb, key); return False; @@ -167,7 +167,7 @@ void session_yield(uint16 vuid) #endif #if WITH_PAM - pam_session(False, sessionid.username, sessionid.id_str, sessionid.hostname); + smb_pam_session(False, sessionid.username, sessionid.id_str, sessionid.hostname); #endif tdb_delete(tdb, key); |