Hi Helen,

sorry for the late reply.

Did you defines any rules in the RSPEmployee source ?

Also can you post your authentication.conf file (without sensible info)

Regards

Fabrice



Le 2017-03-24 à 05:59, Helen Chen a écrit :

Hi Fabrice,

Just an update.

WLC: I enabled MAC filter and I did change the NAC to ISE NAC.

PF: I changed the radius secret to PF default value, of course I did the change on WLC side accordingly as well.

     I set the switch rule  from production to registration.

Then I get the captive portal up. However, I still get the You do not have permission to register a device with this username. PF.log please see below:

Mar 24 05:50:28 httpd.portal(2435) INFO: [mac:unknown] Instantiate profile RSP (pf::Portal::ProfileFactory::_from_profile)

Mar 24 05:50:28 httpd.portal(2435) INFO: [mac:7c:01:91:25:f9:eb] Instantiate profile RSP (pf::Portal::ProfileFactory::_from_profile)

Mar 24 05:50:28 httpd.portal(2435) INFO: [mac:7c:01:91:25:f9:eb] Instantiate profile RSP (pf::Portal::ProfileFactory::_from_profile)

Mar 24 05:50:29 httpd.portal(2435) INFO: [mac:7c:01:91:25:f9:eb] Authenticating user using sources : RSPEmployee,AdminIT (captiveportal::PacketFence::DynamicRouting::Module::Authentication::Login::authenticate)

Mar 24 05:50:30 httpd.portal(2435) INFO: [mac:7c:01:91:25:f9:eb] [RSPEmployee] Authentication successful for helen_chen (pf::Authentication::Source::LDAPSource::authenticate)

Mar 24 05:50:30 httpd.portal(2435) INFO: [mac:7c:01:91:25:f9:eb] Authentication successful for 'helen_chen' in source RSPEmployee (AD) (pf::authentication::authenticate)

Mar 24 05:50:30 httpd.portal(2435) INFO: [mac:7c:01:91:25:f9:eb] User helen_chen has authenticated on the portal. (Class::MOP::Class:::after)

Mar 24 05:50:30 httpd.portal(2435) INFO: [mac:7c:01:91:25:f9:eb] Found source RSPEmployee in session. (Class::MOP::Class:::around)

Mar 24 05:50:30 httpd.portal(2435) INFO: [mac:7c:01:91:25:f9:eb] Found source RSPEmployee in session. (Class::MOP::Class:::around)

Mar 24 05:50:30 httpd.portal(2435) INFO: [mac:7c:01:91:25:f9:eb] Successfully authenticated helen_chen (captiveportal::PacketFence::DynamicRouting::Module::Authentication::Login::authenticate)

Mar 24 05:50:30 httpd.portal(2435) INFO: [mac:7c:01:91:25:f9:eb] Found source RSPEmployee in session. (Class::MOP::Class:::around)

Mar 24 05:50:30 httpd.portal(2435) INFO: [mac:7c:01:91:25:f9:eb] Found source RSPEmployee in session. (Class::MOP::Class:::around)

Mar 24 05:50:31 httpd.portal(2435) INFO: [mac:7c:01:91:25:f9:eb] Found source RSPEmployee in session. (Class::MOP::Class:::around)

Mar 24 05:50:31 httpd.portal(2435) INFO: [mac:7c:01:91:25:f9:eb] User helen_chen has authenticated on the portal. (Class::MOP::Class:::after)

Mar 24 05:50:31 httpd.portal(2435) WARN: [mac:7c:01:91:25:f9:eb] Calling match with empty/invalid rule class. Defaulting to 'authentication' (pf::authentication::match)

Mar 24 05:50:31 httpd.portal(2435) INFO: [mac:7c:01:91:25:f9:eb] Using sources RSPEmployee for matching (pf::authentication::match)

Mar 24 05:50:31 httpd.portal(2435) INFO: [mac:7c:01:91:25:f9:eb] Found source RSPEmployee in session. (Class::MOP::Class:::around)

Mar 24 05:50:31 httpd.portal(2435) INFO: [mac:7c:01:91:25:f9:eb] User helen_chen has authenticated on the portal. (Class::MOP::Class:::after)

Mar 24 05:50:31 httpd.portal(2435) WARN: [mac:7c:01:91:25:f9:eb] Calling match with empty/invalid rule class. Defaulting to 'authentication' (pf::authentication::match)

Mar 24 05:50:31 httpd.portal(2435) INFO: [mac:7c:01:91:25:f9:eb] Using sources RSPEmployee for matching (pf::authentication::match)

