[dev] Conf.xml fixes for people who use user@host auth for SQL.

Chris Shepherd cshepherd at s21c.net
Thu Jan 16 15:51:23 PST 2003


Hi all, 
  I've patched the conf.xml files for aogra, nag, and mnemo to allow you to not 
specify a password. This is because when I was going through and configuring my 
DB connections, I ran into trouble with the web configuration. 
  All of my mysql stuff for my development horde is done using user at host 
without a password. Entering a password causes mysql to fail to authenticate 
the user. The configuration interface wouldn't let me leave password blank, so 
I would have to generate it with garbage in the field, and then edit conf.php 
by hand after the fact, which kind of defeated the purpose of having the 
configuration interface, I thought. 
  Patches follow.

-- 
Chris Shepherd




-------------------------------------------------
This email may contain confidential information. Use of any such information
is strictly prohibited without express written consent of the sender
-------------- next part --------------
Index: agora/config/conf.xml
===================================================================
RCS file: /repository/agora/config/conf.xml,v
retrieving revision 1.10
diff -u -r1.10 conf.xml
--- agora/config/conf.xml	14 Dec 2002 16:51:21 -0000	1.10
+++ agora/config/conf.xml	16 Jan 2003 20:46:46 -0000
@@ -26,7 +26,7 @@
    </configenum>
    <configstring name="hostspec" desc="Database server/host/ODBC dsn">localhost</configstring>
    <configstring name="username" desc="Username to connect to the database as">horde</configstring>
-   <configstring name="password" desc="Password to connect with">****</configstring>
+   <configstring name="password" required="false" desc="Password to connect with">****</configstring>
    <configstring name="database" desc="Database name to use">horde</configstring>
    <configstring name="socket" required="false" desc="Location of UNIX socket, if using one">/var/lib/mysql/mysql.sock</configstring>
    <configinteger name="port" required="false" desc="Port the DB is running on, if non-standard">3306</configinteger>
-------------- next part --------------
Index: mnemo/config/conf.xml
===================================================================
RCS file: /repository/mnemo/config/conf.xml,v
retrieving revision 1.9
diff -u -r1.9 conf.xml
--- mnemo/config/conf.xml	28 Dec 2002 14:37:03 -0000	1.9
+++ mnemo/config/conf.xml	16 Jan 2003 20:10:38 -0000
@@ -46,7 +46,7 @@
    </configenum>
    <configstring name="hostspec" desc="Database server/host/ODBC dsn">localhost</configstring>
    <configstring name="username" desc="Username to connect to the database as">horde</configstring>
-   <configstring name="password" desc="Password to connect with">****</configstring>
+   <configstring required="false" name="password" desc="Password to connect with">****</configstring>
    <configstring name="database" desc="Database name to use">horde</configstring>
    <configstring required="false" name="socket" desc="Location of UNIX socket, if using one">/var/lib/mysql/mysql.sock</configstring>
    <configinteger required="false" name="port" desc="Port the DB is running on, if non-standard">3306</configinteger>
-------------- next part --------------
Index: nag/config/conf.xml
===================================================================
RCS file: /repository/nag/config/conf.xml,v
retrieving revision 1.8
diff -u -r1.8 conf.xml
--- nag/config/conf.xml	28 Dec 2002 03:04:06 -0000	1.8
+++ nag/config/conf.xml	16 Jan 2003 20:10:04 -0000
@@ -49,7 +49,7 @@
    </configenum>
    <configstring name="hostspec" desc="Database server/host/ODBC dsn">localhost</configstring>
    <configstring name="username" desc="Username to connect to the database as">horde</configstring>
-   <configstring name="password" desc="Password to connect with">****</configstring>
+   <configstring name="password" required="false" desc="Password to connect with">****</configstring>
    <configstring name="database" desc="Database name to use">horde</configstring>
    <configstring name="socket" required="false" desc="Location of UNIX socket, if using one">/var/lib/mysql/mysql.sock</configstring>
    <configinteger name="port" required="false" desc="Port the DB is running on, if non-standard">3306</configinteger>


More information about the dev mailing list