[sork] userdn with Passwd H5 beta

Ingo Herz herz at technik-emden.de
Wed May 15 13:38:29 UTC 2013


Am 08.05.2013 15:01, schrieb Jan Schneider:
>
> Zitat von Hanns Mattes <hanns at hannsmattes.de>:
>
>> Hi,
>>
>> with the Git-version of passwd I've used a hook to construct the userdn:
>>
>> <?php
>> class Passwd_Hooks
>> {
>>    public function userdn($authid)
>>    {
>>        $zwischenschritt = explode("@", $authid);
>>        $hmldapdomain = $zwischenschritt[1];
>>        return 'uid=' . $authid . ',ou=' . $hmldapdomain .
>> ',ou=virtualmail' . ',dc=my' . ',dc=domain';
>>    }
>> }
>>
>> This was necessary with my setup, because the userDN contains a kind
>> of domain component:
>>
>> uid=test at example.com,ou=example.com,ou=virtualmail,dc=my,dc=domain
>> uid=foobar at otherexample.com,ou=otherexample.com,ou=virtualmail,dc=my,dc=domain
>>
>> uid=test at thirdexample.com,ou=thirdexample.com,ou=virtualmail,dc=my,dc=domain
>>
>>
>> In "docs/UPGRADING" is mentioned, that the hook is removed an the
>> userdn now is set in the ldap-driver-configuration.
>>
>> So I can set something like
>> 'userdn' => 'uid=%u,ou=example.com,ou=virtualmail,dc=my,dc=domain'
>>
>> But how do I manage, that the "domain component" is set depending on
>> the uid (or a matching entry in the user's record in the DIT)?
>>
>> 'userdn' => 'uid=%u,ou=$domain,ou=virtualmail,dc=my,dc=domain'
>>
>> Regards Hanns
>
> This is not possible at the moment. I'm not sure why the hook has been
> removed at all, Michael has to chime in here.

Hi,

it would be nice if this hook could be reimplemented. We have
implemented some "special" actions there.

Regards,
Ingo

-------------- next part --------------
A non-text attachment was scrubbed...
Name: herz.vcf
Type: text/x-vcard
Size: 164 bytes
Desc: not available
URL: <http://lists.horde.org/archives/sork/attachments/20130515/fd5e6642/attachment.vcf>


More information about the sork mailing list