mainphpGroupWare - Support: sr #100802, NIS auth and autoaccounts fail...

 
 

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

sr #100802: NIS auth and autoaccounts fail (patch)

Submitter:  Invalid User ID <#6910>
Submitted:  Wed 24 Apr 2002 01:48:36 PM UTC
   
 
Category:  Feature Request Priority:  5 - Normal
Severity:  2 - Minor Status:  Invalid
Privacy:  Public Assigned to:  skwashd
Open/Closed:  Closed Operating System:  None

Tue 30 Mar 2004 05:49:58 AM UTC, comment #2: 

Similar functionality already exists, the method will return false if the account_id == ''

Dave Hall <skwashd>
Group administrator
Mon 09 Dec 2002 12:19:49 AM UTC, comment #1: 


This is not really a feature request, but the bugs category
has been removed so it can stay in the cat :)

Dave Hall <skwashd>
Group administrator
Wed 24 Apr 2002 01:48:36 PM UTC, original submission:  


When using "Auto create account records for authenticated
users"=Yes, a user that successfully authenticated
will get an error message and a halted session.

The reason is that

$GLOBALS['phpgw']->accounts->get_type($this->account_lid)

in line 325 of phpgwapi/inc/class.sessions_db.inc.php
is called before checking if account_lid exists and
accounts->get_type isn't ready for nonexistant accounts.

Either repair get_type to return "" if the account is
inexistant or check for existence first.

The following patch implements the first strategy:

--- phpgwapi/inc/class.accounts_sql.inc.php.orig     
 Tue Apr 23 17:38:54 2002
+++ phpgwapi/inc/class.accounts_sql.inc.php     Wed Apr
24 14:48:14 2002
@@ -226,4 +226,8 @@
 
                        $account_id =
get_account_id($accountid);
+                       if($account_id == "")
+                       {
+                               return "";
+                       }
                      
if(@isset($account_type[$account_id]) &&
@$account_type[$account_id])
                        {

Invalid User ID <#6910>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

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.

 

Follow 6 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2004-03-30 skwashd StatusNone Invalid
2004-03-26 cboettger Reassign ItemFrom group phpGroupWare, support tracker To group phpGroupWare, patch tracker
2004-03-26 cboettger Assigned toNone skwashd
2004-02-12 powerstat Assigned to#934 None
2002-12-09 skwashd support_category_id10161
    Assigned toNone None

Back to the top

Powered by Savane 3.13-4448.
Corresponding source code