diff options
author | Rob Crittenden <rcritten@redhat.com> | 2010-03-04 16:20:42 -0500 |
---|---|---|
committer | Jason Gerard DeRose <jderose@redhat.com> | 2010-03-17 23:52:15 -0600 |
commit | 1400c85188b63d44c44fddd1e9bf68b0b7b868ba (patch) | |
tree | 5d3175534fa6b057d4c3fec62f02d1b2c22577b9 /ipalib/plugins/baseldap.py | |
parent | f0d51b65f18d73e9b97e22e9fa4146468fed3d16 (diff) | |
download | freeipa.git-1400c85188b63d44c44fddd1e9bf68b0b7b868ba.tar.gz freeipa.git-1400c85188b63d44c44fddd1e9bf68b0b7b868ba.tar.xz freeipa.git-1400c85188b63d44c44fddd1e9bf68b0b7b868ba.zip |
Catch modifications with no updates and raise an error
569848
Diffstat (limited to 'ipalib/plugins/baseldap.py')
-rw-r--r-- | ipalib/plugins/baseldap.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ipalib/plugins/baseldap.py b/ipalib/plugins/baseldap.py index ca35000e..6e601253 100644 --- a/ipalib/plugins/baseldap.py +++ b/ipalib/plugins/baseldap.py @@ -270,6 +270,9 @@ class LDAPUpdate(LDAPQuery, crud.Update): def execute(self, *keys, **options): ldap = self.obj.backend + if len(options) == 2: # 'all' and 'raw' are always sent + raise errors.EmptyModlist() + dn = self.obj.get_dn(*keys, **options) entry_attrs = self.args_options_2_entry(**options) |