title: Can you pass Sharepoint 2010 credentials to Wordpress?
body: <p><strong>Background</strong></p>
  
  <p>With an internal Sharepoint 2010 installation and a virtual machine installation of Wordpress (on the same local network), I've been tasked to see if we can have Sharepoint users log in to Wordpress using their Sharepoint credentials.</p>
  
  <p>The method would be to use Sharepoint as a SSO service that could pass the credentials, once logged in, to Wordpress, where the login would be automated and would pass right to the administration panel.</p>
  
  <p><strong>Sharepoint to Wordpress</strong></p>
  
  <p>I've found many examples of <a href="http://netwovenblogs.com/2013/11/21/integrating-wordpress-blog-into-sharepoint-2013/" rel="nofollow">communicating with the Wordpress API from Sharepoint</a>, but I'm looking to go from Sharepoint to Wordpress, not the other way around.</p>
  
  <p><strong>Zombie Post</strong></p>
  
  <p>The Wordpress help forums has a zombie post asking the <a href="http://wordpress.org/support/topic/wordpress-integration-with-sharepoint" rel="nofollow">same question</a> from seven years ago.</p>
  
  <p><strong>Untested Method from Googling</strong></p>
  
  <p>I found a blog post showing how to <a href="http://davidsit.wordpress.com/2010/02/23/reading-a-sharepoint-list-with-php/" rel="nofollow">retrieve login information from Sharepoint using PHP</a> but not being a Sharepoint expert, I wanted to make sure this was the <em>preferred method</em>, or if it would even work at all.</p>
  
  <p>Specifically I see he suggests grabbing the Sharepoint user list via,</p>
  
  <pre><code>/* Local path to the Lists.asmx WSDL file (localhost). You must first download
   * it manually from your SharePoint site (which should be available at
   * yoursharepointsite.com/subsite/_vti_bin/Lists.asmx?WSDL)
   */
  $wsdl = "http://localhost/phpsp/Lists.wsdl";
  </code></pre>
  
  <p>Is it that easy to grab a user list?</p>
  
  <p><strong>Alternatives</strong></p>
  
  <p>Could I return a user list via,</p>
  
  <ul>
  <li>An SQL query?</li>
  <li>A POST request returning XML or JSON?</li>
  </ul>
  
  <p><strong>Example data required</strong></p>
  
  <pre><code>var_dump($_POST);
  </code></pre>
  
  <p>would return,</p>
  
  <pre><code>array(3) {
    ['username']=&gt;
    string(10) "mynamehere"
    ['password']=&gt;
    string(64) "9a027d0d2c054c0cb18ef22d1d8b88c993998c9b4396f0b6b01da777c2f38aaa"
    ['sharepoint_verification']=&gt;
    string(15) "zoR6n]N?~Mg%YEL"
  }
  </code></pre>
  
  <p>Thanks for your help experts.</p>