OPNsense Forum

Archive => 16.7 Legacy Series => Topic started by: Pimmal on September 02, 2016, 03:47:55 pm

Title: Active Directory Problem
Post by: Pimmal on September 02, 2016, 03:47:55 pm
Active Directory Authentication is working but is not receiving any groups.

Whats wrong here?

Quote
User: Pimmal authenticated successfully.
This user is a member of these groups:
Title: Re: Active Directory Problem
Post by: ccesario on September 02, 2016, 04:44:01 pm
Hi Primmal, if possible comment this issue opened with your details.

https://github.com/opnsense/core/issues/1169

I 'm getting the same problem


Best regards

-Carlos
Title: Re: Active Directory Problem
Post by: Triskkele on September 04, 2016, 11:59:39 pm
I have the same problem too with LDAP and RADIUS authentication (Active Directory)

I have added the AD group in OPNSense with all permissions and specified a Class containing the group name in remote access policy of the RADIUS server.

The test is successful but with no group membership

On the login page:
With LDAP authentication, there is no access
With RADIUS authentication, the login is successful but since the AD group is not recognized (but well configured), there is no access to any pages.
Title: Re: Active Directory Problem
Post by: AdSchellevis on September 05, 2016, 09:35:33 am
Group membership is managed per user in OPNsense (as mentioned in the issue on GitHub).

We will supply some additional documentation later about this subject, but if the user doesn't exist in the firewall it can't have access rights. It's a design choice we made earlier, to avoid cluttering the ACL system with all sorts of calls to the outside world.
This behaviour won't change, we may at some point add some scripts to help automate the LDAP import process on regular basis.

The steps are simple.
- for Radius add users manually (radius doesn't support a "list users" call to help importing the users)
- for LDAP, import users from the server when primary UI authentication is set to LDAP, which imports the User distinguished name with it.