Univention Bugzilla – Attachment 6755 Details for Bug 37584
use the 'matched' attribute of python-ldap exceptions