summaryrefslogtreecommitdiffstats
path: root/ipalib/plugins/sudocmd.py
diff options
context:
space:
mode:
authorPetr Viktorin <pviktori@redhat.com>2012-03-08 07:55:00 -0500
committerMartin Kosek <mkosek@redhat.com>2013-02-20 17:34:51 +0100
commitd66898405b2a38244723555c5d9e1b8510919baa (patch)
treec714351c3bb2a6c9aab95c1410e45c95f2929b9a /ipalib/plugins/sudocmd.py
parent1821fa0aabf12bc5d1de226e6937a7414680da5b (diff)
downloadfreeipa-d66898405b2a38244723555c5d9e1b8510919baa.tar.gz
freeipa-d66898405b2a38244723555c5d9e1b8510919baa.tar.xz
freeipa-d66898405b2a38244723555c5d9e1b8510919baa.zip
Use ipauniqueid for the RDN of sudo commands
Since sudo commands are case-sensitive, we can't use 'sudocmd' as the RDN. Tests for case-sensitive behavior included https://fedorahosted.org/freeipa/ticket/2482
Diffstat (limited to 'ipalib/plugins/sudocmd.py')
-rw-r--r--ipalib/plugins/sudocmd.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/ipalib/plugins/sudocmd.py b/ipalib/plugins/sudocmd.py
index 42068edea..f27a58cad 100644
--- a/ipalib/plugins/sudocmd.py
+++ b/ipalib/plugins/sudocmd.py
@@ -62,6 +62,7 @@ class sudocmd(LDAPObject):
'memberof': ['sudocmdgroup'],
}
uuid_attribute = 'ipauniqueid'
+ rdn_attribute = 'ipauniqueid'
label = _('Sudo Commands')
label_singular = _('Sudo Command')