mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Removed the depreciated Context and LazyContext classes
This commit is contained in:
committed by
Rob Crittenden
parent
f7375bb609
commit
0cfb0e191a
@@ -25,24 +25,13 @@ This wraps the python-ldap bindings.
|
||||
"""
|
||||
|
||||
import ldap as _ldap
|
||||
from ipalib import api, Context
|
||||
from ipalib import api
|
||||
from ipalib import errors
|
||||
from ipalib.crud import CrudBackend
|
||||
from ipaserver import servercore
|
||||
from ipaserver import ipaldap
|
||||
|
||||
|
||||
class conn(Context):
|
||||
"""
|
||||
Thread-local LDAP connection.
|
||||
"""
|
||||
|
||||
def get_value(self):
|
||||
return 'it worked'
|
||||
|
||||
api.register(conn)
|
||||
|
||||
|
||||
class ldap(CrudBackend):
|
||||
"""
|
||||
LDAP backend plugin.
|
||||
|
||||
Reference in New Issue
Block a user