summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--askbot/conf/ldap.py1
-rw-r--r--askbot/deps/django_authopenid/views.py3
2 files changed, 2 insertions, 2 deletions
diff --git a/askbot/conf/ldap.py b/askbot/conf/ldap.py
index ae916313..30fbcdec 100644
--- a/askbot/conf/ldap.py
+++ b/askbot/conf/ldap.py
@@ -66,6 +66,7 @@ settings.register(
LDAP_SETTINGS,
'LDAP_BASE_DN',
description=_('Base DN (distinguished name)'),
+ default = '',
help_text = _(
'Usually base DN mirrors domain name of your organization, '
'e.g. "dn=example,dn=com" when your site url is "example.com".'
diff --git a/askbot/deps/django_authopenid/views.py b/askbot/deps/django_authopenid/views.py
index 812fed07..efdb3a16 100644
--- a/askbot/deps/django_authopenid/views.py
+++ b/askbot/deps/django_authopenid/views.py
@@ -316,15 +316,14 @@ def signin(request):
#todo: since django 1.2 there is .exists()
user_is_old = (User.objects.filter(username = username).count() > 0)
-
user = authenticate(
username=username,
password=password,
method = 'ldap'
)
if user is not None:
- login(request, user)
if user_is_old:
+ login(request, user)
return HttpResponseRedirect(next_url)
else:
return finalize_generic_signin(