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]> 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
>  
> 
> 
> 
> 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] 
> <mailto:[email protected]>
> https://lists.sourceforge.net/lists/listinfo/packetfence-users 
> <https://lists.sourceforge.net/lists/listinfo/packetfence-users>
_______________________________________________
PacketFence-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/packetfence-users

Reply via email to