Mar 24 05:50:31 httpd.portal(2435) WARN: [mac:7c:01:91:25:f9:eb] Use of uninitialized value in concatenation (.) or string at /usr/local/pf/html/captive-portal/lib/captiveportal/PacketFence/DynamicRouting/Module/Authentication.pm line 139.

(captiveportal::PacketFence::DynamicRouting::Module::Authentication::execute_actions)

Mar 24 05:50:31 httpd.portal(2435) WARN: [mac:7c:01:91:25:f9:eb] Use of uninitialized value in concatenation (.) or string at /usr/local/pf/html/captive-portal/lib/captiveportal/PacketFence/DynamicRouting/Module/Authentication.pm line 139.

(captiveportal::PacketFence::DynamicRouting::Module::Authentication::execute_actions)

Mar 24 05:50:31 httpd.portal(2435) WARN: [mac:7c:01:91:25:f9:eb] Cannot find unregdate () or role() for user. (captiveportal::PacketFence::DynamicRouting::Module::Authentication::execute_actions)

Mar 24 05:50:31 httpd.portal(2435) WARN: [mac:7c:01:91:25:f9:eb] Execute actions of module default_policy+default_registration_policy+default_login_policy did not succeed. (captiveportal::PacketFence::DynamicRouting::Module::done)

Mar 24 05:50:34 httpd.portal(2437) INFO: [mac:unknown] Instantiate profile RSP (pf::Portal::ProfileFactory::_from_profile)

Mar 24 05:50:34 httpd.portal(2437) INFO: [mac:7c:01:91:25:f9:eb] Instantiate profile RSP (pf::Portal::ProfileFactory::_from_profile)

Mar 24 05:50:34 httpd.portal(2437) INFO: [mac:7c:01:91:25:f9:eb] Instantiate profile RSP (pf::Portal::ProfileFactory::_from_profile)

If I don’t keep the mode production, then the WLC will shown the client status as “WEBAUTH_REQ”, and I got the captive.apple.com page pop up automatically but without anything showing and then it will display some kind of error.

Would you please shed some lights what I need to check next?

Wish you a happy weekend. Thank you so much for the help.

 ---

**

*Helen *

*From:*Helen Chen [mailto:[email protected]]
*Sent:* Wednesday, March 22, 2017 3:38 PM
*To:* [email protected]
*Subject:* Re: [PacketFence-users] help with you do not have permission to register a device with this username

Hi Fabrice,

I’d like to share more information with you.

I tried to add one local MAC filter on WLC side and then I’m able to get the ip address and have captive portal shown up. So, which means the the controller mac filter function should be fine. Can you shed some lights on if there’s anything I can check on PF MAC authen?

Thank you for your help.

 ---

**

*Helen *

*From:*Helen Chen
*Sent:* Wednesday, March 22, 2017 10:25 AM
*To:* [email protected] <mailto:[email protected]> *Subject:* RE: [PacketFence-users] help with you do not have permission to register a device with this username

Hi Fabrice,

Sorry, just found out all your questions. Please see my answers below.

Are you using flexconnect in your setup ? if it's the case then you have to define the acl as a flex connect acl. – We didn’t use flexconnect on our current test AP.

Also can you take a capture of the advance tab off your ssid ?

From the vlan 51 are you able to reach the portal ip ? – I put the VLAN 51 gateway on our layer 3 switch (172.17.0.1). While my PF management /portal IP is in VLAN 254, which is our production VLAN. I’m able to ping portal IP.

Why don't you have a dhcp server defined in the interface guest ? – I use the ip-helper on the layer 3 switch to point the DHCP to 172.17.254.254(PF registration interface). Do I still need to do this?

Do you have another choice in Nac State like radius NAC ? – SNMP NAC\ISE NAC\None

What happen if you remove the radius config for this ssid and try to connect – Do you mean I disable the AAA Server and try? I can try that and get back to you. But I did try to disable MAC filter, then I’m able to get the IP address and captive portal redirection.

 ---

**

*Helen Chen*

*From:*Durand fabrice [mailto:[email protected]]
*Sent:* Wednesday, March 22, 2017 9:35 AM
*To:* [email protected] <mailto:[email protected]> *Subject:* Re: [PacketFence-users] help with you do not have permission to register a device with this username

Hello Helen,

i ask you some questions multiples times about your issue but you never answered, so first answer the questions.

Also you need mac filter.

Fabrice

