[pmwiki-users] LDAP and Group Authentication

Thomas Gemperli gemperli at arch.ethz.ch
Mon Jan 21 07:17:27 CST 2008


Hi

On 18.01.2008, at 06:04, ThomasP wrote:

> On Wed, January 16, 2008 1:33 pm, Thomas Gemperli wrote:
>> ...
>>
>> I missed this thread, so I am not sure if this is interesting for  
>> you.
>>
>> I use a self written piece of php (attachment) to get group members
>> out of my LDAP directory (Apple OpenDirectory).
>
> looking diagonal over this and the previous ldif output hints me  
> that this
> is already exactly what would also work in Gary's case (since there  
> also
> the users (also via memberUid attributes) are in group "containers").
>
> I somehow would guess that one has to provide
>
> ou=Group,dc=engr,dc=georgefox,dc=edu

Yes, in my case these settings are in my "cookbook" archbook.php. Feel  
free to enhance this. :)

> as root node for the search, and then filter by "cn=MYGROUP". The  
> hurdle
> that I have with this is currently "only":

I use php array_merge() for this task, an example config:
$AuthUser['@METAWIKIGROUP'] = array_merge($AuthUser['@LDAPGROUPA'], 
$AuthUser['@LDAPGROUPB']);

> Where actually is the get_ldap_values function defined? (Could see it
> neither in pmwiki nor on php.net.) What does one provide as arguments?

Have a look in "archbook.php":
// get ldap values
function get_ldap_values($searchdn, $filter, $justthese)
{
....

Thomas




More information about the pmwiki-users mailing list