arthurdejong / nss-pam-ldapd

NSS and PAM modules for lookups using LDAP
https://arthurdejong.org/nss-pam-ldapd/
GNU Lesser General Public License v2.1
54 stars 42 forks source link

Feature: provide internationalization support #63

Open tsaarni opened 9 months ago

tsaarni commented 9 months ago

Feature request: add support for internationalization in nss-pam-ldapd.

Since the PAM module has interactions with the user, it would be useful to allow internationalization for the prompt strings. This would also allow administrator to change the strings e.g. remove details that the password is LDAP password in prompt such as https://github.com/arthurdejong/nss-pam-ldapd/blob/33cf91cbbcc92c10fc99c828f9d9b94752299800/pam/pam.c#L730-L731

tsaarni commented 9 months ago

Would the project be interested in contribution if I created a PR?

arthurdejong commented 8 months ago

Hi @tsaarni,

Thanks for your suggestion. A PR for this would be very welcome. I don't know about the limitations of using gettext in a PAM module. Also, this should be an optional requirement since the software is used on a lot of different platforms (FreeBSD, Solaris, etc.).

I'm pretty short on spare time for a while now so while I try to keep up with pull requests and incoming queries I can't give you a guarantee on responsiveness.

Kind regards,