Project

General

Profile

Actions

Feature #4923

closed

Add LDAP support for RFC2307 style group membership

Added by Jonathon Reinhart over 9 years ago. Updated over 7 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
User Manager / Privileges
Target version:
Start date:
08/07/2015
Due date:
% Done:

100%

Estimated time:
Plus Target Version:
Release Notes:

Description

Turnkey Linux OpenLDAP (which runs the phpLDAPadmin web UI) seems to define group membership differently than pfSense expects.

The groups are defined fined as one would expect: cn=admins,ou=Groups,dc=example,dc=com

But group membership is defined by a memberUid attribute on the group object.

Here's some example output from ldapvi --discover:

5 cn=jreinhart,ou=Users,dc=example,dc=com
givenName: Jonathon
sn: Reinhart
cn: jreinhart
uid: jreinhart
uidNumber: 1000
gidNumber: 500 
homeDirectory: /home/users/jreinhart
loginShell: /bin/sh
objectClass: inetOrgPerson
objectClass: posixAccount
objectClass: top 
mail: jreinhart@example.com

6 cn=admins,ou=Groups,dc=example,dc=com
cn: admins
gidNumber: 501 
objectClass: posixGroup
objectClass: top 
memberUid: jreinhart

I'm not sure if this is defined OpenLDAP or phpLDAPadmin, but it's the case on Turnkey Linux OpenLDAP (https://www.turnkeylinux.org/openldap)


From what I gather, pfSense is expecting group membership to be defined by an e.g. memberOf attribute on the user object.

Many users find themselves in a position like me, where we can successfully authenticate with LDAP, but group membership cannot be established:

Can this incompatibility somehow be remedied?


Files

ldap-rfc2307.diff (1.68 KB) ldap-rfc2307.diff Jim Pingle, 08/12/2015 03:25 PM
OpenLDAP.pcapng (1.98 KB) OpenLDAP.pcapng Anonymous, 05/23/2017 08:18 AM
Actions

Also available in: Atom PDF