From 6e2dd0fa5b79849c3dbd5f9b855e43b634e2a4b3 Mon Sep 17 00:00:00 2001 From: Rob Crittenden Date: Mon, 6 Dec 2010 15:09:03 -0500 Subject: Add new parameter type IA5Str and use this to enforce the right charset. ticket 496 --- ipaserver/plugins/ldap2.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ipaserver/plugins') diff --git a/ipaserver/plugins/ldap2.py b/ipaserver/plugins/ldap2.py index 39606008..83a77069 100644 --- a/ipaserver/plugins/ldap2.py +++ b/ipaserver/plugins/ldap2.py @@ -96,6 +96,8 @@ def _handle_errors(e, **kw): # it indicates the previous attribute was removed by another # update, making the oldentry stale. raise errors.MidairCollision() + except _ldap.INVALID_SYNTAX: + raise errors.InvalidSyntax(attr=info) except _ldap.OBJECT_CLASS_VIOLATION: raise errors.ObjectclassViolation(info=info) except _ldap.ADMINLIMIT_EXCEEDED: -- cgit