I have PacketFence installed and connected to my AD domain and have an AD user 
source set up but I can't get any rules to work properly. I have my profile set 
to auto-register and when I plug a client device into the switch it does get 
registered but it is not assigned any role or put into the desired VLAN based 
on my rules.

I can manually place the user into a VLAN, though, from the admin GUI.

I'm now trying a test catch-all to put any user from my AD source that connects 
and placing them into our WebServices VLAN but it does not work. Any help would 
be appreciated.



My authentication.conf file:


[local]
description=Local Users
dynamic_routing_module=AuthModule
type=SQL

[PacketFenceAD]
description=ADUserSource
password=<password>
scope=sub
binddn=CN=Packet Fence,OU=Admin Users,OU=Users,DC=DomainName,DC=local
basedn=OU=Users,DC=DomainName,DC=local
email_attribute=mail
usernameattribute=sAMAccountName
connection_timeout=5
stripped_user_name=yes
encryption=none
dynamic_routing_module=AuthModule
port=389
type=AD
host=<AD IP>

[PacketFenceAD rule TestRule]
description=Test Rule
class=authentication
match=any
action0=set_role=WebServices
action1=set_access_duration=5D

[file1]
description=Legacy Source
stripped_user_name=yes
path=/usr/local/pf/conf/admin.conf
dynamic_routing_module=AuthModule
type=Htpasswd

[file1 rule admins]
description=All admins
class=administration
match=all
action0=set_access_level=ALL

My profiles.conf file:

[default]
description=Default Profile
logo=/common/packetfence-white.png
redirecturl=http://www.packetfence.org/
always_use_redirecturl=disabled
locale=en_US
nbregpages=0
filter_match_style=any
block_interval=10m
sms_pin_retry_limit=0
sms_request_limit=0
login_attempt_limit=0
root_module=default_policy

[TestProfile]
billing_tiers=
dot1x_recompute_role_from_portal=0
preregistration=disabled
locale=
filter=switch:<switch IP>
description=2530 Test Switch profile
autoregister=enabled
scans=
reuse_dot1x_credentials=0
sources=PacketFenceAD
provisioners=
filter_match_style=all



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

Reply via email to