Newsgroups: php.internals,php.webmaster Path: news.php.net Xref: news.php.net php.internals:73776 php.webmaster:18804 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 22849 invoked from network); 24 Apr 2014 17:04:45 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Apr 2014 17:04:45 -0000 Authentication-Results: pb1.pair.com header.from=johannes.schlueter@oracle.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=johannes.schlueter@oracle.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain oracle.com designates 141.146.126.69 as permitted sender) X-PHP-List-Original-Sender: johannes.schlueter@oracle.com X-Host-Fingerprint: 141.146.126.69 aserp1040.oracle.com Received: from [141.146.126.69] ([141.146.126.69:45540] helo=aserp1040.oracle.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 40/40-20919-B2449535 for ; Thu, 24 Apr 2014 13:04:44 -0400 Received: from ucsinet21.oracle.com (ucsinet21.oracle.com [156.151.31.93]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id s3OH4c7O026435 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 24 Apr 2014 17:04:39 GMT Received: from userz7021.oracle.com (userz7021.oracle.com [156.151.31.85]) by ucsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id s3OH4aTI006080 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Thu, 24 Apr 2014 17:04:36 GMT Received: from abhmp0006.oracle.com (abhmp0006.oracle.com [141.146.116.12]) by userz7021.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id s3OH4Zkb006049; Thu, 24 Apr 2014 17:04:35 GMT Received: from [192.168.2.31] (/93.104.9.62) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 24 Apr 2014 10:04:34 -0700 To: Juan Velasquez Cc: internals@lists.php.net, php-webmaster@lists.php.net, Zeev Suraski , Zak Greant , Georg Richter , Andrey Hristov , Ulf Wendel , George Schlossnagle , Johannes Schlueter In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Organization: Oracle Corporation Date: Thu, 24 Apr 2014 19:04:15 +0200 Message-ID: <1398359055.2829.3328.camel@guybrush> Mime-Version: 1.0 X-Mailer: Evolution 2.30.3 Content-Transfer-Encoding: quoted-printable X-Source-IP: ucsinet21.oracle.com [156.151.31.93] Subject: Re: [PHP-DEV] fork of php mysql[i][nd] extension for script filehash based db auth From: johannes.schlueter@oracle.com (Johannes =?ISO-8859-1?Q?Schl=FCter?=) 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 mysq= l > to authenticate php scripts based on their file contents, or hash, or ino= de > 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-P= HP-in-practice.html (sorry, layout seems to be broken on the site, but cont= ent 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 --=20 ORACLE Deutschland B.V. & Co. KG, Riesstr. 25, D-80992 M=C3=BCnchen Amtsgericht M=C3=BCnchen, HRA 95603 Gesch=C3=A4ftsf=C3=BChrer: J=C3=BCrgen = Kunz Komplement=C3=A4rin: ORACLE Deutschland Verwaltung B.V. Hertogswetering 163/167, 3543 AS Utrecht, Niederlande Handelsregister der Handelskammer Midden-Niederlande, Nr. 30143697 Gesch=C3=A4ftsf=C3=BChrer: Alexander van der Ven, Astrid Kepper, Val Maher