The python module `constants.py`, which is required by the chsh.ldap and getent.ldap scripts installed with sys-auth/nss-pam-ldapd is not included in the package. Reproducible: Always
We even acknowledge this for tests but don't install it? :( https://gitweb.gentoo.org/repo/gentoo.git/tree/sys-auth/nss-pam-ldapd/nss-pam-ldapd-0.9.12-r4.ebuild#n104