bugphpGroupWare - Bugs: bug #9786, (need confirmation)...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #9786: (need confirmation) reas_repository/save_repository seems not working in LDAP accounts

Submitted by:  Caeies <Caeies>
Submitted on:  Tue 27 Jul 2004 02:58:44 PM UTC  
 
Item Group: 0.9.16.000 releaseCategory: API - Admin
Severity: 2 - MinorPriority: 7 - High
Status: FixedPrivacy: Public
Assigned to: Philipp Kamps <fipsfuchs>Open/Closed: Closed
Component Version: SVNOperating System: GNU/Linux - Debian
Reproducibility: Every TimePlanned Release: 0.9.16.001+
Fixed Release: 

Thu 29 Jul 2004 07:38:02 AM UTC, comment #3:

i just hate these additional workarounds - but we don't have another chance. Your code is in CVS, thx

Philipp Kamps <fipsfuchs>In charge of this item.
Wed 28 Jul 2004 12:30:08 PM UTC, comment #2:

Hi fips,

I reopen it since I found another problem with this read/save repository function,

that the correction :

account_expires is one problem and you solved it nicely :)

but there's another one : account_status.

So I modify the code to obtain :

$entry['phpgwaccountexpires'] = isset($account_info['account_expires']) ? $account_info['account_expires'] : $account_info['expires'] ;
if ($account_info['account_status'] || $account_info['status'])
{
$entry['phpgwaccountstatus'] = isset($account_info['account_status']) ? $account_info['account_status'] : $account_info['status'];
}

Near line 749 in account_ldap.

What do you think about that ?

(If the code is not set for the status, when read/save repository you will have an inactive account).

Cheers
Caeies

Caeies <Caeies>
Project Administrator
Wed 28 Jul 2004 08:25:40 AM UTC, comment #1:

it was a problem with the damn object var names in the account backend. $this->data['expire'] and $this->data['account_expire'] is used....

I changed this in head - so we won't get such problems.

fixed in CVS - thx Caeies

Philipp Kamps <fipsfuchs>In charge of this item.
Tue 27 Jul 2004 02:58:44 PM UTC, original submission:

Hi,

I'm trying to do the following :

$account = CreateObject('phpgwapi.accounts',$account_id);
$account->read_repository();
$account->save_repository();

and I get the following error:
ldap_modified FAILED: [21] Invalid syntax

Modifies: uid=caeiesATcaeies.org,ou=users,dc=proget,dc=test,dc=fr

Array
(
[objectclass] => Array
(
[0] => phpgwAccount
[1] => phpgwContact
[2] => posixAccount
)

[phpgwaccountid] => 21304
[phpgwaccountexpires] =>
[phpgwaccountstatus] => I
[phpgwquota] => -1
[phpgwcontactid] => 160
[cn] => Caeies
[uidnumber] => 21304
[uid] => caeiesATcaeies.org
[description] => compte créé dans phpgw
[givenname] => Caeies
[sn] => Caeies
[homedirectory] => /dev/null
[gidnumber] => 21304
)

1) Did you have the same problem,
2) I will try to understand what is the problem.

Thanks in avance,

Caeies

Caeies <Caeies>
Project Administrator

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 5 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Thu 29 Jul 2004 07:38:02 AM UTCfipsfuchsOpen/ClosedOpen=>Closed
Wed 28 Jul 2004 12:30:08 PM UTCCaeiesOpen/ClosedClosed=>Open
Wed 28 Jul 2004 08:25:40 AM UTCfipsfuchsStatusNone=>Fixed
  Open/ClosedOpen=>Closed
  ReproducibilityNone=>Every Time

Back to the top


Powered by Savane 3.1-cleanup1