Files @ b232a36cc51f
Branch filter:

Location: kallithea/rhodecode/tests/functional/test_admin_ldap_settings.py

Thayne Harbaugh
Improve LDAP authentication

* Adds an LDAP filter for locating the LDAP object
* Adds a search scope policy when using the Base DN
* Adds option required certificate policy when using LDAPS
* Adds attribute mapping for username, firstname, lastname, email
* Initializes rhodecode user using LDAP info (no longer uses "@ldap")
* Remembers the user object (DN) in the user table
* Updates admin interfaces
* Authenticates against actual user objects in LDAP
* Possibly other things.

Really, this should be extended to a list of LDAP configurations, but this is a good start.
1
2
3
4
5
6
7
from rhodecode.tests import *

class TestLdapSettingsController(TestController):

    def test_index(self):
        response = self.app.get(url(controller='admin/ldap_settings', action='index'))
        # Test response...