bz-953513 test coverage of LDAP login modules extended

Regression tests for bz#953513 and bz#959140.