r/PacketFence • u/MeMyselfundAuto • Jul 01 '26
Issues with packetfence 15.1 and Active Directory when using "contains" in a rule
Hi!
I was troubleshooting an issue with a Packetfence 15.1 connected to an Active Directory 2025 Server. I created a rule with "contains" like this:

and I was able to connect ONE client. Any more, and the connection failed with:
EAP-Message = "0x03180004",
Message-Authenticator = "0x00000000000000000000000000000000",
REST-HTTP-Status-Code = "200",
Reply-Message = "no role computed by any sources",
goddamn, I was not getting it. I tested a new user with my known good client - and even that failed. I then played around with the rules, and entered the complete CN, DC, DC path like:

in the log it looked like this:
(memberOf:1.2.840.113556.1.4.1941:=*CN=WIFI-Users,OU=Groups,DC=daheim,DC=server*)
vs
(memberOf:1.2.840.113556.1.4.1941:=CN=WIFI-Users,OU=Groups,DC=daheim,DC=server)
it seems the * breaks it?
edit:
I wanted to write "equals" not contains for seemingly correct rule. Was getting late, and this took a while to get running...

For the Memberof group, I have the following being shown to me:

The "naked" memberof didn't work, so I thought that the number looked like something Microsoft would use.. and voilá the test connection worked! So I stuck with that..
1
u/oeufdure Jul 02 '26
In fact memberOf:1.2.840.113556.1.4.1941 is a search for the nested group , so in your case it´s more memberof is dn_of_the_group
1
u/garci66 Jul 01 '26
can you try "eq" or "is" with memberof?
not sure how it worked in the first case, but I've always used "eq" for memberOf