Files @ b232a36cc51f
Branch filter:

Location: kallithea/rhodecode/lib/dbmigrate/migrate/versioning/script/__init__.py - annotation

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
#!/usr/bin/env python
# -*- coding: utf-8 -*-

from rhodecode.lib.dbmigrate.migrate.versioning.script.base import BaseScript
from rhodecode.lib.dbmigrate.migrate.versioning.script.py import PythonScript
from rhodecode.lib.dbmigrate.migrate.versioning.script.sql import SqlScript