<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: PHP LDAP change password page</title>
	<atom:link href="http://www.warden.pl/2009/09/02/php-ldap-change-password-page/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.warden.pl/2009/09/02/php-ldap-change-password-page/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed</link>
	<description>&#34;Idiopathic, from the Latin meaning we&#039;re idiots cause we can&#039;t figure out what&#039;s causing it.&#34; by dr House</description>
	<lastBuildDate>Mon, 06 Sep 2010 13:17:19 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Davie</title>
		<link>http://www.warden.pl/2009/09/02/php-ldap-change-password-page/#comment-1157</link>
		<dc:creator>Davie</dc:creator>
		<pubDate>Wed, 21 Jul 2010 22:28:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.radek.org.pl/?p=149#comment-1157</guid>
		<description>I added the line:

ldap_start_tls($con);

So that I have TLS enabled. Works flawlessly, but could use some minor spellchecking. Exactly what I was looking for otherwise! :-D</description>
		<content:encoded><![CDATA[<p>I added the line:</p>
<p>ldap_start_tls($con);</p>
<p>So that I have TLS enabled. Works flawlessly, but could use some minor spellchecking. Exactly what I was looking for otherwise! :-D</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ducn</title>
		<link>http://www.warden.pl/2009/09/02/php-ldap-change-password-page/#comment-1150</link>
		<dc:creator>Ducn</dc:creator>
		<pubDate>Fri, 02 Jul 2010 02:55:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.radek.org.pl/?p=149#comment-1150</guid>
		<description>Hi Radek. 

I&#039;ve been trying around but it didn&#039;t work for me. 
do I need any further configuration ?
I&#039;m using windows XP running: 
Appache 2.2.8 for windows
PHP ver 6. 
Windows Server 2003 ent - with LDAPS support.

you script keep saying :Found user

E200 - Your password cannot be change, please contact the administrator.
(note that: I am able to connect to LDAPS via port 635 already, and the user already exist on AD) . 

Thank you !!</description>
		<content:encoded><![CDATA[<p>Hi Radek. </p>
<p>I&#8217;ve been trying around but it didn&#8217;t work for me.<br />
do I need any further configuration ?<br />
I&#8217;m using windows XP running:<br />
Appache 2.2.8 for windows<br />
PHP ver 6.<br />
Windows Server 2003 ent &#8211; with LDAPS support.</p>
<p>you script keep saying :Found user</p>
<p>E200 &#8211; Your password cannot be change, please contact the administrator.<br />
(note that: I am able to connect to LDAPS via port 635 already, and the user already exist on AD) . </p>
<p>Thank you !!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel Lin</title>
		<link>http://www.warden.pl/2009/09/02/php-ldap-change-password-page/#comment-1141</link>
		<dc:creator>Daniel Lin</dc:creator>
		<pubDate>Mon, 17 May 2010 11:29:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.radek.org.pl/?p=149#comment-1141</guid>
		<description>It works with CentOS Directory Server 8.1.
Thanks for your effort.Very Good !!!^^</description>
		<content:encoded><![CDATA[<p>It works with CentOS Directory Server 8.1.<br />
Thanks for your effort.Very Good !!!^^</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sontaya</title>
		<link>http://www.warden.pl/2009/09/02/php-ldap-change-password-page/#comment-1135</link>
		<dc:creator>Sontaya</dc:creator>
		<pubDate>Mon, 19 Apr 2010 09:10:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.radek.org.pl/?p=149#comment-1135</guid>
		<description>Thank you for shared. Your script it worked.
I try already (SUSE Linux)



Thanks,
Sontaya
http://blog.susethailand.com</description>
		<content:encoded><![CDATA[<p>Thank you for shared. Your script it worked.<br />
I try already (SUSE Linux)</p>
<p>Thanks,<br />
Sontaya<br />
<a href="http://blog.susethailand.com" rel="nofollow">http://blog.susethailand.com</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Veera</title>
		<link>http://www.warden.pl/2009/09/02/php-ldap-change-password-page/#comment-1126</link>
		<dc:creator>Veera</dc:creator>
		<pubDate>Wed, 24 Mar 2010 13:03:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.radek.org.pl/?p=149#comment-1126</guid>
		<description>Thanks for the script. Great work.
I was looking this script all over. You made my life easy. Thanks a ton!!!!</description>
		<content:encoded><![CDATA[<p>Thanks for the script. Great work.<br />
I was looking this script all over. You made my life easy. Thanks a ton!!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Head</title>
		<link>http://www.warden.pl/2009/09/02/php-ldap-change-password-page/#comment-1120</link>
		<dc:creator>Head</dc:creator>
		<pubDate>Thu, 11 Mar 2010 08:32:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.radek.org.pl/?p=149#comment-1120</guid>
		<description>good work.
but i dont understand this line:

$rdn = sprintf($dn,$_POST[&quot;username&quot;]); 

and i think you have to filter the post values like:

if (!get_magic_quotes_gpc()) {
    $username = addslashes($_POST[&#039;username&#039;]);
    $oldPassword = addslashes($_POST[&#039;oldPassword&#039;]);
    $newPassword1 = addslashes($_POST[&#039;newPassword1&#039;]);
    $newPassword2 = addslashes($_POST[&#039;newPassword2&#039;]);
} else {
    $username = $_POST[&#039;username&#039;];
    $oldPassword = $_POST[&#039;oldPassword&#039;];
    $newPassword1 = $_POST[&#039;newPassword1&#039;];
    $newPassword2 = $_POST[&#039;newPassword2&#039;];
}

and then use:

changePassword($server,$dn,$username,$oldPassword,$newPassword1,$newPassword2);</description>
		<content:encoded><![CDATA[<p>good work.<br />
but i dont understand this line:</p>
<p>$rdn = sprintf($dn,$_POST["username"]); </p>
<p>and i think you have to filter the post values like:</p>
<p>if (!get_magic_quotes_gpc()) {<br />
    $username = addslashes($_POST['username']);<br />
    $oldPassword = addslashes($_POST['oldPassword']);<br />
    $newPassword1 = addslashes($_POST['newPassword1']);<br />
    $newPassword2 = addslashes($_POST['newPassword2']);<br />
} else {<br />
    $username = $_POST['username'];<br />
    $oldPassword = $_POST['oldPassword'];<br />
    $newPassword1 = $_POST['newPassword1'];<br />
    $newPassword2 = $_POST['newPassword2'];<br />
}</p>
<p>and then use:</p>
<p>changePassword($server,$dn,$username,$oldPassword,$newPassword1,$newPassword2);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ELMtree</title>
		<link>http://www.warden.pl/2009/09/02/php-ldap-change-password-page/#comment-1094</link>
		<dc:creator>ELMtree</dc:creator>
		<pubDate>Fri, 19 Feb 2010 05:58:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.radek.org.pl/?p=149#comment-1094</guid>
		<description>Thanks for the great script. Suits my needs perfectly and even looks clean and professional!</description>
		<content:encoded><![CDATA[<p>Thanks for the great script. Suits my needs perfectly and even looks clean and professional!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ajowi</title>
		<link>http://www.warden.pl/2009/09/02/php-ldap-change-password-page/#comment-1092</link>
		<dc:creator>Ajowi</dc:creator>
		<pubDate>Thu, 18 Feb 2010 14:03:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.radek.org.pl/?p=149#comment-1092</guid>
		<description>Thanks!
Works for me.</description>
		<content:encoded><![CDATA[<p>Thanks!<br />
Works for me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eduardo Silva</title>
		<link>http://www.warden.pl/2009/09/02/php-ldap-change-password-page/#comment-1089</link>
		<dc:creator>Eduardo Silva</dc:creator>
		<pubDate>Wed, 17 Feb 2010 21:27:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.radek.org.pl/?p=149#comment-1089</guid>
		<description>Thank you very much for this script. 
I was looking for this for a long time!
:)</description>
		<content:encoded><![CDATA[<p>Thank you very much for this script.<br />
I was looking for this for a long time!<br />
:)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Christene</title>
		<link>http://www.warden.pl/2009/09/02/php-ldap-change-password-page/#comment-1079</link>
		<dc:creator>Christene</dc:creator>
		<pubDate>Fri, 12 Feb 2010 19:52:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.radek.org.pl/?p=149#comment-1079</guid>
		<description>Thank you thank you so much! I have been at my wits end trying to do this. I ended up at a dead end a year ago. My nemesis project just got pushed back to the top of my list and your script is just what I need to get started! Your script just taught me more about interacting with LDAP via php than anything else I&#039;ve read or samples I&#039;ve tried to dissect. I normally work with jsp and this is just about impossible to do with that! Thanks again.</description>
		<content:encoded><![CDATA[<p>Thank you thank you so much! I have been at my wits end trying to do this. I ended up at a dead end a year ago. My nemesis project just got pushed back to the top of my list and your script is just what I need to get started! Your script just taught me more about interacting with LDAP via php than anything else I&#8217;ve read or samples I&#8217;ve tried to dissect. I normally work with jsp and this is just about impossible to do with that! Thanks again.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
