Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:99734 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 22650 invoked from network); 4 Jul 2017 07:58:16 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Jul 2017 07:58:16 -0000 Authentication-Results: pb1.pair.com header.from=andreas@heigl.org; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=andreas@heigl.org; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain heigl.org designates 195.191.240.18 as permitted sender) X-PHP-List-Original-Sender: andreas@heigl.org X-Host-Fingerprint: 195.191.240.18 hos109.unaxus.net Received: from [195.191.240.18] ([195.191.240.18:43077] helo=hos109.unaxus.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 95/0D-15131-69A4B595 for ; Tue, 04 Jul 2017 03:58:14 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=heigl.org; s=default; h=Content-Type:In-Reply-To:MIME-Version:Date:Message-ID:From: References:To:Subject:Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID :Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To: Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe :List-Post:List-Owner:List-Archive; bh=gwYVSPCRLOwINDlxxpSNuv5up8kbYDKq4m+An0d8oZ0=; b=gbBSYlaXxhpgQvH/dQAi7MeA3m XUixQnzFwiXVgrpAgKyrh5LMcRzk8/Tlxm2JbxdkO53VB3m3sAoSiU4YGxs+2PskFAAjLFtbjfAAR 1zUvV+fYBpmKpvIbZCZRVoPj/SIOe7uOxCIeG2vIJRDdX43oqs7JbFxiZhsLxSNOocElFAT8+/fUI wC4XJn2FX794KThxGhp9XIDA18ZjKvjX7SuM1g2kAujB8FewZFow3uPYz8uz4l3V4OUwDOhvJgiAw K3gY052RV5b2dYwNWLCG/dJ5F2Anwy+nMyCHObN5k8EuEcgc/jXHTyoInmfPhmSOzLzDoL6OAQR58 bOI6Itlw==; Received: from [212.185.30.151] (port=49276 helo=localadmins-MacBook-Pro.local) by hos109.unaxus.net with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.89) (envelope-from ) id 1dSIio-000Jf2-SC; Tue, 04 Jul 2017 09:58:10 +0200 To: =?UTF-8?Q?C=c3=b4me_Chilliet?= , internals@lists.php.net References: <2963553.WttLOBJENj@mcmic-probook> <16.D9.15131.F32CA595@pb1.pair.com> <4837555.saN6ZvxSLO@mcmic-probook> Openpgp: id=967CCFA50DFFEE03BB8BF5F2CA9213C75BFCE472 Message-ID: <96e3802b-7bf8-5e2a-3d16-666351dbcb74@heigl.org> Date: Tue, 4 Jul 2017 09:58:07 +0200 MIME-Version: 1.0 In-Reply-To: <4837555.saN6ZvxSLO@mcmic-probook> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="RKc9xOAQgRJQ47h71oCm3IqgNXaFtFTCp" X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - hos109.unaxus.net X-AntiAbuse: Original Domain - lists.php.net X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - heigl.org X-Get-Message-Sender-Via: hos109.unaxus.net: authenticated_id: a.heigl+heigl.org/only user confirmed/virtual account not confirmed X-Authenticated-Sender: hos109.unaxus.net: a.heigl@heigl.org Subject: Re: [PHP-DEV] Re: [RFC] LDAP EXOP From: andreas@heigl.org (Andreas Heigl) --RKc9xOAQgRJQ47h71oCm3IqgNXaFtFTCp Content-Type: multipart/mixed; boundary="QtP5l92IMNajChHVBMuu6SVAexwNNgGr9"; protected-headers="v1" From: Andreas Heigl To: =?UTF-8?Q?C=c3=b4me_Chilliet?= , internals@lists.php.net Message-ID: <96e3802b-7bf8-5e2a-3d16-666351dbcb74@heigl.org> Subject: Re: [PHP-DEV] Re: [RFC] LDAP EXOP References: <2963553.WttLOBJENj@mcmic-probook> <16.D9.15131.F32CA595@pb1.pair.com> <4837555.saN6ZvxSLO@mcmic-probook> In-Reply-To: <4837555.saN6ZvxSLO@mcmic-probook> --QtP5l92IMNajChHVBMuu6SVAexwNNgGr9 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hey C=C3=B4me Am 04.07.17 um 09:19 schrieb C=C3=B4me Chilliet: [...] >=20 > For ldap_exop_passwd, you proposed: > string|FALSE ldap_exop_passwd(resource $link [, string $user [, string > $oldPassword [, string $newPassword]]] - The returned string is the new= > password of the user. Either the given newPassword or a newly generated= one. >=20 > Does it makes sense to return the newPassword on success when it=E2=80=99= s not generated? I think I would prefer if returning a string explicitely= means a password was generated, otherwise it gets too confused (3 possib= le meaning for the returned value!). I'd always return the new password. In userland users can compare the password passed in to the returned password to see whether it was generated or altered in a way. I think it makes it more consistent than having to check for three values (FALSE, null|'' and a string). Cheers Andreas --=20 ,,, (o o) +---------------------------------------------------------ooO-(_)-Ooo-+ | Andreas Heigl | | mailto:andreas@heigl.org N 50=C2=B022'59.5" E 08=C2=B0= 23'58" | | http://andreas.heigl.org http://hei.gl/wiFKy7 | +---------------------------------------------------------------------+ | http://hei.gl/root-ca | +---------------------------------------------------------------------+ --QtP5l92IMNajChHVBMuu6SVAexwNNgGr9-- --RKc9xOAQgRJQ47h71oCm3IqgNXaFtFTCp Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Comment: GPGTools - http://gpgtools.org iQIzBAEBCAAdFiEENHMr85T+FLwCJRBgjNqPc6i4Q/AFAllbSo8ACgkQjNqPc6i4 Q/BAjw//fJgsBUJ554teRNtoqUy8moMgvrw3rH7Z9puP73GkW/Jkz4MukrmpUCgN rwHa0EI3KvM3Zi3V2gJuTH0cZmcgGhZxzgG4ecSOZVxe9JK3xrQwK7fx3qvcSt4/ gGYUDv0meuPtJ+uqAWQh6HKZq7J6ks2wqGQ40SZ2FtJQRaSW3VwmNUg3D5o83fjG 1CrUBZrGxFGpQ0/T8CoslMsk1E2BFK7n5onI5lfnnJS/+XVwiJTjvRHW0Qm/ULpQ y1iWAm0wegxk8/IREw8ypF2/P+VqECx6xqvEMADqtz8vUBelx/bhRjDsjgnLGwZS /sPlW3G1gA3NUM95HFJNPXSSKwC3EeywPmRVit4UnCLdIykDZUXLZjFC8WuzA87L X42p+RFEUU6GOF9QBpb8uSdbl+Ji1V30wmXGZTNn/gCdrtmJesLNHYDkg9BcjAgx 09X7lo1+sX4mA9Kg+DJZvk8K70ttG7zcgFxxqqqn0UDF96LFd8ihEpzlzR289DAc txdZc87f+BauYTN7clJcr8pXlZKpv4PEVe0ePYGqHa7PPeCtBR0IPHGAa/VZWZST PQzBKK199ncPRO7mv8W4k3A+rVWj7qTplJK3P7yQF054NSpnWw9B6Xg+r2YsZyrK fZTRa30KNdL7xL2HbwNknW/7Qqg/BZNn7J2PFWv9xT7Yql55pJo= =d8Md -----END PGP SIGNATURE----- --RKc9xOAQgRJQ47h71oCm3IqgNXaFtFTCp--