summaryrefslogtreecommitdiffstats
path: root/ipa_server/plugins
diff options
context:
space:
mode:
authorJason Gerard DeRose <jderose@redhat.com>2008-10-22 20:30:40 -0600
committerJason Gerard DeRose <jderose@redhat.com>2008-10-22 20:30:40 -0600
commit98da855176cdd32021a850bb55d91cd53d77e1f5 (patch)
treeb339cef67bb1dbbc7df5d453d73e3b537753981f /ipa_server/plugins
parent4da1f096751f000efcd7eb5ca3b7d719f3ce5581 (diff)
parent1daf319a19f902d7c7bef37af065cac81be9189e (diff)
downloadfreeipa.git-98da855176cdd32021a850bb55d91cd53d77e1f5.tar.gz
freeipa.git-98da855176cdd32021a850bb55d91cd53d77e1f5.tar.xz
freeipa.git-98da855176cdd32021a850bb55d91cd53d77e1f5.zip
Merge branch 'master' of git://git.engineering.redhat.com/users/rcritten/freeipa2
Diffstat (limited to 'ipa_server/plugins')
-rw-r--r--ipa_server/plugins/b_ldap.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/ipa_server/plugins/b_ldap.py b/ipa_server/plugins/b_ldap.py
index a07e8e71..2e9c9e9f 100644
--- a/ipa_server/plugins/b_ldap.py
+++ b/ipa_server/plugins/b_ldap.py
@@ -70,6 +70,16 @@ class ldap(CrudBackend):
self.api.env.basedn,
)
+ def make_host_dn(self, hostname):
+ """
+ Construct host dn from hostname
+ """
+ return 'cn=%s,%s,%s' % (
+ self.dn.escape_dn_chars(hostname),
+ self.api.env.container_host,
+ self.api.env.basedn,
+ )
+
def get_object_type(self, attribute):
"""
Based on attribute, make an educated guess as to the type of