Monday 31 May 2010 6:55:51 am
Hi there. I'm trying to set up a site on eZ Publish (version 4.3) with LDAP-Login support. The user login itself is working very well. Now I want eZ to store the users out of our AD into special groups. This should work like this:
- We have created some groups for eZ publish inside our AD
- These groups were created in eZ, too
- Roles for these groups were created and assigned
- If a user logs in he should be created in the same group as he is in the AD
According to the eZ documentation this should work with LDAP Group Mapping Type "SimpleMapping". (http://ez.no/doc/ez_publish/techn...gin_handler/ldap_group_mapping_type) Ini settings from the documentation are:
LDAPGroupMappingType=SimpleMapping
LDAPUserGroupClass=organizationalUnit
LDAPUserGroupAttribute=cn
LDAPGroupMemberAttribute=members
LDAPUserGroupMap[]
LDAPUserGroupMap[editor]=Editor
LDAPUserGroupMap[techwriter]=Technical writer I had to change some settings for our need. My settings in LDAP.ini:
[LDAPSettings]
# Enable tracing the the ldap login, outputs extensive debug info for use during setup
# NOTE: Do not keep this enabled on production setup as login name and passwords will be
# logged to logfiles or outputted if DebugOutput settings are enabled.
LDAPDebugTrace=enabled
# Set LDAP version number
LDAPVersion=3
# Set to true if use LDAP server
LDAPEnabled=true
# LDAP host
LDAPServer=<MyHost>
[...]
LDAPGroupMappingType=SimpleMapping
LDAPUserGroupClass=organizationalPerson
LDAPUserGroupAttribute=cn
LDAPGroupMemberAttribute=memberof
LDAPUserGroupMap[]
LDAPUserGroupMap[Group1]=Group1
LDAPUserGroupMap[Group2]=Group2 Problem is that all users are stored in Members-Folder (Node 12) when a user is logging in. Is there someone who has done this before successfully? I don't have any idea why this does not work. Thanks for your help.
Linux is like a wigwam; no windows, now gates, and apache inside!
|