Merged contribution from Nathan Humphreys which adds ability to auth as the user themselves against LDAP rather than needing an LDAP manager user