summaryrefslogtreecommitdiff
path: root/source3/auth
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-08-23 21:00:27 +0200
committerVolker Lendecke <vl@samba.org>2010-08-23 22:59:56 +0200
commita16a56f60156b3284f9acef9a675122b36ebf7dc (patch)
treeef9c90bc82af68edf393f2571131319b2dec28d0 /source3/auth
parent2d80364f1ba33519a4b12a5d910ff58d74e6e5c2 (diff)
downloadsamba-a16a56f60156b3284f9acef9a675122b36ebf7dc.tar.gz
samba-a16a56f60156b3284f9acef9a675122b36ebf7dc.tar.bz2
samba-a16a56f60156b3284f9acef9a675122b36ebf7dc.zip
s3: PAM_RHOST and PAM_TTY are enums on FreeBSD
Diffstat (limited to 'source3/auth')
-rw-r--r--source3/auth/pampass.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/auth/pampass.c b/source3/auth/pampass.c
index f2e30b2c63..83a3f81db0 100644
--- a/source3/auth/pampass.c
+++ b/source3/auth/pampass.c
@@ -494,7 +494,7 @@ static bool smb_pam_start(pam_handle_t **pamh, const char *user, const char *rho
return False;
}
-#ifdef PAM_RHOST
+#if HAVE_PAM_RHOST
if (rhost == NULL) {
our_rhost = client_name(smbd_server_fd());
if (strequal(our_rhost,"UNKNOWN"))
@@ -512,7 +512,7 @@ static bool smb_pam_start(pam_handle_t **pamh, const char *user, const char *rho
return False;
}
#endif
-#ifdef PAM_TTY
+#if HAVE_PAM_TTY
DEBUG(4,("smb_pam_start: PAM: setting tty\n"));
pam_error = pam_set_item(*pamh, PAM_TTY, "samba");
if (!smb_pam_error_handler(*pamh, pam_error, "set tty failed", 0)) {
@@ -657,7 +657,7 @@ static bool smb_internal_pam_session(pam_handle_t *pamh, const char *user, const
{
int pam_error;
-#ifdef PAM_TTY
+#if HAVE_PAM_TTY
DEBUG(4,("smb_internal_pam_session: PAM: tty set to: %s\n", tty));
pam_error = pam_set_item(pamh, PAM_TTY, tty);
if (!smb_pam_error_handler(pamh, pam_error, "set tty failed", 0))