OK, thanks. I think I'be got it working now:
I redesigned my test AD a bit I found out that I needed to add roleAttribute in AuthorizationModule or else the result always would be null.
I will still work a littlebit with the options (required,optional etc) to tune the authorization.
Thanks again for all your help.
org.ldaptive.jaas.LdapRoleAuthorizationModule optional
useFirstPass="true"
ldapUrl="ldap://<AD>:389"
baseDn="OU=Security Groups,OU=Firmanavn,DC=LAB,DC=LOCAL"
bindDn="CN=LDAP SEARCH,OU=Service Accounts,OU=Firmanavn,DC=lab,DC=local"
bindCredential="<password>"
roleFilter="(&(member={dn})(cn=Customeradmins))"
defaultRole="CustomerAdminGroup"
roleAttribute="cn"
noResultsIsError="true"
;
org.ldaptive.jaas.LdapRoleAuthorizationModule optional
useFirstPass="true"
ldapUrl="ldap://<AD>:389"
baseDn="OU=Security Groups,OU=Firmanavn,DC=LAB,DC=LOCAL"
bindDn="CN=LDAP SEARCH,OU=Service Accounts,OU=Firmanavn,DC=lab,DC=local"
bindCredential="<password>"
roleFilter="(&(member={dn})(cn=Superadmins))"
defaultRole="SuperAdminGroup"
roleAttribute="cn"
noResultsIsError="true"
;