Le 2017-03-21 à 04:34, Helen Chen a écrit :

    Hi,

    I disabled mac filter on WLC2500 and finally have my endpoint
    gained ip address from PF and redirected to the registration page.
    Can we do user authentication? I added AD in the source. However,
    it shown “You do not have permission to register a device with
    this username” after I input my domain credentials. Please see the
    pf.log , profile. Conf and authentication.conf below.

    *PF Log:*

    Mar 21 03:54:53 httpd.portal(3466) INFO: [mac:unknown] Instantiate
    profile RSP (pf::Portal::ProfileFactory::_from_profile)

    Mar 21 03:54:53 httpd.portal(3466) INFO: [mac:7c:01:91:25:f9:eb]
    Instantiate profile RSP (pf::Portal::ProfileFactory::_from_profile)

    Mar 21 03:54:53 httpd.portal(3466) INFO: [mac:7c:01:91:25:f9:eb]
    Instantiate profile RSP (pf::Portal::ProfileFactory::_from_profile)

    Mar 21 03:54:53 httpd.portal(3466) INFO: [mac:7c:01:91:25:f9:eb]
    Authenticating user using sources : RSPEmployee,AdminIT
    
(captiveportal::PacketFence::DynamicRouting::Module::Authentication::Login::authenticate)

    Mar 21 03:54:53 httpd.portal(3466) INFO: [mac:7c:01:91:25:f9:eb]
    [RSPEmployee] Authentication successful for helen_chen
    (pf::Authentication::Source::LDAPSource::authenticate)

    Mar 21 03:54:53 httpd.portal(3466) INFO: [mac:7c:01:91:25:f9:eb]
    Authentication successful for 'helen_chen' in source RSPEmployee
    (AD) (pf::authentication::authenticate)

    Mar 21 03:54:53 httpd.portal(3466) INFO: [mac:7c:01:91:25:f9:eb]
    User helen_chen has authenticated on the portal.
    (Class::MOP::Class:::after)

    Mar 21 03:54:53 httpd.portal(3466) INFO: [mac:7c:01:91:25:f9:eb]
    Found source RSPEmployee in session. (Class::MOP::Class:::around)

    Mar 21 03:54:53 httpd.portal(3466) INFO: [mac:7c:01:91:25:f9:eb]
    Found source RSPEmployee in session. (Class::MOP::Class:::around)

    Mar 21 03:54:53 httpd.portal(3466) INFO: [mac:7c:01:91:25:f9:eb]
    Successfully authenticated helen_chen
    
(captiveportal::PacketFence::DynamicRouting::Module::Authentication::Login::authenticate)

    Mar 21 03:54:53 httpd.portal(3466) INFO: [mac:7c:01:91:25:f9:eb]
    Found source RSPEmployee in session. (Class::MOP::Class:::around)

    Mar 21 03:54:53 httpd.portal(3466) INFO: [mac:7c:01:91:25:f9:eb]
    Found source RSPEmployee in session. (Class::MOP::Class:::around)

    Mar 21 03:54:53 httpd.portal(3466) INFO: [mac:7c:01:91:25:f9:eb]
    Found source RSPEmployee in session. (Class::MOP::Class:::around)

    Mar 21 03:54:53 httpd.portal(3466) INFO: [mac:7c:01:91:25:f9:eb]
    User helen_chen has authenticated on the portal.
    (Class::MOP::Class:::after)

    Mar 21 03:54:53 httpd.portal(3466) WARN: [mac:7c:01:91:25:f9:eb]
    Calling match with empty/invalid rule class. Defaulting to
    'authentication' (pf::authentication::match)

    Mar 21 03:54:53 httpd.portal(3466) INFO: [mac:7c:01:91:25:f9:eb]
    Using sources RSPEmployee for matching (pf::authentication::match)

    Mar 21 03:54:53 httpd.portal(3466) INFO: [mac:7c:01:91:25:f9:eb]
    Found source RSPEmployee in session. (Class::MOP::Class:::around)

    Mar 21 03:54:53 httpd.portal(3466) INFO: [mac:7c:01:91:25:f9:eb]
    User helen_chen has authenticated on the portal.
    (Class::MOP::Class:::after)

    Mar 21 03:54:53 httpd.portal(3466) WARN: [mac:7c:01:91:25:f9:eb]
    Calling match with empty/invalid rule class. Defaulting to
    'authentication' (pf::authentication::match)

    Mar 21 03:54:53 httpd.portal(3466) INFO: [mac:7c:01:91:25:f9:eb]
    Using sources RSPEmployee for matching (pf::authentication::match)

    Mar 21 03:54:53 httpd.portal(3466) WARN: [mac:7c:01:91:25:f9:eb]
    Use of uninitialized value in concatenation (.) or string at
    
/usr/local/pf/html/captive-portal/lib/captiveportal/PacketFence/DynamicRouting/Module/Authentication.pm
    line 139.

    
