summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Nagy <mnagy@redhat.com>2008-07-09 20:18:55 +0200
committerSimo Sorce <ssorce@redhat.com>2008-07-09 16:54:19 -0400
commitb95c05f5c6a9977e6bb02d091a601efb3bcf360e (patch)
tree8255ce98113da9620012fc340c1fbbde1b2677c8
parent66aa3581fc2c8bf332d2e27e8889095f91524ea2 (diff)
downloadfreeipa-b95c05f5c6a9977e6bb02d091a601efb3bcf360e.tar.gz
freeipa-b95c05f5c6a9977e6bb02d091a601efb3bcf360e.tar.xz
freeipa-b95c05f5c6a9977e6bb02d091a601efb3bcf360e.zip
Fix attribute parsing so that you can add a DN or an attribute with a '=' character in it. Fixes #454630
-rw-r--r--ipa-admintools/ipa-addgroup4
-rw-r--r--ipa-admintools/ipa-adduser4
-rw-r--r--ipa-admintools/ipa-modgroup4
-rw-r--r--ipa-admintools/ipa-moduser4
4 files changed, 8 insertions, 8 deletions
diff --git a/ipa-admintools/ipa-addgroup b/ipa-admintools/ipa-addgroup
index 89f763006..caf4e93dc 100644
--- a/ipa-admintools/ipa-addgroup
+++ b/ipa-admintools/ipa-addgroup
@@ -118,7 +118,7 @@ def main():
if options.setattr:
for s in options.setattr:
- s = s.split('=')
+ s = s.split('=', 1)
if len(s) != 2:
set_add_usage("set")
sys.exit(1)
@@ -127,7 +127,7 @@ def main():
if options.addattr:
for a in options.addattr:
- a = a.split('=')
+ a = a.split('=', 1)
if len(a) != 2:
set_add_usage("add")
sys.exit(1)
diff --git a/ipa-admintools/ipa-adduser b/ipa-admintools/ipa-adduser
index 09f5c758b..2c32d1e58 100644
--- a/ipa-admintools/ipa-adduser
+++ b/ipa-admintools/ipa-adduser
@@ -234,7 +234,7 @@ def main():
if options.setattr:
for s in options.setattr:
- s = s.split('=')
+ s = s.split('=', 1)
if len(s) != 2:
set_add_usage("set")
sys.exit(1)
@@ -243,7 +243,7 @@ def main():
if options.addattr:
for a in options.addattr:
- a = a.split('=')
+ a = a.split('=', 1)
if len(a) != 2:
set_add_usage("add")
sys.exit(1)
diff --git a/ipa-admintools/ipa-modgroup b/ipa-admintools/ipa-modgroup
index 327e80b36..8ca8b1f94 100644
--- a/ipa-admintools/ipa-modgroup
+++ b/ipa-admintools/ipa-modgroup
@@ -180,7 +180,7 @@ def main():
if options.setattr:
for s in options.setattr:
- s = s.split('=')
+ s = s.split('=', 1)
if len(s) != 2:
set_add_usage("set")
sys.exit(1)
@@ -189,7 +189,7 @@ def main():
if options.addattr:
for a in options.addattr:
- a = a.split('=')
+ a = a.split('=', 1)
if len(a) != 2:
set_add_usage("add")
sys.exit(1)
diff --git a/ipa-admintools/ipa-moduser b/ipa-admintools/ipa-moduser
index b77fede9a..22f231893 100644
--- a/ipa-admintools/ipa-moduser
+++ b/ipa-admintools/ipa-moduser
@@ -236,7 +236,7 @@ def main():
if options.setattr:
for s in options.setattr:
- s = s.split('=')
+ s = s.split('=', 1)
if len(s) != 2:
set_add_usage("set")
sys.exit(1)
@@ -245,7 +245,7 @@ def main():
if options.addattr:
for a in options.addattr:
- a = a.split('=')
+ a = a.split('=', 1)
if len(a) != 2:
set_add_usage("add")
sys.exit(1)