summaryrefslogtreecommitdiffstats
path: root/ipalib/frontend.py
diff options
context:
space:
mode:
Diffstat (limited to 'ipalib/frontend.py')
-rw-r--r--ipalib/frontend.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/ipalib/frontend.py b/ipalib/frontend.py
index 50e2dd3e..65b053e6 100644
--- a/ipalib/frontend.py
+++ b/ipalib/frontend.py
@@ -750,6 +750,7 @@ class Object(plugable.Plugin):
'params',
'primary_key',
'params_minus_pk',
+ 'get_dn',
))
backend = None
methods = None
@@ -790,6 +791,12 @@ class Object(plugable.Plugin):
if 'Backend' in self.api and self.backend_name in self.api.Backend:
self.backend = self.api.Backend[self.backend_name]
+ def get_dn(self, primary_key):
+ """
+ Construct an LDAP DN from a primary_key.
+ """
+ raise NotImplementedError('%s.get_dn()' % self.name)
+
def __get_attrs(self, name):
if name not in self.api:
return