Add support for several backends.

We re-read the configuration so that we can use the ldap.Identity()
code as it is. Afterwards, the configuration is restored.