[Tickets #3695] NEW: kolab authentication, _username_hook_frombackend
bugs@bugs.horde.org
bugs at bugs.horde.org
Sun Mar 26 13:55:35 PST 2006
DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.
Ticket URL: http://bugs.horde.org/ticket/?id=3695
-----------------------------------------------------------------------
Ticket | 3695
Created By | oliver at warpsix.net
Summary | kolab authentication, _username_hook_frombackend
Queue | Kolab
State | Unconfirmed
Priority | 1. Low
Type | Bug
Owners |
-----------------------------------------------------------------------
oliver at warpsix.net (2006-03-26 13:55) wrote:
today I stumbled over a line in horde/config/hooks.php, which looks like a
bug to me:
hooks.php (FRAMEWORK_3 branch) says in function
_username_hook_frombackend($userID):
$result = ldap_search(
$ds,
$GLOBALS['conf']['kolab']['ldap']['basedn'],
"uid=$username"
);
although the username is given to this function as $userID rather than
$username.
That doesn't obviosly break anything but only the userID will be returned
instead of
the corresponding email address from ldap. This breaks the kolab
functionality if
users login with their uid instead of their email address.
So I changed the line (line #982 in my case) from
"uid=$username"
to
"uid=$userID"
Which seems to work well - at least for me.
BTW:
this is my first post to this buglist - please tell me if I did something
wrong of
missed some important details.
Oliver
More information about the bugs
mailing list