mirror of
https://github.com/samba-team/samba.git
synced 2025-01-10 01:18:15 +03:00
s3:pam_smbpass: use lp_load_client() in pam_smbpass
This commit is contained in:
parent
f764de64e3
commit
c9efe307cb
@ -58,7 +58,6 @@ int pam_sm_acct_mgmt( pam_handle_t *pamh, int flags,
|
|||||||
|
|
||||||
/* Samba initialization. */
|
/* Samba initialization. */
|
||||||
load_case_tables_library();
|
load_case_tables_library();
|
||||||
lp_set_in_client(True);
|
|
||||||
|
|
||||||
ctrl = set_ctrl(pamh, flags, argc, argv );
|
ctrl = set_ctrl(pamh, flags, argc, argv );
|
||||||
|
|
||||||
|
@ -81,7 +81,6 @@ int pam_sm_authenticate(pam_handle_t *pamh, int flags,
|
|||||||
|
|
||||||
/* Samba initialization. */
|
/* Samba initialization. */
|
||||||
load_case_tables_library();
|
load_case_tables_library();
|
||||||
lp_set_in_client(True);
|
|
||||||
|
|
||||||
ctrl = set_ctrl(pamh, flags, argc, argv);
|
ctrl = set_ctrl(pamh, flags, argc, argv);
|
||||||
|
|
||||||
|
@ -106,7 +106,6 @@ int pam_sm_chauthtok(pam_handle_t *pamh, int flags,
|
|||||||
|
|
||||||
/* Samba initialization. */
|
/* Samba initialization. */
|
||||||
load_case_tables_library();
|
load_case_tables_library();
|
||||||
lp_set_in_client(True);
|
|
||||||
|
|
||||||
ctrl = set_ctrl(pamh, flags, argc, argv);
|
ctrl = set_ctrl(pamh, flags, argc, argv);
|
||||||
|
|
||||||
|
@ -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
|
/* Read some options from the Samba config. Can be overridden by
|
||||||
the PAM config. */
|
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);
|
_log_err(pamh, LOG_ERR, "Error loading service file %s", service_file);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user