I've tryed to configure PEER for Remote Authentication and it doesn't work without that modification. This is the debug message that I obtain without the modification: Environment: Request Method: GET Request URL: https://xxxx.it/peer/accounts/login/ Django Version: 1.3.1 Python Version: 2.6.6 Installed Applications: ['django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.messages', 'django.contrib.staticfiles', 'django.contrib.admin', 'registration', 'south', 'djangosaml2', 'peer.account', 'peer.domain', 'peer.entity', 'peer.portal'] Installed Middleware: ('django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware') Template error: In template /var/www/peer/lib/python2.6/site-packages/peer-0.8.0-py2.6.egg/peer/templates/registration/login.html, error at line 38 Caught AttributeError while rendering: 'NoneType' object has no attribute 'organization_display_name' 28 : {% if SAML_ENABLED %} 29 : {% load idplist mailtoadmins %} 30 : 31 :