summaryrefslogtreecommitdiff
path: root/source3/passdb
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2001-10-31 06:22:19 +0000
committerAndrew Bartlett <abartlet@samba.org>2001-10-31 06:22:19 +0000
commit6ab678d42b46eccee080de415985a8a1e3c29dc3 (patch)
tree166a84c3988da85c3554fad30e43e8ea72aa17c7 /source3/passdb
parent6f0b8a38ec036a0027e9f938834e241b41db40c5 (diff)
downloadsamba-6ab678d42b46eccee080de415985a8a1e3c29dc3.tar.gz
samba-6ab678d42b46eccee080de415985a8a1e3c29dc3.tar.bz2
samba-6ab678d42b46eccee080de415985a8a1e3c29dc3.zip
Small 'const' updates ahead of some AuthRewrite merging.
(This used to be commit 3b5e72bda3263c6bdf81dfface4fae4f06b71032)
Diffstat (limited to 'source3/passdb')
-rw-r--r--source3/passdb/pampass.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/source3/passdb/pampass.c b/source3/passdb/pampass.c
index 6980b14f46..018eae3a07 100644
--- a/source3/passdb/pampass.c
+++ b/source3/passdb/pampass.c
@@ -547,7 +547,7 @@ static NTSTATUS smb_pam_auth(pam_handle_t *pamh, char *user)
/*
* PAM Account Handler
*/
-static NTSTATUS smb_pam_account(pam_handle_t *pamh, char * user)
+static NTSTATUS smb_pam_account(pam_handle_t *pamh, const char * user)
{
int pam_error;
NTSTATUS nt_status = NT_STATUS_ACCOUNT_DISABLED;
@@ -777,7 +777,7 @@ BOOL smb_pam_close_session(char *user, char *tty, char *rhost)
* PAM Externally accessible Account handler
*/
-NTSTATUS smb_pam_accountcheck(char * user)
+NTSTATUS smb_pam_accountcheck(const char * user)
{
NTSTATUS nt_status = NT_STATUS_ACCOUNT_DISABLED;
pam_handle_t *pamh = NULL;
@@ -873,19 +873,19 @@ BOOL smb_pam_passchange(const char * user, const char * oldpassword, const char
#else
/* If PAM not used, no PAM restrictions on accounts. */
- NTSTATUS smb_pam_accountcheck(char * user)
+NTSTATUS smb_pam_accountcheck(const char * user)
{
return NT_STATUS_OK;
}
/* If PAM not used, also no PAM restrictions on sessions. */
- BOOL smb_pam_claim_session(char *user, char *tty, char *rhost)
+BOOL smb_pam_claim_session(char *user, char *tty, char *rhost)
{
return True;
}
/* If PAM not used, also no PAM restrictions on sessions. */
- BOOL smb_pam_close_session(char *in_user, char *tty, char *rhost)
+BOOL smb_pam_close_session(char *in_user, char *tty, char *rhost)
{
return True;
}