summaryrefslogtreecommitdiff
path: root/sss_client/pam_sss.c
diff options
context:
space:
mode:
Diffstat (limited to 'sss_client/pam_sss.c')
-rw-r--r--sss_client/pam_sss.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/sss_client/pam_sss.c b/sss_client/pam_sss.c
index caf164b6..2d02f6fe 100644
--- a/sss_client/pam_sss.c
+++ b/sss_client/pam_sss.c
@@ -17,6 +17,10 @@
#include "sss_cli.h"
+#include <libintl.h>
+#define _(STRING) dgettext (PACKAGE, STRING)
+#include "config.h"
+
#define FLAGS_USE_FIRST_PASS (1 << 0)
#define FLAGS_FORWARD_PASS (1 << 1)
#define FLAGS_USE_AUTHTOK (1 << 2)
@@ -337,7 +341,7 @@ static int do_pam_conversation(pam_handle_t *pamh, const int msg_style,
*answer = NULL;
}
ret = do_pam_conversation(pamh, PAM_ERROR_MSG,
- "Passwords do not match", NULL,
+ _("Passwords do not match"), NULL,
NULL);
if (ret != PAM_SUCCESS) {
D(("do_pam_conversation failed."));
@@ -558,6 +562,8 @@ static int pam_sss(int task, pam_handle_t *pamh, int pam_flags, int argc,
uint32_t flags = 0;
char *answer;
+ bindtextdomain(PACKAGE, LOCALEDIR);
+
D(("Hello pam_sssd: %d", task));
for (; argc-- > 0; ++argv) {