Some user attributes not showing up in django admin -
in custom authentication backend extract username, email, first , last name ldap response , try stick them newly generated user object if user doesn't yet exist:
user = user(username=username, email=result[0][1].get('mail')[0], first_name=result[0][1].get('givenname')[0], last_name=result[0][1].get('sn')[0]) user.save()
and variant tried:
user = user.objects.create_user(username, result[0][1].get('mail')[0]) user.first_name = result[0][1].get('givenname')[0] user.last_name = result[0][1].get('sn')[0] user.save()
while username , email show in admin after user's initial successful authentication attempt can't first , last name display. logging values ldap response shows these exist.
any idea what's going wrong here?
ok, indeed own stupidity: should not have restarted frontend webserver uwsgi! add defense these baby steps uwsgi...
Comments
Post a Comment