Use bool in setDN.

The LDAP tests still need correcting, but this should allow
initial creation and login for LDAP users. The use-case
of checking DN changes can now be removed from the tests.