Issue #1842630 by lambic. Patch by claar to fix issue with mapping on first attribute of group dn in authorization