Webadmin still broken

Alex Moen alexm at ndtel.com
Mon Apr 1 17:47:39 CEST 2013


OK.

Fooling around here, I have tried a brute-force change.

In /usr/share/kolab-webadmin/lib/SQL.php, I have made the following changes:


#            $this->_username = $_uri['user'];
             $this->_username = kolab;
#            $this->_password = $_uri['pass'];
             $this->_password = {kolab password string from the initial 
install here, obfuscated for my protection :) };
#            $this->_database = str_replace('/','',$_uri['path']);
             $this->_database = kolab;

Now, I can log in and get the "Add User" dialog.

So, why is the username, password, and db name not being passed to the 
backend via the uri?

Thanks!

Alex



On 04/01/2013 10:40 AM, Alex Moen wrote:
> Hi Michael, and thanks for the pointer.  I have actually already tried
> that, but there are a couple of problems:
>
> 1. I don't know what password the function is trying to use.  I have
> tried a couple of
> 2. Why (or where is it configured) is Kolab trying to use "user" rather
> than the "cn=Directory Manager" username that I have authenticated with?
> 3. What is the meaning of the other two log warnings?  Are they related
> to this problem?  Or are they an effect of a failed login?
>
> Thanks!
>
> Alex
>
>
>
> On 03/26/2013 07:16 PM, Kolab Users wrote:
>> Hi Alex,
>>
>> I would personally use phpMyAdmin and login to the DB, check privileges
>> and make sure that user at localhost has ALL PRIVILEGES access to the DB.
>>
>> On 27-Mar-13 6:45 AM, Alex Moen wrote:
>>> I cannot figure out why I can't get Webadmin to work.
>>>
>>> I have followed the instructions in the installation guide, and I can
>>> log in with "cn=Directory Manager" and the password that I set and see
>>> the "Users", "Groups", etc. icons.  However, when I select "Users" and
>>> get to the "Users" subscreen, when I click "Add User" the
>>> /var/log/kolab-webadmin/errors log shows the following:
>>>
>>> [26-Mar-2013 19:44:24 UTC] PHP Warning:  mysql_connect(): Access denied
>>> for user 'user'@'localhost' (using password: YES) in
>>> /usr/share/kolab-webadmin/lib/SQL.php on line 149
>>> [26-Mar-2013 19:44:24 UTC] PHP Warning:  mysql_select_db() expects
>>> parameter 2 to be resource, boolean given in
>>> /usr/share/kolab-webadmin/lib/SQL.php on line 150
>>> [26-Mar-2013 19:44:24 UTC] PHP Warning:  mysql_error() expects parameter
>>> 1 to be resource, boolean given in /usr/share/kolab-webadmin/lib/SQL.php
>>> on line 87
>>> [26-Mar-2013 14:44:24 -0500](cni490ge4b5bqk2ip4j1atucp0): [ERROR] SQL
>>> Error:
>>>
>>> Any ideas anyone?
>>>
>>> TIA
>>>
>>> Alex
>


-- 
Alex Moen
NSTII
North Dakota Telephone Company
701-662-6481




More information about the users mailing list