Project

General

Profile

Actions

Bug #9494

open

Users are not added to groups based on LDAP group membership

Added by Phillip Schichtel about 9 years ago. Updated over 8 years ago.

Status:
New
Priority:
Normal
Category:
Users, Roles and Permissions
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

I connect my foreman instance to our LDAP server for user login and groups.
The LDAP server is an OpenLDAP instance managed through GOsa².

The structure:

dc=tld
dc=domain
_ou=int
__ou=groups
_____cn=group1
_cn=group2
__ou=people
_____cn=First User
__cn=Second User

user objectclasses:
- gosaAccount
- gosaMailAccount
- inetOrgPerson
- organisationalPerson
- person
- posixAccount
- shadowAccount
rdn: cn=Firstname Surname

group objectclasses:
- gosaAcl
- groupOfNames
- posixGroup
relevant attributes: cn (name), member (full DN of a user), memberUid (uid value of a user)

Foreman adds the server as a posix server and has ou=int,dc=domain,dc=tld as the base DN and ou=groups,ou=int,dc=domain,dc=tld as the group DN and user auto creation is enabled.
User attribute mappings:

login -> uid
first name -> givenName
surname -> sn
email address -> mail
picture -> jpegPhoto

The user group:
In foreman: Group1 with Admin as the Role
In LDAP: cn=group1,ou=int,dc=domain,dc=tld

Adding the external LDAP group to the foreman group as well as logging in with LDAP credentials works perfectly fine.
The users however do not receive their groups.

I think the problem might be related to this query from the refresh-group.log:
SELECT "users".* FROM "users" WHERE "users"."login" IN ('firstname1 surname1', 'firstname2 surname2') ORDER BY firstname


Files

refresh-group.log refresh-group.log 3.5 KB Log produced from clicking refresh on the external group Phillip Schichtel, 02/20/2015 05:03 PM
save-group.log save-group.log 4.36 KB Log produced from submitting the change-group form Phillip Schichtel, 02/20/2015 05:03 PM
Actions #1

Updated by Dominic Cleal about 9 years ago

  • Category changed from Authentication to Users, Roles and Permissions
Actions

Also available in: Atom PDF