diff options
author | Gerald Carter <jerry@samba.org> | 2002-05-09 04:05:37 +0000 |
---|---|---|
committer | Gerald Carter <jerry@samba.org> | 2002-05-09 04:05:37 +0000 |
commit | 9ac3ca512a4d6a99848c708d1b83adcb0d452b59 (patch) | |
tree | 75fd2b0c09edde0446a6e85c625d11652f17ca2e /source3/pam_smbpass/pam_smb_auth.c | |
parent | 6337369a903b07ef42c050f77d439d8b11b7f6bf (diff) | |
download | samba-9ac3ca512a4d6a99848c708d1b83adcb0d452b59.tar.gz samba-9ac3ca512a4d6a99848c708d1b83adcb0d452b59.tar.bz2 samba-9ac3ca512a4d6a99848c708d1b83adcb0d452b59.zip |
compile fixes; needs testing
(This used to be commit a3f68a963c0dc5ba5e8601633e9b532fa32145cd)
Diffstat (limited to 'source3/pam_smbpass/pam_smb_auth.c')
-rw-r--r-- | source3/pam_smbpass/pam_smb_auth.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/source3/pam_smbpass/pam_smb_auth.c b/source3/pam_smbpass/pam_smb_auth.c index 9952eb94db..e5cc12e2f6 100644 --- a/source3/pam_smbpass/pam_smb_auth.c +++ b/source3/pam_smbpass/pam_smb_auth.c @@ -47,6 +47,7 @@ do { \ static int _smb_add_user(pam_handle_t *pamh, unsigned int ctrl, const char *name, SAM_ACCOUNT *sampass, BOOL exist); + /* * pam_sm_authenticate() authenticates users against the samba password file. * @@ -67,13 +68,11 @@ int pam_sm_authenticate(pam_handle_t *pamh, int flags, BOOL found; /* Points to memory managed by the PAM library. Do not free. */ - const char *p = NULL; + char *p = NULL; /* Samba initialization. */ setup_logging("pam_smbpass",False); - charset_initialise(); - codepage_initialise(lp_client_code_page()); in_client = True; ctrl = set_ctrl(flags, argc, argv); |