<?xml version="1.0" encoding="UTF-8"?><!-- generator="bbPress" -->

<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
<title>WordPress MU Forums Topic: MU, LDAP and XMLRPC</title>
<link>http://mu.wordpress.org/forums/</link>
<description>WordPress MU Forums Topic: MU, LDAP and XMLRPC</description>
<language>en</language>
<pubDate>Sat, 25 May 2013 02:45:16 +0000</pubDate>

<item>
<title>rharrison on "MU, LDAP and XMLRPC"</title>
<link>http://mu.wordpress.org/forums/topic/7099#post-46065</link>
<pubDate>Mon, 10 Mar 2008 22:22:37 +0000</pubDate>
<dc:creator>rharrison</dc:creator>
<guid isPermaLink="false">46065@http://mu.wordpress.org/forums/</guid>
<description>&#60;p&#62;Do we know when to expect the fix to be in the upstream MU code?
&#60;/p&#62;</description>
</item>
<item>
<title>PhoenixRises on "MU, LDAP and XMLRPC"</title>
<link>http://mu.wordpress.org/forums/topic/7099#post-42881</link>
<pubDate>Fri, 04 Jan 2008 12:30:06 +0000</pubDate>
<dc:creator>PhoenixRises</dc:creator>
<guid isPermaLink="false">42881@http://mu.wordpress.org/forums/</guid>
<description>&#60;p&#62;have submitted a patch into wordpress trac.
&#60;/p&#62;</description>
</item>
<item>
<title>PhoenixRises on "MU, LDAP and XMLRPC"</title>
<link>http://mu.wordpress.org/forums/topic/7099#post-42880</link>
<pubDate>Fri, 04 Jan 2008 10:55:37 +0000</pubDate>
<dc:creator>PhoenixRises</dc:creator>
<guid isPermaLink="false">42880@http://mu.wordpress.org/forums/</guid>
<description>&#60;p&#62;agreed.
&#60;/p&#62;</description>
</item>
<item>
<title>JanBrasna on "MU, LDAP and XMLRPC"</title>
<link>http://mu.wordpress.org/forums/topic/7099#post-42860</link>
<pubDate>Fri, 04 Jan 2008 02:33:09 +0000</pubDate>
<dc:creator>JanBrasna</dc:creator>
<guid isPermaLink="false">42860@http://mu.wordpress.org/forums/</guid>
<description>&#60;p&#62;Actually the same applies to plain vanilla WP, see &#60;a href=&#34;http://trac.wordpress.org/browser/trunk/wp-includes/user.php#L16&#34; rel=&#34;nofollow&#34;&#62;http://trac.wordpress.org/browser/trunk/wp-includes/user.php#L16&#60;/a&#62; - it might be better to submit it for WP trunk and have it then re-applied to WPMU from there.&#60;/p&#62;
&#60;p&#62;Opinions?
&#60;/p&#62;</description>
</item>
<item>
<title>PhoenixRises on "MU, LDAP and XMLRPC"</title>
<link>http://mu.wordpress.org/forums/topic/7099#post-42855</link>
<pubDate>Thu, 03 Jan 2008 23:53:15 +0000</pubDate>
<dc:creator>PhoenixRises</dc:creator>
<guid isPermaLink="false">42855@http://mu.wordpress.org/forums/</guid>
<description>&#60;p&#62;Will look into it in the morning.
&#60;/p&#62;</description>
</item>
<item>
<title>andrea_r on "MU, LDAP and XMLRPC"</title>
<link>http://mu.wordpress.org/forums/topic/7099#post-42846</link>
<pubDate>Thu, 03 Jan 2008 22:46:58 +0000</pubDate>
<dc:creator>andrea_r</dc:creator>
<guid isPermaLink="false">42846@http://mu.wordpress.org/forums/</guid>
<description>&#60;p&#62;you'll have to submit it as a patch first and see if donncha will take it. That's the faastest way, I think.
&#60;/p&#62;</description>
</item>
<item>
<title>JanBrasna on "MU, LDAP and XMLRPC"</title>
<link>http://mu.wordpress.org/forums/topic/7099#post-42842</link>
<pubDate>Thu, 03 Jan 2008 21:44:21 +0000</pubDate>
<dc:creator>JanBrasna</dc:creator>
<guid isPermaLink="false">42842@http://mu.wordpress.org/forums/</guid>
<description>&#60;p&#62;That sounds good. Can anyone from the devs confirm that it's okay so that it could be submitted as a patch?
&#60;/p&#62;</description>
</item>
<item>
<title>PhoenixRises on "MU, LDAP and XMLRPC"</title>
<link>http://mu.wordpress.org/forums/topic/7099#post-42692</link>
<pubDate>Mon, 31 Dec 2007 14:18:45 +0000</pubDate>
<dc:creator>PhoenixRises</dc:creator>
<guid isPermaLink="false">42692@http://mu.wordpress.org/forums/</guid>
<description>&#60;p&#62;JanBrasna makes a good point. No, as far as I know there is no pluggable function for this at the moment (but I could have missed it), however, wp_login is pluggable....&#60;/p&#62;
&#60;p&#62;According to the code comments user_pass_ok is only used in xmlrpc.php so by editing one line in the function login_pass_ok (xmlrpc.php) we get the same functionality for less work.&#60;/p&#62;
&#60;p&#62;&#60;code&#62;function login_pass_ok($user_login, $user_pass) {&#60;br /&#62;
    &#60;strong&#62;if (!wp_login($user_login, $user_pass)) {&#60;/strong&#62;&#60;br /&#62;
        $this-&#38;gt;error = new IXR_Error(403, __('Bad login/pass combination.'));&#60;br /&#62;
        return false;&#60;br /&#62;
    }&#60;br /&#62;
    return true;&#60;br /&#62;
}&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;Perhaps that should be passed back upstream? Making this change means user_pass_ok can be removed from user.php entirely, and when a blog is XML-RPC enabled no files would need changed, it will automatically use the current authentication method whether its the default WP auth, LDAP or anything else that overrides wp_login.
&#60;/p&#62;</description>
</item>
<item>
<title>JanBrasna on "MU, LDAP and XMLRPC"</title>
<link>http://mu.wordpress.org/forums/topic/7099#post-42688</link>
<pubDate>Mon, 31 Dec 2007 00:12:40 +0000</pubDate>
<dc:creator>JanBrasna</dc:creator>
<guid isPermaLink="false">42688@http://mu.wordpress.org/forums/</guid>
<description>&#60;p&#62;Is there a will to make the auth mechanism pluggable? Or there's already a way, but just unnoticed?
&#60;/p&#62;</description>
</item>
<item>
<title>PhoenixRises on "MU, LDAP and XMLRPC"</title>
<link>http://mu.wordpress.org/forums/topic/7099#post-42670</link>
<pubDate>Sun, 30 Dec 2007 10:43:53 +0000</pubDate>
<dc:creator>PhoenixRises</dc:creator>
<guid isPermaLink="false">42670@http://mu.wordpress.org/forums/</guid>
<description>&#60;p&#62;So, in ~/wp-includes/user.php replace the function user_pass_ok with the following:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;include_once( ABSPATH . &#38;quot;wp-content/mu-plugins/ldap/lib/ldap_ro.php&#38;quot; );
function user_pass_ok($user_login, $user_pass) {
    $ldapServerAddr    = get_site_option(&#38;quot;ldapServerAddr&#38;quot;);

    $ldapServerOU      = get_site_option(&#38;quot;ldapServerOU&#38;quot;);

    $ldapServerCN      = get_site_option(&#38;quot;ldapServerCN&#38;quot;);

    $ldapServerPass    = get_site_option(&#38;quot;ldapServerPass&#38;quot;);

    $ldapServerPort    = get_site_option(&#38;quot;ldapServerPort&#38;quot;);

    $ldapEnableSSL     = get_site_option(&#38;quot;ldapEnableSSL&#38;quot;);
    $ldapString        = &#38;quot;$ldapServerAddr:$ldapServerOU:$ldapServerCN:$ldapServerPass:$ldapServerPort:$ldapEnableSSL&#38;quot;;
    $server = new LDAP_ro($ldapString);
    $user_data = null;
    if($server-&#38;gt;Authenticate($user_login,$user_pass, $user_data) == 0)
        return true;
    return false;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;That _should_ work.
&#60;/p&#62;</description>
</item>
<item>
<title>dubaidan2 on "MU, LDAP and XMLRPC"</title>
<link>http://mu.wordpress.org/forums/topic/7099#post-42669</link>
<pubDate>Sun, 30 Dec 2007 08:50:04 +0000</pubDate>
<dc:creator>dubaidan2</dc:creator>
<guid isPermaLink="false">42669@http://mu.wordpress.org/forums/</guid>
<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;Could you post the code in full. Would really help here with same problem.&#60;/p&#62;
&#60;p&#62;Thanks
&#60;/p&#62;</description>
</item>
<item>
<title>PhoenixRises on "MU, LDAP and XMLRPC"</title>
<link>http://mu.wordpress.org/forums/topic/7099#post-42606</link>
<pubDate>Fri, 28 Dec 2007 16:55:30 +0000</pubDate>
<dc:creator>PhoenixRises</dc:creator>
<guid isPermaLink="false">42606@http://mu.wordpress.org/forums/</guid>
<description>&#60;p&#62;You were getting that error because I messed up, I basically skimmed over the plugin source to get the code that would just authenticate which is why I said it might not be perfect :P. &#60;/p&#62;
&#60;p&#62;Passing a variable that is set to null as opposed to just passing in null should fix that problem. It _should_ require the third parameter set to actually work.&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;$user_data = null;
if($server-&#38;gt;Authenticate($user_login,$user_pass, $user_data) == 0)...&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;However, if you've got it working then I expect you don't need to worry about it.
&#60;/p&#62;</description>
</item>
<item>
<title>jsox78 on "MU, LDAP and XMLRPC"</title>
<link>http://mu.wordpress.org/forums/topic/7099#post-42590</link>
<pubDate>Fri, 28 Dec 2007 13:44:55 +0000</pubDate>
<dc:creator>jsox78</dc:creator>
<guid isPermaLink="false">42590@http://mu.wordpress.org/forums/</guid>
<description>&#60;p&#62;Thanks for posting the code to get this working. I was able to finally authenticate against xmlrpc with BlogJet. I just wanted to let you know that I hit one snag and was wondering what was happening.&#60;/p&#62;
&#60;p&#62;When taking the code as is, I get an error about not being able to pass variable 3 in line 34. In my user.php file this is refering to the null value being passed by the if statement. I am not sure why this value is in the string, but after removing it I no longer receive the error.&#60;/p&#62;
&#60;p&#62;Is the null value needed? If so, any idea why I would be getting that error?
&#60;/p&#62;</description>
</item>
<item>
<title>PhoenixRises on "MU, LDAP and XMLRPC"</title>
<link>http://mu.wordpress.org/forums/topic/7099#post-42585</link>
<pubDate>Fri, 28 Dec 2007 01:41:04 +0000</pubDate>
<dc:creator>PhoenixRises</dc:creator>
<guid isPermaLink="false">42585@http://mu.wordpress.org/forums/</guid>
<description>&#60;p&#62;Please keep in mind that this may not work straight off and may need some tweaking, however, this should be pretty close.&#60;/p&#62;
&#60;p&#62;This is assuming that the LDAP settings you have specified in &#34;Site Admin&#34; are correct and that the plugin is working. In ~/wp-includes/user.php edit the function user_pass_ok (you may wish to take a backup of the original version) to read as follows:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;function user_pass_ok($user_login, $user_pass) {
    global $cache_userdata;
    $ldapServerAddr    = get_site_option(&#38;quot;ldapServerAddr&#38;quot;);

    $ldapServerOU      = get_site_option(&#38;quot;ldapServerOU&#38;quot;);

    $ldapServerCN      = get_site_option(&#38;quot;ldapServerCN&#38;quot;);

    $ldapServerPass    = get_site_option(&#38;quot;ldapServerPass&#38;quot;);

    $ldapServerPort    = get_site_option(&#38;quot;ldapServerPort&#38;quot;);

    $ldapEnableSSL     = get_site_option(&#38;quot;ldapEnableSSL&#38;quot;);
    $ldapString        = &#38;quot;$ldapServerAddr:$ldapServerOU:$ldapServerCN:$ldapServerPass:$ldapServerPort:$ldapEnableSSL&#38;quot;;
    $server = new LDAP_ro($ldapString);
    if($server-&#38;gt;Authenticate($user_login,$user_pass, null) == 0)
        return true;
    return false;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;You will also need to add the following to the top of the same file:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;include_once(ABSPATH . &#38;quot;wp-content/mu-plugins/ldap/lib/ldap_ro.php&#38;quot;);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Or replace with the correct path for your install of the plugin.&#60;/p&#62;
&#60;p&#62;Hope that helps.
&#60;/p&#62;</description>
</item>
<item>
<title>jsox78 on "MU, LDAP and XMLRPC"</title>
<link>http://mu.wordpress.org/forums/topic/7099#post-42582</link>
<pubDate>Thu, 27 Dec 2007 19:52:45 +0000</pubDate>
<dc:creator>jsox78</dc:creator>
<guid isPermaLink="false">42582@http://mu.wordpress.org/forums/</guid>
<description>&#60;p&#62;Thanks for the response, it is encouraging to know that someone at least has this working. I am currently using the version 1.3 of the WPMU LDAP plugin located here - &#60;a href=&#34;http://sourceforge.net/projects/wpmu-ldap/&#34; rel=&#34;nofollow&#34;&#62;http://sourceforge.net/projects/wpmu-ldap/&#60;/a&#62;.&#60;/p&#62;
&#60;p&#62;Any further assistance you can provide is most appreciated.
&#60;/p&#62;</description>
</item>
<item>
<title>PhoenixRises on "MU, LDAP and XMLRPC"</title>
<link>http://mu.wordpress.org/forums/topic/7099#post-42502</link>
<pubDate>Tue, 25 Dec 2007 16:33:14 +0000</pubDate>
<dc:creator>PhoenixRises</dc:creator>
<guid isPermaLink="false">42502@http://mu.wordpress.org/forums/</guid>
<description>&#60;p&#62;I have roughly the same set up, although after I couldn't get an LDAP plugin working I wrote a quick one of my own. &#60;/p&#62;
&#60;p&#62;2 things I found. First, make sure that xml-rpc is enabled on the blog(s) you want to post on, do this via (Site Admin-&#38;gt;Blogs-&#38;gt;Edit).&#60;/p&#62;
&#60;p&#62;Second, xmlrpc.php doesn't use any overridden authentication, it simply checks the given user name and password against the user name and password in its user table. Therefore, it needs hacked a bit. There are 2 options. Either, posting a link to the LDAP plugin your using so that I can say what you need to change, or have a look in ~/wp-includes/user.php , the function user_pass_ok and alter it to resemble the authentication used in the plugin.
&#60;/p&#62;</description>
</item>
<item>
<title>jsox78 on "MU, LDAP and XMLRPC"</title>
<link>http://mu.wordpress.org/forums/topic/7099#post-42376</link>
<pubDate>Thu, 20 Dec 2007 16:07:33 +0000</pubDate>
<dc:creator>jsox78</dc:creator>
<guid isPermaLink="false">42376@http://mu.wordpress.org/forums/</guid>
<description>&#60;p&#62;I am currently looking to use test a few off line blog editors with a pilot installation of WordPress MU that I installed for my current employer.&#60;/p&#62;
&#60;p&#62;At this point in time I am trying to connect BlogJet, w.blogger and BlogDesk to the WordPress MU installation via the xmlrpc.php.&#60;/p&#62;
&#60;p&#62;All three editors are currently giving me a bad login/pass combination error when I try to login with one of the LDAP IDs. I can however use xmlrpc if I use the WordPress MU admin account.&#60;/p&#62;
&#60;p&#62;Is it possible to use MU/LDAP and still use an offline editor?&#60;/p&#62;
&#60;p&#62;Current Setup - &#60;/p&#62;
&#60;p&#62;WordPress MU 1.3&#60;br /&#62;
LDAP Authentication Plugin 1.2.0&#60;/p&#62;
&#60;p&#62;w.blogger 4.02.0197&#60;br /&#62;
BlogJet 2.0.0.10&#60;/p&#62;
&#60;p&#62;Any help would be most appreciated.
&#60;/p&#62;</description>
</item>

</channel>
</rss>
