From 1400c85188b63d44c44fddd1e9bf68b0b7b868ba Mon Sep 17 00:00:00 2001 From: Rob Crittenden Date: Thu, 4 Mar 2010 16:20:42 -0500 Subject: Catch modifications with no updates and raise an error 569848 --- ipalib/plugins/baseldap.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'ipalib/plugins/baseldap.py') 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) -- cgit