Hi there
I'm using Dancer2::Plugin::Auth::Extensible::Provider::LDAP to authenticate users agains an MS AD. I'm able to do the authentication part, but got stuck on authorisation: I cannot seem to be able to get the role part to work. I.e. getting the groups a user is a member of.
According to the docs there are 2 settings:
role_attribute: 'cn'
role_filter: '(objectClass=group)'
Using the DSA tool provided by MS I found (assumed) that the role_filter should be ok. What I'm not sure about is the role_attribute. Again according to DSA the group name is in a field named "cn", which also is the default for the role_attribute.
But with these setting I don't get any roles. I also tried "name" and "MemberOf" as role_attribute. But this does not woek either. I'm at a loss
Did any of you get this to work? And how?
Regard... Peter
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.