Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:71042 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 76995 invoked from network); 10 Jan 2014 13:25:03 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 Jan 2014 13:25:03 -0000 Authentication-Results: pb1.pair.com header.from=tiziano.mueller@stepping-stone.ch; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=tiziano.mueller@stepping-stone.ch; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain stepping-stone.ch from 194.176.109.206 cause and error) X-PHP-List-Original-Sender: tiziano.mueller@stepping-stone.ch X-Host-Fingerprint: 194.176.109.206 mail.stepping-stone.ch Linux 2.6 Received: from [194.176.109.206] ([194.176.109.206:54605] helo=mail.stepping-stone.ch) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 59/E0-03446-DA4FFC25 for ; Fri, 10 Jan 2014 08:25:02 -0500 Received: from localhost (janitor-01.int.stepping-stone.ch [10.17.98.12]) by mta-01.int.stepping-stone.ch (Postfix) with ESMTP id 00EFFAA17D; Fri, 10 Jan 2014 14:24:58 +0100 (CET) X-Virus-Scanned: amavisd-new at stepping-stone.ch Received: from mta-01.int.stepping-stone.ch ([10.17.98.30]) by localhost (janitor-01.int.stepping-stone.ch [10.17.98.12]) (amavisd-new, port 10026) with LMTP id 8KcKgYOvyYky; Fri, 10 Jan 2014 14:24:56 +0100 (CET) Received: from [192.168.178.100] (xdsl-31-165-100-117.adslplus.ch [31.165.100.117]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mail.stepping-stone.ch (Postfix) with ESMTPSA id A47CDAA17A; Fri, 10 Jan 2014 14:24:55 +0100 (CET) Message-ID: <1389360295.4809.122.camel@storm> Reply-To: tiziano.mueller@stepping-stone.ch To: internals@lists.php.net Cc: Stig Venaas , Douglas Goldstein , Pierre-Alain Joye Date: Fri, 10 Jan 2014 14:24:55 +0100 Organization: stepping stone GmbH Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.6.4 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Exposing LDAP controls From: tiziano.mueller@stepping-stone.ch (Tiziano =?ISO-8859-1?Q?M=FCller?=) Hi there As suggested by Pierre, I am now resending this on the internals ml (with some minor clarifications): While trying to add support for LDAP assertions (rfc4528, [1]) in the PHP LDAP bindings I started to think about whether it would be a good idea to expose LDAP controls (resp. LDAP control values) to the PHP user directly. I think it would allow more flexibility when implementing other controls, like the the LDAP Extension for Scrolling View Browsing of Search Results [2a], [2b]. Furthermore it would follow a similar approach as the Python LDAP library. On the other hand it probably makes the features harder to use than with custom wrappers (like already done for the pagination extension), but this is again something which could be solved by pure PHP wrapper libraries. This means we would have different functions for generating specific controls, represented as resources to the PHP user. A list of such resources can then be passed to the ldap_modify, etc. functions (like the corresponding C functions). What do you think? Thanks in advance, best, Tiziano [1] https://github.com/php/php-src/pull/538 [2a] http://www.ietf.org/proceedings/55/I-D/draft-ietf-ldapext-ldapv3-vlv-09.txt [2b] http://www.openldap.org/software/man.cgi?query=slapo-sssvlv&apropos=0&sektion=0&manpath=OpenLDAP+2.4-Release&format=html -- stepping stone GmbH Neufeldstrasse 9 CH-3012 Bern Telefon: +41 31 332 53 63 www.stepping-stone.ch tiziano.mueller@stepping-stone.ch