[sork] problems with the passwd module and LDAP

Eric Rostetter eric.rostetter at physics.utexas.edu
Wed Jul 16 10:50:25 PDT 2003


Quoting "Michael P. Hilty" <mikeh at trilogygrafx.com>:

> Hello,
>      I am running into some issues with passwd and changing a user's password
> in an OpenLDAP directory.

What version of passwd?

> logs for the OpenLDAP server, it is trying to authenticate the user using the
> e-mail address as the uid.

You can use a custom hook to format the username any way you want in the
current release or HEAD versions.  Enable the hook in passwd/config/conf.php
and then provide the needed hook code (e.g. to remove the realm) in
horde/config/hooks.php (for HEAD) or where ever it goes for RELENG (not sure
really).

Also, look at your passwd/config/backends.php file and make sure you didn't
specify the realm in there.

>      Is there any way I can change this behavior to lookup the uid as the
> login
> name (without @trilogygrafx.com appended to it), or have it search using the
> e-
> mail address under the mail attribute instead of the uid attribute?

You can have it search another field in passwd/config/backends.php, or you can
change the username via a hook, or you might have set the realm somewhere and
just removing it (from passwd, not from other modules like IMP) may be
sufficient.

> --
> Thanks,
> Michael P. Hilty
> Trilogy GraFX Enterprises, LLC.
> mailto:mikeh at trilogygrafx.com
> 570-814-3586

--
Eric Rostetter
The Department of Physics
The University of Texas at Austin

Why get even? Get odd!


More information about the sork mailing list