Hello Nicholas
I removed all the conditions and It worked. while before It was without
conditions but it didnt work. I have made a copy of the authentication.conf
file to aid in posterity.

On Wed, Feb 13, 2019 at 1:02 PM Nicolas Quiniou-Briand via
PacketFence-users <packetfence-users@lists.sourceforge.net> wrote:

>
> Hello,
>
> pftest show you that you didn't match any rules:
>
> > Authenticating against 'htbAD' in context 'admin'
> >   Authentication SUCCEEDED against htbAD (Authentication successful.)
> >   Did not match against htbAD for 'authentication' rules
> >   Did not match against htbAD for 'administration' rules
> >
> > Authenticating against 'htbAD' in context 'portal'
> >   Authentication SUCCEEDED against htbAD (Authentication successful.)
> >   Did not match against htbAD for 'authentication' rules
> >   Did not match against htbAD for 'administration' rules
>
> Consequently, your device didn't get any role.
>
> You need to adjust your authentication rule:
> ```
> [htbAD rule myRule]
> action0=set_role=Staff
> condition0=memberOf,equals,Staff
> match=any
> class=authentication
> action1=set_access_duration=1h
> description=Rule
> ```
>
> In condition0, Staff should be a LDAP DN.
>
> --
> Nicolas Quiniou-Briand
> n...@inverse.ca  ::  +1.514.447.4918 *140  ::  https://inverse.ca
> Inverse inc. :: Leaders behind SOGo (https://sogo.nu), PacketFence
> (https://packetfence.org) and Fingerbank (http://fingerbank.org)
>
>
> _______________________________________________
> PacketFence-users mailing list
> PacketFence-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/packetfence-users
>

Attachment: authentication.conf
Description: Binary data

_______________________________________________
PacketFence-users mailing list
PacketFence-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/packetfence-users

Reply via email to