summaryrefslogtreecommitdiffstats
path: root/source3/pam_smbpass
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2011-07-26 12:51:04 +0200
committerMichael Adam <obnox@samba.org>2011-07-28 11:17:29 +0200
commitc9efe307cb288eb6cabbe0f781326164e9e30414 (patch)
tree2ef81d2b47c3a1bca30fb195ef3ca7295b5ca485 /source3/pam_smbpass
parentf764de64e39f62f84389c9df4f4a55f2ee01f857 (diff)
downloadsamba-c9efe307cb288eb6cabbe0f781326164e9e30414.tar.gz
samba-c9efe307cb288eb6cabbe0f781326164e9e30414.tar.xz
samba-c9efe307cb288eb6cabbe0f781326164e9e30414.zip
s3:pam_smbpass: use lp_load_client() in pam_smbpass
Diffstat (limited to 'source3/pam_smbpass')
-rw-r--r--source3/pam_smbpass/pam_smb_acct.c1
-rw-r--r--source3/pam_smbpass/pam_smb_auth.c1
-rw-r--r--source3/pam_smbpass/pam_smb_passwd.c1
-rw-r--r--source3/pam_smbpass/support.c2
4 files changed, 1 insertions, 4 deletions
diff --git a/source3/pam_smbpass/pam_smb_acct.c b/source3/pam_smbpass/pam_smb_acct.c
index 63323d8d8fc..60acd3c1ca5 100644
--- a/source3/pam_smbpass/pam_smb_acct.c
+++ b/source3/pam_smbpass/pam_smb_acct.c
@@ -58,7 +58,6 @@ int pam_sm_acct_mgmt( pam_handle_t *pamh, int flags,
/* Samba initialization. */
load_case_tables_library();
- lp_set_in_client(True);
ctrl = set_ctrl(pamh, flags, argc, argv );
diff --git a/source3/pam_smbpass/pam_smb_auth.c b/source3/pam_smbpass/pam_smb_auth.c
index d63f0806c3e..4270bcce587 100644
--- a/source3/pam_smbpass/pam_smb_auth.c
+++ b/source3/pam_smbpass/pam_smb_auth.c
@@ -81,7 +81,6 @@ int pam_sm_authenticate(pam_handle_t *pamh, int flags,
/* Samba initialization. */
load_case_tables_library();
- lp_set_in_client(True);
ctrl = set_ctrl(pamh, flags, argc, argv);
diff --git a/source3/pam_smbpass/pam_smb_passwd.c b/source3/pam_smbpass/pam_smb_passwd.c
index 54d9db7f312..ce0b1187d80 100644
--- a/source3/pam_smbpass/pam_smb_passwd.c
+++ b/source3/pam_smbpass/pam_smb_passwd.c
@@ -106,7 +106,6 @@ int pam_sm_chauthtok(pam_handle_t *pamh, int flags,
/* Samba initialization. */
load_case_tables_library();
- lp_set_in_client(True);
ctrl = set_ctrl(pamh, flags, argc, argv);
diff --git a/source3/pam_smbpass/support.c b/source3/pam_smbpass/support.c
index 3dfdff3c028..e79d787be9c 100644
--- a/source3/pam_smbpass/support.c
+++ b/source3/pam_smbpass/support.c
@@ -203,7 +203,7 @@ int set_ctrl( pam_handle_t *pamh, int flags, int argc, const char **argv )
/* Read some options from the Samba config. Can be overridden by
the PAM config. */
- if(lp_load(service_file,True,False,False,True) == False) {
+ if(lp_load_client(service_file) == false) {
_log_err(pamh, LOG_ERR, "Error loading service file %s", service_file);
}