summaryrefslogtreecommitdiffstats
path: root/ipalib
diff options
context:
space:
mode:
authorRob Crittenden <rcritten@redhat.com>2009-02-04 10:53:34 -0500
committerRob Crittenden <rcritten@redhat.com>2009-02-06 15:04:42 -0500
commit6b34f0772026ede7788f9d2ec7989912ba17216f (patch)
tree7e31c6b5244805c529f5475c33ee185c982f9396 /ipalib
parentbaef3003bc0d43368a0f58f9281fad32a237d5db (diff)
downloadfreeipa-6b34f0772026ede7788f9d2ec7989912ba17216f.tar.gz
freeipa-6b34f0772026ede7788f9d2ec7989912ba17216f.tar.xz
freeipa-6b34f0772026ede7788f9d2ec7989912ba17216f.zip
Remove some duplicated code that was moved to ipaserver and use it Remove some unused files
Diffstat (limited to 'ipalib')
-rw-r--r--ipalib/util.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/ipalib/util.py b/ipalib/util.py
index d9221605..9c995825 100644
--- a/ipalib/util.py
+++ b/ipalib/util.py
@@ -150,3 +150,8 @@ def make_repr(name, *args, **kw):
args = [repr(a) for a in args]
kw = ['%s=%r' % (k, kw[k]) for k in sorted(kw)]
return '%s(%s)' % (name, ', '.join(args + kw))
+
+def realm_to_suffix(realm_name):
+ s = realm_name.split(".")
+ terms = ["dc=" + x.lower() for x in s]
+ return ",".join(terms)