Summary | Group Listing returns fatal error |
Queue | Horde Framework Packages |
Queue Version | Git master |
Type | Bug |
State | No Feedback |
Priority | 2. Medium |
Owners | jan (at) horde (dot) org |
Requester | hutter (at) ihs (dot) ac (dot) at |
Created | 08/24/2010 (5428 days ago) |
Due | |
Updated | 03/16/2011 (5224 days ago) |
Assigned | 03/14/2011 (5226 days ago) |
Resolved | 03/16/2011 (5224 days ago) |
Github Issue Link | |
Github Pull Request | |
Milestone | |
Patch | No |
State ⇒ No Feedback
If you talk about a later rewrite, I have not tested it again because
my management didn't allow for more months to wait until deploying a
working solution. So we decided (sadly) to use a different software.
My resources are exhausted at the time, maybe I'll have in a couple of
weeks time to look at the most recent H4 version in my spare time.
State ⇒ Feedback
New Attachment: group_Ldap.php.diff
To get it work I had to modify framework/Auth/lib/Horde/Auth/Ldap.php
(see
Ticket #9196) and framework/Group/lib/Horde/Group/Ldap.php.In Group/Ldap.php I had to change the names for the variables storing
bind user and password (again ldiff -u attached).
Result: empty page by clicking on administration-Groups (only header
and footer is shown but no groups are listed), clicking on shares in
kronolith let me select the groups. Therefore I think it works,
although no groups are listed.
Fix parse error (
Bug #9197).http://git.horde.org/diff.php/framework/Group/lib/Horde/Group/Ldap.php?rt=horde-git&r1=902b4483b0b40da51a1116905a8fdb46c0c4eb02&r2=8c8036716d2d7efe01f1ddc78437a42cdf765403
ok I pulled the whole thing from the scratch and applied my config.
I think there is an typoo in framework/Group/lib/Horde/Group/Ldap.php
on line 459, I get
an syntax error "unexpected }"
changing the line
$cache[$group] = $res
to
$cache[$group] = $res; seems to work.
At least after login I can see the sidebar (without the ";" I only got
the top menu).
Nevertheless I get a bunch of warnings in the apache log and
horde.log. I will take a look at these tomorrow.
git pull
dev.horde.org[0: 208.52.151.194]: errno=Connection refused
fatal: unable to connect a socket (Connection refused)
State ⇒ Feedback
Assigned to Jan Schneider
Patch ⇒ No
completely broken. Can you try if the issues reported here have all
been fixed now?
only to active directory servers.
exists($group) the call of @ldap_compare doesn't work (at least
with our AD).
[07-Sep-2010 13:30:50] PHP Warning: implode(): Invalid arguments
passed in /usr/share/php/Horde/Group/Ldap.php on line 498
(one error per Group is written)
var_dump($result); returns NULL -> where is this variable filled?
this is the function:
public function getGroupParent($dn)
{
if (@ldap_explode_dn($dn, 0) === false) {
throw new Horde_Group_Exception('Invalid group ID passed
(bad DN syntax)');
}
unset($result['count'], $result[0]);
$parent_dn = implode(',', $result);
return (Horde_String::lower($parent_dn) ==
Horde_String::lower($GLOBALS['conf']['group']['params']['basedn']))
? DATATREE_ROOT
: $parent_dn;
}
When I click on a Group, following error occurs:
[07-Sep-2010 13:33:27] PHP Fatal error: Call to protected method
Horde_Group_LdapObject::_fromAttributes() from context
'Horde_Group_Ldap' in /usr/share/php/Horde/Group/Ldap.php on line 251
Turning _from/_toAttributes to public functions works for me (means
Groups are "clickable", but still empty).
be another problem I'm trying to track down in the code.
to active directory servers.
(here: kronolith). In H3 we hacked the code to get it worked.
When you get the Groups in the admin-interface listed, could you
check, whether the Groups are even listed in Kronoliths'
calendar-adminpanel?
Well, after the git pull on 24.8. I can not see this anymore in H4.
Nevertheless, in framework/Group/lib/Horde/Group/Ldap.php in function
exists($group) the call of @ldap_compare doesn't work (at least with our AD).
I worked around by adding a stristr call if ldap_compare returns 'false'.
This works but it turned out that we now have errors in the apache log:
PHP Warning: implode(): Invalid arguments passed
This was solved by modifying function getGroupParent($dn).
original code snippet:
if (@ldap_explode_dn($dn, 0) === false) {
throw new Horde_Group_Exception('Invalid group ID passed
(bad DN syntax)');
}
added to this:
else {
$result = @ldap_explode_dn($dn, 0);
}
I think it would be better to move this discussion to the horde list.
The bug as first described is about improper variable names. As soon
there are relevant new commits to git, I will have a look at this
again. Maybe we will have to create a new ticket if this is really a
bug in function getGroupParent.
be another problem I'm trying to track down in the code.
still doesn't work is to list the groups in an application (here:
kronolith). In H3 we hacked the code to get it worked.
When you get the Groups in the admin-interface listed, could you
check, whether the Groups are even listed in Kronoliths'
calendar-adminpanel?
Priority ⇒ 2. Medium
State ⇒ Unconfirmed
Patch ⇒ Yes
Milestone ⇒
Queue ⇒ Horde Framework Packages
Summary ⇒ Group Listing returns fatal error
Type ⇒ Bug
Clicking on Groups (logged in as administrator) returns the following
error:
A fatal error has occurred
Could not reach the LDAP server
[line 556 of .../horde/framework/Group/lib/Horde/Group/Ldap.php]
Looking at the code (horde/framework/Group/lib/Horde/Group/Ldap.php)
you find the folowing snippet:
if (isset($this->_params['binddn'])) {
$bind = @ldap_bind($this->_ds, $this->_params['binddn'],
$this->_params['password']);
} else {
$bind = @ldap_bind($this->_ds);
}
if (!$bind) {
throw new Horde_Group_Exception('Could not bind to LDAP server');
}
Well I don't know why one don't see the error "Could not bind to LDAP Server",
maybe it's overwritten by the following Horde_Group_Exeption from the
ldap_search call. Nevertheless, binddn is empty, so an anonymous bind is
tried. Windows 2008 AD Server prevents anonymous binds by default. I couldn't
find any setting in the conf.php named "binddn" nor any in conf.php.dist.
So I replaced those with searchdn (password with searchpw) and it works.
Note: The Group Listing is still empty (as in H3) but this seems to be
another problem I'm trying to track down in the code.