summaryrefslogtreecommitdiff
path: root/server/providers
diff options
context:
space:
mode:
authorSumit Bose <sbose@redhat.com>2010-01-08 17:39:09 +0100
committerStephen Gallagher <sgallagh@redhat.com>2010-02-01 08:50:57 -0500
commit6c9fe712447b4b868c9fe3e1d91df174485d0ada (patch)
tree0df9e97c2046e68a042a5c6e1c20478868eb1e54 /server/providers
parentf64617bcac3c996dc00beddfdadf135d9c8ae049 (diff)
downloadsssd-6c9fe712447b4b868c9fe3e1d91df174485d0ada.tar.gz
sssd-6c9fe712447b4b868c9fe3e1d91df174485d0ada.tar.bz2
sssd-6c9fe712447b4b868c9fe3e1d91df174485d0ada.zip
Avoid 'PAM' at the beginning of define and enum names
Diffstat (limited to 'server/providers')
-rw-r--r--server/providers/data_provider_be.c2
-rw-r--r--server/providers/krb5/krb5_auth.c8
-rw-r--r--server/providers/krb5/krb5_child.c7
3 files changed, 9 insertions, 8 deletions
diff --git a/server/providers/data_provider_be.c b/server/providers/data_provider_be.c
index 72b671ba..fa26c145 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_SYSTEM_INFO,
+ ret = pam_add_response(pd, SSS_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_auth.c b/server/providers/krb5/krb5_auth.c
index 1ac8c4c5..c013ea89 100644
--- a/server/providers/krb5/krb5_auth.c
+++ b/server/providers/krb5/krb5_auth.c
@@ -66,7 +66,7 @@ static errno_t add_krb5_env(struct dp_option *opts, const char *ccname,
ret = ENOMEM;
goto done;
}
- ret = pam_add_response(pd, PAM_ENV_ITEM, strlen(env)+1,
+ ret = pam_add_response(pd, SSS_PAM_ENV_ITEM, strlen(env)+1,
(uint8_t *) env);
if (ret != EOK) {
DEBUG(1, ("pam_add_response failed.\n"));
@@ -82,7 +82,7 @@ static errno_t add_krb5_env(struct dp_option *opts, const char *ccname,
ret = ENOMEM;
goto done;
}
- ret = pam_add_response(pd, PAM_ENV_ITEM, strlen(env)+1,
+ ret = pam_add_response(pd, SSS_PAM_ENV_ITEM, strlen(env)+1,
(uint8_t *) env);
if (ret != EOK) {
DEBUG(1, ("pam_add_response failed.\n"));
@@ -98,7 +98,7 @@ static errno_t add_krb5_env(struct dp_option *opts, const char *ccname,
ret = ENOMEM;
goto done;
}
- ret = pam_add_response(pd, PAM_ENV_ITEM, strlen(env)+1,
+ ret = pam_add_response(pd, SSS_PAM_ENV_ITEM, strlen(env)+1,
(uint8_t *) env);
if (ret != EOK) {
DEBUG(1, ("pam_add_response failed.\n"));
@@ -945,7 +945,7 @@ static void krb5_resolve_done(struct tevent_req *req)
goto done;
}
- ret = pam_add_response(pd, PAM_ENV_ITEM, strlen(msg) + 1,
+ ret = pam_add_response(pd, SSS_PAM_ENV_ITEM, strlen(msg) + 1,
(uint8_t *) msg);
if (ret != EOK) {
DEBUG(1, ("pam_add_response failed.\n"));
diff --git a/server/providers/krb5/krb5_child.c b/server/providers/krb5/krb5_child.c
index a8eed714..8ff9259b 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_SYSTEM_INFO,
+ ret = pack_response_packet(resp, PAM_SUCCESS, SSS_PAM_SYSTEM_INFO,
"success");
} else {
if (kr->ccname == NULL) {
@@ -314,7 +314,7 @@ static struct response *prepare_response_message(struct krb5_req *kr,
return NULL;
}
- ret = pack_response_packet(resp, PAM_SUCCESS, PAM_ENV_ITEM, msg);
+ ret = pack_response_packet(resp, PAM_SUCCESS, SSS_PAM_ENV_ITEM, msg);
talloc_zfree(msg);
}
} else {
@@ -324,7 +324,8 @@ static struct response *prepare_response_message(struct krb5_req *kr,
return NULL;
}
- ret = pack_response_packet(resp, pam_status, PAM_SYSTEM_INFO, krb5_msg);
+ ret = pack_response_packet(resp, pam_status, SSS_PAM_SYSTEM_INFO,
+ krb5_msg);
sss_krb5_free_error_message(krb5_error_ctx, krb5_msg);
}