Build a synthetic email in auto registration of users from LDAP if none found
authorMarius Mathiesen <marius@gitorious.org>
Wed, 19 Sep 2012 07:04:17 +0000 (09:04 +0200)
committerMarius Mathiesen <marius@gitorious.org>
Mon, 8 Oct 2012 07:41:36 +0000 (09:41 +0200)
commit38e2a59cdad29f9e4d84defaf76d55fda709ea2c
tree36b0fe829e3cdfeb8ad1fbff29ff33969f8ca8b3
parent17b46764d65977b26a96c7d30c623a8bfad2be0a
Build a synthetic email in auto registration of users from LDAP if none found

Auto registration of user accounts would fail if no email address is
found in LDAP. We will now construct a synthetic address in these
cases, to ensure users are able to log in.

It would make sense for such users to add a valid email address afterwards.
lib/gitorious/authentication/ldap_authentication.rb
test/unit/lib/gitorious/authentication/ldap_authentication_test.rb