summaryrefslogtreecommitdiff
path: root/source3/nsswitch/pam_winbind.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/nsswitch/pam_winbind.c')
-rw-r--r--source3/nsswitch/pam_winbind.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/source3/nsswitch/pam_winbind.c b/source3/nsswitch/pam_winbind.c
index 034c7f1746..0729fda62b 100644
--- a/source3/nsswitch/pam_winbind.c
+++ b/source3/nsswitch/pam_winbind.c
@@ -572,6 +572,18 @@ static int winbind_auth_request(pam_handle_t * pamh,
}
}
+ /* save the profile path for other PAM modules */
+ if (response.data.auth.info3.profile_path[0] != '\0') {
+
+ int ret2 = pam_set_data(pamh, PAM_WINBIND_PROFILEPATH,
+ (void *) strdup(response.data.auth.info3.profile_path),
+ _pam_winbind_cleanup_func);
+ if (ret2) {
+ _pam_log_debug(pamh, ctrl, LOG_DEBUG, "Could not set data: %s",
+ pam_strerror(pamh, ret2));
+ }
+ }
+
/* If winbindd returned a username, return the pointer to it here. */
if (user_ret && response.extra_data.data) {
/* We have to trust it's a null terminated string. */