[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Phpgroupware-users] Update: Ldap auth problems...
From: |
Izzy Blacklock |
Subject: |
Re: [Phpgroupware-users] Update: Ldap auth problems... |
Date: |
Sun, 30 Mar 2003 10:55:31 -0700 |
User-agent: |
KMail/1.4.3 |
On Sunday 30 Mar 2003 3:09 am, Lars Kneschke(priv.) wrote:
> >The problem lies elsewhere. After authentication, what happens next
> >in the
> >login process? I end up with the login prompt back after the browser
> >spins
> >it's wheels for a bit.
>
> Have a look at login.php. Line 217. It begins with
>
> $GLOBALS['sessionid'] = $GLOBALS['phpgw']->session->create
>
> This where you session becomes created. In the following if-loop it gets
> checked if the creation of your session was successfull.
>
> Just add some debug output(print "(not) failed<br>";) into both if parts.
Okay, My session is not being created. I've found my way into
class.sessions_php4.inc.php trying to trace though the problem. I'm getting
output as I expected (thanks for the print() tip above, much easier then
creating a log file!), until line 359. Here's a snip; reformatting and
print() commands added by me:
-------------- 8< ------------------
if ((!$GLOBALS['phpgw']->accounts->exists($this->account_lid)) && $GLOBALS[
'phpgw_info']['server']['auto_create_acct'] == True)
{
print("Account Doesn't exist and auto Create set<p>");
$this->account_id = $GLOBALS['phpgw']->accounts->auto_add($this->ac
count_lid, $passwd);
}
else
{
print("Account Doesn't exist and auto Create NOT set<p>");
$this->account_id = $GLOBALS['phpgw']->accounts->name2id($this->acc
ount_lid);
}
---------------- 8< ---------------------------------------
If I read this correctly, it's checking if an account doesn't exist and if
auto create is true. What caught me off guard is that I DO have auto create
set to true and I still end up in the else section. Is autocreate not used
when LDAP accounts are set?
...Izzy