Hello,
The pam_pkcs11 module assumpts that all PKCS#11 tokens are smartcards,
so it will display "Smart card" key word in the PAM prompt message.
However, most of the PKCS#11 tokens are not Smart cards. so we modified
some prompt messages to avoid confusion when
we ported this module to Solaris OS.
Attached is the patch file, please let me know if you have any comments.
Thanks,
Huie-Ying
Index: src/pam_pkcs11/pam_pkcs11.c
===================================================================
--- src/pam_pkcs11/pam_pkcs11.c (revision 340)
+++ src/pam_pkcs11/pam_pkcs11.c (working copy)
@@ -281,7 +281,7 @@
}
} else {
pam_prompt(pamh, PAM_TEXT_INFO, NULL,
- _("Please insert your smart card or enter your username."));
+ _("Please enter your username."));
/* get user name */
rv = pam_get_user(pamh, &user, NULL);
@@ -389,7 +389,7 @@
}
}
} else {
- pam_prompt(pamh, PAM_TEXT_INFO, NULL, _("Smart card inserted. "));
+ pam_prompt(pamh, PAM_TEXT_INFO, NULL, _("Found the PKCS#11 slot with a
token."));
}
rv = open_pkcs11_session(ph, slot_num);
if (rv != 0) {
@@ -405,10 +405,10 @@
if (configuration->use_first_pass) {
rv = pam_get_pwd(pamh, &password, NULL, PAM_AUTHTOK, 0);
} else if (configuration->try_first_pass) {
- rv = pam_get_pwd(pamh, &password, _("Smart card password: "), PAM_AUTHTOK,
+ rv = pam_get_pwd(pamh, &password, _("Token password: "), PAM_AUTHTOK,
PAM_AUTHTOK);
} else {
- rv = pam_get_pwd(pamh, &password, _("Smart card password: "), 0,
+ rv = pam_get_pwd(pamh, &password, _("Token password: "), 0,
PAM_AUTHTOK);
}
if (rv != PAM_SUCCESS) {
_______________________________________________
opensc-devel mailing list
opensc-devel@lists.opensc-project.org
http://www.opensc-project.org/mailman/listinfo/opensc-devel