phpgroupware-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-tracker] [ 100632 ] NIS Authentication with autoaccount ge


From: nobody
Subject: [Phpgroupware-tracker] [ 100632 ] NIS Authentication with autoaccount gen
Date: Wed, 20 Mar 2002 09:25:52 -0500

Support Request #100632, was updated on 2002-Mar-20 15:25
You can respond by visiting: 
http://savannah.gnu.org/support/?func=detailsupport&support_id=100632&group_id=509

Category: Bug Report
Status: Open
Priority: 5
Summary: NIS Authentication with autoaccount gen

By: antw
Date: 2002-Mar-20 15:25

Message:
Logged In: YES 
user_id=3929
Browser: Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:0.9.7) Gecko/20011221

NIS Authentication with autogeneration of accounts
fails quite horribly with a PHP error message.

Works fine if you precreate the account in the SQL
database and just leave authentication to the NIS.

A small and dirty hack in the file:
phpgwapi/inc/class.sessions_php4.inc.php

within the create() function changing:
if
(!$GLOBALS['phpgw']->auth->authenticate($this->account_lid,
$this->passwd, $this->passwd_type) ||
$GLOBALS['phpgw']->accounts->get_type($this->account_lid)
== 'g' )
                        {
                                return False;
                                exit;
                        }

to

if
(!$GLOBALS['phpgw']->auth->authenticate($this->account_lid,
$this->passwd, $this->passwd_type))
                        {
                                return False;
                                exit;
                        }

Not really sure what the check for 'g' account type is
supposed to do, only that it trys to access the
database before the account is created in the next if
statement.

I am going to look for a cleaner solution to this issue
that leaves that check in the code in some form and
submit a patch unless someone else fixes it first.

This is a major issue for us since we have many
thousands of NIS users and I'd rather not have to keep
double records.


----------------------------------------------------------------------
You can respond by visiting: 
http://savannah.gnu.org/support/?func=detailsupport&support_id=100632&group_id=509



reply via email to

[Prev in Thread] Current Thread [Next in Thread]