Sorry, please disregard this bug, It's because I've got ldap for "shadow" in /etc/nsswitch.conf. After removing it, getspnam(3) returns NULL on users not in /etc/shadow as expected.
We may still say that there's a bug because with a default install of libpam-ldap the "account" settings for the pam_ldap module still are overriden by that of the pam_unix one.
Sorry, please disregard this bug, It's because I've got ldap for "shadow" in /etc/nsswitch.conf. After removing it, getspnam(3) returns NULL on users not in /etc/shadow as expected.
We may still say that there's a bug because with a default install of libpam-ldap the "account" settings for the pam_ldap module still are overriden by that of the pam_unix one.