summaryrefslogtreecommitdiff
path: root/nsswitch/pam_winbind.c
diff options
context:
space:
mode:
authorBo Yang <boyang@samba.org>2009-12-10 19:29:24 +0800
committerBo Yang <boyang@samba.org>2009-12-10 19:29:24 +0800
commitc7e3a2dc319cc6504356be7fa7970917404a69b5 (patch)
tree07ff09ae53fa2b017f09e0928d79ed0ecef9e301 /nsswitch/pam_winbind.c
parentb386c3311d8c05ccbd075ab86be2ddace335b73b (diff)
downloadsamba-c7e3a2dc319cc6504356be7fa7970917404a69b5.tar.gz
samba-c7e3a2dc319cc6504356be7fa7970917404a69b5.tar.bz2
samba-c7e3a2dc319cc6504356be7fa7970917404a69b5.zip
s3: check for PAM_RADIO_TYPE.
Signed-off-by: Bo Yang <boyang@samba.org>
Diffstat (limited to 'nsswitch/pam_winbind.c')
-rw-r--r--nsswitch/pam_winbind.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/nsswitch/pam_winbind.c b/nsswitch/pam_winbind.c
index 2e6520c1ce..51346a8670 100644
--- a/nsswitch/pam_winbind.c
+++ b/nsswitch/pam_winbind.c
@@ -807,8 +807,7 @@ static int wbc_auth_error_to_pam_error(struct pwb_context *ctx,
return pam_winbind_request_log(ctx, ret, username, fn);
}
-/* PAM_RADIO_TYPE is linux-only. */
-#ifdef LINUX
+#if defined(HAVE_PAM_RADIO_TYPE)
static bool _pam_winbind_change_pwd(struct pwb_context *ctx)
{
struct pam_message msg, *pmsg;
@@ -846,7 +845,6 @@ static bool _pam_winbind_change_pwd(struct pwb_context *ctx)
}
#endif
-
/**
* send a password expiry message if required
*