}
}
+ /* 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. */
#define PAM_WINBIND_NEW_AUTHTOK_REQD "PAM_WINBIND_NEW_AUTHTOK_REQD"
#define PAM_WINBIND_HOMEDIR "PAM_WINBIND_HOMEDIR"
#define PAM_WINBIND_LOGONSCRIPT "PAM_WINBIND_LOGONSCRIPT"
+#define PAM_WINBIND_PROFILEPATH "PAM_WINBIND_PROFILEPATH"
#define PAM_WINBIND_PWD_LAST_SET "PAM_WINBIND_PWD_LAST_SET"
#define SECONDS_PER_DAY 86400