For role_mapping.yml, you need use the full DN, the configuration you currently have misses the CN=xxx part of the full DN. That is why it did not pick and fell through to the native mapping.
Based on the logs, the authentication was successful because the roles are mapped and I am not seeing any errors. So there is no login issue anymore?
If the problem persists, could you please share the full logs or at least enough logs to cover the whole faild authentication attempt to help better understand of the context. Also, please use forum formatting features for pasting logs so they are easier to read. For logs, you can put them inside a pair of triple backquotes:
```
log text here ...
```
Thanks!