phpgroupware-developers
[Top][All Lists]
Advanced

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

Re: [Phpgroupware-developers] autocreate accounts solved?


From: Chris Weiss
Subject: Re: [Phpgroupware-developers] autocreate accounts solved?
Date: Fri, 05 Apr 2002 17:50:05 +0000

Took me a while to test this because I found another really obscure bug.
If you try to autocreate a user that has the same name as an already exsisting
phpgw group then name2id() will return the group's ID and the login will be 
failed.

Other than that, this patch works.  The true bug is an SQL error because
$account_id == '' and the the SQL is expecting a number.

Alex Borges (address@hidden) wrote*:
>
>Or at least i think so.....wanna see what you guys think
>
>I guess youd have to do the same with accounts_ldap and the others
>
>
>Index: class.accounts_sql.inc.php
>===================================================================
>RCS file:
>/cvsroot/phpgroupware/phpgwapi/inc/class.accounts_sql.inc.php,v
>retrieving revision 1.80
>diff -r1.80 class.accounts_sql.inc.php
>227d226
><
>228a228
>>
>231a232,235
>>                       }
>>                       elseif($account_id == '')
>>                       {
>>                               return False;
>
>
>
>
>
>_______________________________________________
>Phpgroupware-developers mailing list
>address@hidden
>http://mail.gnu.org/mailman/listinfo/phpgroupware-developers
>




reply via email to

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