Useful to configure the connection if ldap.conf and/or ldaprc cannot be used
auth_conf.xml.sample includes an example to connect to LDAPS using
self-signed certificates.
After https://github.com/galaxyproject/galaxy/pull/75 , the <filter> tag of
config/auth_conf.xml is broken, see https://github.com/galaxyproject/galaxy/pull/75#issuecomment-98194386 .
I don't think that there is a meaningful way to filter on usernames, so I
changed it to filter on email instead of login.
Also:
- fix AuthManager.check_registration_allowed to use both email and username
since which is used for login depends on the AuthProvider used;
- move ldap <authenticator> example to config/auth_conf.xml.sample .