(captiveportal::PacketFence::DynamicRouting::Module::Authentication::execute_actions)

    Mar 21 03:54:53 httpd.portal(3466) WARN: [mac:7c:01:91:25:f9:eb]
    Use of uninitialized value in concatenation (.) or string at
    
/usr/local/pf/html/captive-portal/lib/captiveportal/PacketFence/DynamicRouting/Module/Authentication.pm
    line 139.

    
(captiveportal::PacketFence::DynamicRouting::Module::Authentication::execute_actions)

    Mar 21 03:54:53 httpd.portal(3466) WARN: [mac:7c:01:91:25:f9:eb]
    Cannot find unregdate () or role() for user.
    
(captiveportal::PacketFence::DynamicRouting::Module::Authentication::execute_actions)

    Mar 21 03:54:53 httpd.portal(3466) WARN: [mac:7c:01:91:25:f9:eb]
    Execute actions of module
    default_policy+default_registration_policy+default_login_policy
    did not succeed.
    (captiveportal::PacketFence::DynamicRouting::Module::done)

    Mar 21 03:54:53 httpd.portal(3444) INFO: [mac:unknown] Instantiate
    profile RSP (pf::Portal::ProfileFactory::_from_profile)

    Mar 21 03:54:53 httpd.portal(3444) INFO: [mac:7c:01:91:25:f9:eb]
    Instantiate profile RSP (pf::Portal::ProfileFactory::_from_profile)

    Mar 21 03:54:53 httpd.portal(3444) INFO: [mac:7c:01:91:25:f9:eb]
    Instantiate profile RSP (pf::Portal::ProfileFactory::_from_profile)

    *Authentication role:*

    [Employee]

    description=Employee

    password=XXXX

    scope=sub

    binddn=CN=wirelessauth,OU=System Function Account,OU=Special
    Account,DC=xxxxx0,DC=xxxxx,DC=com

    basedn=dc=xxxx0,dc=xxxx,dc=com

    email_attribute=mail

    usernameattribute=sAMAccountName

    connection_timeout=5

    stripped_user_name=no

    encryption=none

    dynamic_routing_module=AuthModule

    port=389

    type=AD

    host=x.x.x.x

    [Employee rule Employee]

    description=RSPEmployees

    class=authentication

    match=all

    action0=set_role=Employee

    action1=set_access_duration=5D

    condition0=memberOf,equals,CN=wirelessauth,OU=System Function
    Account,OU=Special Account,DC=xxxxxxxx,DC=xxxxxxxx,DC=com

    [AdminIT]

    description=AdminIT

    password=xxxxx

    scope=sub

    binddn=CN=wirelessauth,OU=System Function Account,OU= Special
    Account,DC=xxxxxxxx,DC=xxxxxxxx,DC=com

    basedn=OU=IT,OU=Special Account,DC=xxxxx0,DC=xxxxxx,DC=com

    email_attribute=mail

    usernameattribute=sAMAccountName

    connection_timeout=5

    stripped_user_name=no

    encryption=none

    dynamic_routing_module=AuthModule

    port=389

    type=AD

    host=x.x.x.x

    [AdminIT rule AdminLogin]

    description=

    class=administration

    match=all

    action0=mark_as_sponsor=1

    [Visitors]

    description=Visitors

    dynamic_routing_module=AuthModule

    [email protected]
    <mailto:[email protected]>

    email_activation_timeout=30m

    type=SponsorEmail

    create_local_account=yes

    allow_localdomain=yes

    [Visitors rule Visitors]

    description=Visitors

    class=authentication

    match=all

    action0=set_role=guest

    action1=set_access_duration=1D

    *Profile.conf*

    [RSP]

    dot1x_recompute_role_from_portal=0

    
filter=connection_type:Wireless-802.11-NoEAP,connection_type:Wireless-802.11-EAP

    description=RSP_Global

    sources=Employee,AdminIT,Visitors

    #

    # Copyright (C) 2005-2017 Inverse inc.

    #

    # See the enclosed file COPYING for license information (GPL).

    # If you did not receive this file, see

    # http://www.fsf.org/licensing/licenses/gpl.html

    Would you please help with this?

    Thank you,

     ---

    **

    **

    *Helen *




    
------------------------------------------------------------------------------

    Check out the vibrant tech community on one of the world's most

    engaging tech sites, Slashdot.org!http://sdm.link/slashdot




    _______________________________________________

    PacketFence-users mailing list

    [email protected]
    <mailto:[email protected]>

    https://lists.sourceforge.net/lists/listinfo/packetfence-users



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot


_______________________________________________
PacketFence-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/packetfence-users

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
PacketFence-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/packetfence-users

Reply via email to