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