Try to do it on the captive portal and see if it works. Look at the logs/packetfence.log to see what happens.
grep MAC-ADDRESS /usr/local/pf/logs/packetfence.log It will show why it did not match. Thanks, Ludovic Zammit [email protected] <mailto:[email protected]> :: +1.514.447.4918 (x145) :: www.inverse.ca <http://www.inverse.ca/> Inverse inc. :: Leaders behind SOGo (http://www.sogo.nu <http://www.sogo.nu/>) and PacketFence (http://packetfence.org <http://packetfence.org/>) > On Jul 6, 2020, at 2:50 PM, Giacinto Caretto <[email protected]> wrote: > > -sh-4.2$ more profiles.conf > [default] > logo=/common/logoENEA.png > redirecturl=http://www.enea.it <http://www.enea.it/> > locale=it_IT > dot1x_recompute_role_from_portal=0 > mac_auth_recompute_role_from_portal=0 > sources=DIPENDENTI-Test > access_registration_when_registered=enabled > self_service=default > network_logoff=enabled > network_logoff_popup=enabled > dot1x_unset_on_unmatch=0 > vlan_pool_technique=round_robbin > > > [registration_con_802.1x] > filter=connection_type:Ethernet-EAP > description=per chi usa il client 802.1x > autoregister=enabled > unreg_on_acct_stop=enabled > > > [CP_registration_BRI_VLAN11] > filter=connection_type:Ethernet-NoEAP,vlan:311 > description=Registrazione utenti Brindisi tramite Captive Portal > advanced_filter= > sources=DIPENDENTI-Test > > > > Inviato da Posta <https://go.microsoft.com/fwlink/?LinkId=550986> per Windows > 10 > > Da: Ludovic Zammit <mailto:[email protected]> > Inviato: lunedì 6 luglio 2020 19:21 > A: [email protected] > <mailto:[email protected]> > Cc: Giacinto Caretto <mailto:[email protected]> > Oggetto: Re: [PacketFence-users] Authentication Rules mismatch > > Hello Giacinto, > > Could you show your conf/profiles.conf please? > > Thanks, > > Ludovic Zammit > [email protected] <mailto:[email protected]> :: +1.514.447.4918 (x145) :: > www.inverse.ca <http://www.inverse.ca/> > Inverse inc. :: Leaders behind SOGo (http://www.sogo.nu > <http://www.sogo.nu/>) and PacketFence (http://packetfence.org > <http://packetfence.org/>) > > > > > > On Jul 6, 2020, at 9:16 AM, Giacinto Caretto via PacketFence-users > <[email protected] > <mailto:[email protected]>> wrote: > > I am running the following test to solve a problem but Authentication Rules > mismatch > > 2 users > giacinto.caretto > and > caretto.giacinto > both belonging to the > OU = OU-Dipendenti > > mac-auth by captive portal: > if login caretto.giacinto >> role = default and access duration 1 hour > if login giacinto.caretto >> role = default and access duration 3 hour > if login another user belonging to OU = UO-Dipendenti >> role = default and > access duration 12 hour > > i have created an Authentication Source “DIPENDENTI-Test” > [DIPENDENTI-Test] > cache_match=0 > read_timeout=10 > realms=default,eneait,null > basedn=OU=UO-Dipendenti,DC=XXX,DC=YY > monitor=0 > password=xxxxxxxxxxxx > shuffle=0 > searchattributes= > set_access_durations_action= > scope=sub > email_attribute=mail > usernameattribute=cn > connection_timeout=1 > binddn=XXXXXXXXXXX > encryption=ssl > description=Dipendenti - utenti ASIE dominio ENEAIT > port=XXXXX > host=XXXXXXXXXXX,YYYYYYYYYYYYYYYY > write_timeout=5 > type=AD > > [DIPENDENTI-Test rule asie_caretto.giacinto] > action0=set_role=default > condition0=cn,is,caretto.giacinto > status=enabled > match=any > class=authentication > action1=set_access_duration=1h > description=utente caretto,giacinto > > [DIPENDENTI-Test rule asie_giacinto.caretto] > action0=set_role=default > condition0=cn,is,giacinto.caretto > status=enabled > match=any > class=authentication > action1=set_access_duration=3h > description=utente giacinto.caretto > > [DIPENDENTI-Test rule CATCH-ALL] > action0=set_role=default > status=enabled > match=all > class=authentication > action1=set_access_duration=12h > description=utenti del dominio asie > > > > Authentication Rules mismatch: > the authentication process seems to remember the last examined user and > applies the same conditions to the next one > > these are some tests: > > for giacinto.caretto user … > > /usr/local/pf/bin/pftest authentication "giacinto.caretto" "password" > DIPENDENTI-Test > Testing authentication for "giacinto.caretto" > > Authenticating against 'DIPENDENTI-Test' in context 'admin' > Authentication SUCCEEDED against DIPENDENTI-Test (Authentication > successful.) > Matched against DIPENDENTI-Test for 'authentication' rule > asie_caretto.giacinto > set_role : default > set_access_duration : 1h > Did not match against DIPENDENTI-Test for 'administration' rules > > Authenticating against 'DIPENDENTI-Test' in context 'portal' > Authentication SUCCEEDED against DIPENDENTI-Test (Authentication > successful.) > Matched against DIPENDENTI-Test for 'authentication' rule > asie_caretto.giacinto > set_role : default > set_access_duration : 1h > Did not match against DIPENDENTI-Test for 'administration' rules > > For caretto.giacinto user … > > /usr/local/pf/bin/pftest authentication "caretto.giacinto" "giacinto2020" > DIPENDENTI-Test > Testing authentication for "caretto.giacinto" > > Authenticating against 'DIPENDENTI-Test' in context 'admin' > Authentication SUCCEEDED against DIPENDENTI-Test (Authentication > successful.) > Matched against DIPENDENTI-Test for 'authentication' rule > asie_caretto.giacinto > set_role : default > set_access_duration : 1h > Did not match against DIPENDENTI-Test for 'administration' rules > > Authenticating against 'DIPENDENTI-Test' in context 'portal' > Authentication SUCCEEDED against DIPENDENTI-Test (Authentication > successful.) > Matched against DIPENDENTI-Test for 'authentication' rule > asie_caretto.giacinto > set_role : default > set_access_duration : 1h > Did not match against DIPENDENTI-Test for 'administration' rules > > > > > what's wrong ? > Thank > GC > > > > Inviato da Posta <https://go.microsoft.com/fwlink/?LinkId=550986> per Windows > 10 > > > > <10D7AB09C9C7466097E8F9DED4616ECC.png> > > Questo messaggio e i suoi allegati sono indirizzati esclusivamente alle > persone indicate e la casella di posta elettron ica da cui è stata inviata è > da qualificarsi quale strumento aziendale. > La diffusione, copia o qualsiasi altra azione derivante dalla conoscenza di > queste informazioni sono rigorosamente viet ate (art. 616 c.p, D.Lgs. n. > 196/2003 s.m.i. e GDPR Regolamento - UE 2016/679). > Qualora abbiate ricevuto questo documento per errore siete cortesemente > pregati di darne immediata comunicazione al mit tente e di provvedere alla > sua distruzione. Grazie. > This e-mail and any attachments is confidential and may contain privileged > information intended for the addressee(s) on ly. > Dissemination, copying, printing or use by anybody else is unauthorised (art. > 616 c.p, D.Lgs. n. 196/2003 and subsequen t amendments and GDPR UE 2016/679). > If you are not the intended recipient, please delete this message and any > attachments and advise the sender by return e -mail. Thanks. > <10D7AB09C9C7466097E8F9DED4616ECC.png> > _______________________________________________ > PacketFence-users mailing list > [email protected] > <mailto:[email protected]> > https://lists.sourceforge.net/lists/listinfo/packetfence-users > <https://lists.sourceforge.net/lists/listinfo/packetfence-users> > > > > > > Questo messaggio e i suoi allegati sono indirizzati esclusivamente alle > persone indicate e la casella di posta elettron ica da cui è stata inviata è > da qualificarsi quale strumento aziendale. > > La diffusione, copia o qualsiasi altra azione derivante dalla conoscenza di > queste informazioni sono rigorosamente viet ate (art. 616 c.p, D.Lgs. n. > 196/2003 s.m.i. e GDPR Regolamento - UE 2016/679). > > Qualora abbiate ricevuto questo documento per errore siete cortesemente > pregati di darne immediata comunicazione al mit tente e di provvedere alla > sua distruzione. Grazie. > > This e-mail and any attachments is confidential and may contain privileged > information intended for the addressee(s) on ly. > > Dissemination, copying, printing or use by anybody else is unauthorised (art. > 616 c.p, D.Lgs. n. 196/2003 and subsequen t amendments and GDPR UE 2016/679). > > If you are not the intended recipient, please delete this message and any > attachments and advise the sender by return e -mail. Thanks. >
_______________________________________________ PacketFence-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/packetfence-users
