Provide more variables to test for in allow attribute and mapping
testing.
Adds givenname (Test User), surname (the username) and
email (username@example.com).
https://fedorahosted.org/ipsilon/ticket/25
Signed-off-by: Rob Crittenden <rcritten@redhat.com>
Reviewed-by: Simo Sorce <simo@redhat.com>
if username and password:
if password == 'ipsilon':
cherrypy.log("User %s successfully authenticated." % username)
- testdata = {'fullname': 'Test User %s' % username}
+ testdata = {
+ 'givenname': 'Test User',
+ 'surname': username,
+ 'fullname': 'Test User %s' % username,
+ 'email': '%s@example.com' % username
+ }
return self.lm.auth_successful(self.trans,
username, 'password', testdata)
else: