Intranet web applications that use the local windows username and password to authenticate using PHP & LDAP
<p>We are trying to modify our intranet web applications, Every individual user to be use their own &amp; only one username and password log-in authentication to log-in to all intranet web applications.</p>

<p>For that we try to use their local windows /linux system username and password .</p>

<p>Once user logged in to their system he/she can able to access all intranet web application directly once he/she browse the web application. He/she no need to log-in each and every time for each and every intranet web application .</p>

<p>I read many articles (<a href="http://www.techrepublic.com/article/take-advantage-of-php-and-ldap-authentication-for-windows-and-unix/5032010" rel="nofollow">one</a> ,<a href="http://stackoverflow.com/questions/2501729/using-windows-authentication-with-php">two</a> ,<a href="http://stackoverflow.com/questions/12754437/get-windows-username-of-current-user-using-php">three</a>,<a href="http://stackoverflow.com/questions/6611797/find-windows-username-in-php">four</a> and so ..) but I could not understand how am I get local windows/linux system username and password those who logged in to that system by using PHP ,at least username alone is more enough.</p>

<p>I tried <code>&lt;?php echo getenv("username"); ?&gt;</code>  this but its shows blank. </p>

<p>Please give me a solution .Please don't reject this question .</p>

<p>Thanks in advance for your answers and comments.</p>
