More work on making user-add use Backend.ldap

This commit is contained in:
Jason Gerard DeRose
2008-10-14 02:23:56 -06:00
parent 1480224724
commit 9788800aa4
2 changed files with 29 additions and 20 deletions

View File

@@ -25,10 +25,10 @@ This wraps the python-ldap bindings.
import ldap as _ldap
from ipalib import api
from ipalib.backend import Backend
from ipalib.crud import CrudBackend
class ldap(Backend):
class ldap(CrudBackend):
"""
LDAP backend plugin.
"""
@@ -45,4 +45,7 @@ class ldap(Backend):
self.api.env.basedn,
)
def create(self, **kw):
return kw
api.register(ldap)