diff options
-rw-r--r-- | askbot/deps/django_authopenid/ldap_auth.py | 7 | ||||
-rw-r--r-- | askbot/doc/source/optional-modules.rst | 6 |
2 files changed, 11 insertions, 2 deletions
diff --git a/askbot/deps/django_authopenid/ldap_auth.py b/askbot/deps/django_authopenid/ldap_auth.py index 536d11f3..109bfad7 100644 --- a/askbot/deps/django_authopenid/ldap_auth.py +++ b/askbot/deps/django_authopenid/ldap_auth.py @@ -9,6 +9,8 @@ from askbot.deps.django_authopenid.models import UserAssociation LOG = logging.getLogger(__name__) def split_name(full_name, name_format): + """splits full name into first and last, + according to the order given in the name_format parameter""" bits = full_name.strip().split() if len(bits) == 1: bits.push('') @@ -25,7 +27,10 @@ def split_name(full_name, name_format): def ldap_authenticate(username, password): """ - Authenticate using ldap + Authenticate using ldap. + LDAP parameter setup is described in + askbot/doc/source/optional-modules.rst + See section about LDAP. returns a dict with keys: diff --git a/askbot/doc/source/optional-modules.rst b/askbot/doc/source/optional-modules.rst index 09a66d55..5db78f70 100644 --- a/askbot/doc/source/optional-modules.rst +++ b/askbot/doc/source/optional-modules.rst @@ -96,7 +96,11 @@ section "LDAP settings" The parameters are (note that some have pre-set defaults that might work for you):: -* enable/disable LDAP for password login +* in Login Provider Settings select "enable local login" + - this makes login/password form available +* enable/disable LDAP for password login - + must check that, to connect the login/password form to LDAP flow +* create accounts automatically or not (``LDAP_AUTOCREATE_USERS``) * protocol version (``LDAP_PROTOCOL_VERSION``) (version 2 is insecure and deprecated) * ldap url (``LDAP_URL``) * base distinguished name, 'dn' in LDAP parlance (``LDAP_BASEDN``) |