Re: fork of php mysql[i][nd] extension for script filehash based db auth
| From: | Johannes Schlüter | Date: | Thu, 24 Apr 2014 17:04:15 +0000 |
| Subject: | Re: fork of php mysql[i][nd] extension for script filehash based db auth | ||
| References: | 1 | Groups: | php.internals php.webmaster |
| Request: | Send a blank email to internals+get-73776@lists.php.net to get a copy of this message | ||
On Thu, 2014-04-24 at 05:58 -1000, Juan Velasquez wrote:
> Aloha,
> I'd like to see a fork of the mysql extensions and perhaps other
> databases (I'm actually a little partial to postgres), that allows mysql
> to authenticate php scripts based on their file contents, or hash, or inode
> modification time. Basically during mysql_[p]connect() calls,
You can do this from a mysqlnd plugin, see
http://schlueters.de/blog/index.php/blog/archives/146-mysqlnd-plugins-for-PHP-in-practice.html
(sorry, layout seems to be broken on the site, but content is there, it is also slightly outdated
but should help to get started)
More verbose documentation is on http://php.net/mysqlnd.plugin in PECL
search for mysqlnd to find other plugins you can use as examples.
We won't add that specific feature as you describe it as it seems to be
very environment specific.
johannes
--
ORACLE Deutschland B.V. & Co. KG, Riesstr. 25, D-80992 München
Amtsgericht München, HRA 95603 Geschäftsführer: Jürgen Kunz
Komplementärin: ORACLE Deutschland Verwaltung B.V.
Hertogswetering 163/167, 3543 AS Utrecht, Niederlande
Handelsregister der Handelskammer Midden-Niederlande, Nr. 30143697
Geschäftsführer: Alexander van der Ven, Astrid Kepper, Val Maher