phpGroupWare - Bugs: bug #23929, Errors related to accounts_ldap
You are not allowed to post comments on this tracker with your current authentication level.
bug #23929: Errors related to accounts_ldap
Submitter: | - <_66106> | ||
Submitted: | Thu 24 Jul 2008 01:59:52 PM UTC | ||
Item Group: | SVN trunk (dev code) | Category: | API - phpGroupware API |
Severity: | 3 - Normal | Priority: | 5 - Normal |
Status: | None | Privacy: | Public |
Assigned to: | None | Open/Closed: | Open |
Component Version: | None | Operating System: | None |
Reproducibility: | None | Planned Release: | None |
Fixed Release: |
No files currently attached
Depends on the following items: None found
Items that depend on this one: None found
Carbon-Copy List
There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.
No changes have been made to this item
Powered by Savane 3.12.
Corresponding source code
see diffs to fix:
svn diff inc/class.ofphpgwapi.inc.php
Index: inc/class.ofphpgwapi.inc.php
===================================================================
--- inc/class.ofphpgwapi.inc.php (révision 18650)
+++ inc/class.ofphpgwapi.inc.php (copie de travail)
@@ -144,7 +144,7 @@
fall through
case 'ldap':
- include_once PHPGW_API_INC . "/aaccounts/class.accounts_ldap.inc.php";
+ include_once PHPGW_API_INC . "/accounts/class.accounts_ldap.inc.php";
break;
default:
svn diff inc/accounts/class.accounts_ldap.inc.php
Index: inc/accounts/class.accounts_ldap.inc.php
===================================================================
--- inc/accounts/class.accounts_ldap.inc.php (révision 18650)
+++ inc/accounts/class.accounts_ldap.inc.php (copie de travail)
@@ -86,6 +86,10 @@
parent::__construct($account_id, $account_type);
}
+ public function is_ds_set()
+ {
+ return $this->ds !== False;
+ }
/**
* Add an account to a group entry by adding the account name to the memberuid attribute
*
@@ -93,7 +97,7 @@
* @param integer $groupID Group id
* @return boolean True on success otherwise false
*/
- public function add_account2group($account_id, $group_id)
+ public function add_user2group($account_id, $group_id)
{
if ($account_id && $groupID)
{
@@ -130,7 +134,7 @@
* @param integer $id Id of group/account to delete
* @return boolean True on success otherwise false
*/
- public function delete($id = '')
+ public function delete($id )
{
$id = (int) get_account_id($id);
$type = $this->get_type($id);