6.0.0-beta6
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
3/31/26
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#7972] SQL SSL support
*
Your Email Address
*
Spam protection
Enter the letters below:
. .__ .__ . .._. | [__)| \|\/| | |___| \|__/| |_|_
Comment
> Horde as it stands cannot make a secured connection to a remote SQL server. > > > > This is an easy feature to implement: mysqli and PEAR DB both support > it already. All that needs to be done is changing > /lib/Horde/Rdo/Adapter/Mysqli.php on line 171 to use mysqli_init, > mysqli_ssl_set, and mysqli_real_connect (there is already a comment > there to that effect) and then going through every call to > DB::connect (such as the one on nag/lib/Driver/sql.php around line > 590) in all horde applications and changing two things: > > a) add a "ca" to _params > > b) add "ssl"=>true in the options array passed to DB::connect > > > > So, steps to implement this: > > 1) Add the user interface to accept a SSL CA against which to verify > the server (and, if you like, a client cert/key to use) and a > checkbox for enabling SSL > > 2) Modify the MySQLi Rdo adaptor to use these options > > 3) Modify each call to DB::connect to use these options > > > > I completed these steps myself and verified that horde and its > applications can now access a database where I gave the horde user > "grant all privileges ... require ssl" permissions. Previously the > database connection failed. All told, this work took twenty minutes, > although I hardcoded my CA cert instead of actually adding an option > to conf.php.
Attachment
Watch this ticket
N
ew Ticket
M
y Tickets
S
earch
Q
uery Builder
R
eports
Saved Queries
Open Bugs
Bugs waiting for Feedback
Open Bugs in Releases
Open Enhancements
Enhancements waiting for Feedback
Bugs with Patches
Enhancements with Patches
Release Showstoppers
Stalled Tickets
New Tickets
Horde 5 Showstoppers