diff options
-rw-r--r-- | server/providers/data_provider_be.c | 2 | ||||
-rw-r--r-- | server/providers/krb5/krb5_child.c | 4 | ||||
-rw-r--r-- | sss_client/pam_sss.c | 4 | ||||
-rw-r--r-- | sss_client/sss_cli.h | 2 |
4 files changed, 6 insertions, 6 deletions
diff --git a/server/providers/data_provider_be.c b/server/providers/data_provider_be.c index 97cc9f875..72b671ba8 100644 --- a/server/providers/data_provider_be.c +++ b/server/providers/data_provider_be.c @@ -587,7 +587,7 @@ static int be_pam_handler(DBusMessage *message, struct sbus_connection *conn) if (!becli->bectx->bet_info[target].bet_ops) { DEBUG(7, ("Undefined backend target.\n")); pd->pam_status = PAM_MODULE_UNKNOWN; - ret = pam_add_response(pd, PAM_USER_INFO, + ret = pam_add_response(pd, PAM_SYSTEM_INFO, sizeof(MSG_TARGET_NO_CONFIGURED), (const uint8_t *) MSG_TARGET_NO_CONFIGURED); if (ret != EOK) { diff --git a/server/providers/krb5/krb5_child.c b/server/providers/krb5/krb5_child.c index 04cf1f067..a8eed714f 100644 --- a/server/providers/krb5/krb5_child.c +++ b/server/providers/krb5/krb5_child.c @@ -300,7 +300,7 @@ static struct response *prepare_response_message(struct krb5_req *kr, if (kerr == 0) { if(kr->pd->cmd == SSS_PAM_CHAUTHTOK_PRELIM) { - ret = pack_response_packet(resp, PAM_SUCCESS, PAM_USER_INFO, + ret = pack_response_packet(resp, PAM_SUCCESS, PAM_SYSTEM_INFO, "success"); } else { if (kr->ccname == NULL) { @@ -324,7 +324,7 @@ static struct response *prepare_response_message(struct krb5_req *kr, return NULL; } - ret = pack_response_packet(resp, pam_status, PAM_USER_INFO, krb5_msg); + ret = pack_response_packet(resp, pam_status, PAM_SYSTEM_INFO, krb5_msg); sss_krb5_free_error_message(krb5_error_ctx, krb5_msg); } diff --git a/sss_client/pam_sss.c b/sss_client/pam_sss.c index 7dff361e0..03d902f15 100644 --- a/sss_client/pam_sss.c +++ b/sss_client/pam_sss.c @@ -408,12 +408,12 @@ static int eval_response(pam_handle_t *pamh, size_t buflen, uint8_t *buf) } switch(type) { - case PAM_USER_INFO: + case PAM_SYSTEM_INFO: if (buf[p + (len -1)] != '\0') { D(("user info does not end with \\0.")); break; } - logger(pamh, LOG_INFO, "user info: [%s]", &buf[p]); + logger(pamh, LOG_INFO, "system info: [%s]", &buf[p]); break; case PAM_DOMAIN_NAME: D(("domain name: [%s]", &buf[p])); diff --git a/sss_client/sss_cli.h b/sss_client/sss_cli.h index 7c18e1cf8..3996fff29 100644 --- a/sss_client/sss_cli.h +++ b/sss_client/sss_cli.h @@ -169,7 +169,7 @@ enum sss_status { }; enum response_type { - PAM_USER_INFO = 0x01, + PAM_SYSTEM_INFO = 0x01, PAM_DOMAIN_NAME, PAM_ENV_ITEM, /* only pam environment */ ENV_ITEM, /* only user environment */ |