Add new parameter type IA5Str and use this to enforce the right charset.

ticket 496
This commit is contained in:
Rob Crittenden
2010-12-06 15:09:03 -05:00
parent 78786a6995
commit 6e2dd0fa5b
8 changed files with 80 additions and 20 deletions

View File

@@ -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: