PHP Classes

windows NT login authentication

Recommend this page to a friend!

      PHP HTTP protocol client  >  All threads  >  windows NT login authentication  >  (Un) Subscribe thread alerts  
Subject:windows NT login authentication
Summary:how to use ntlm_sasl_client.php file
Messages:9
Author:raguraman
Date:2008-02-21 09:57:48
Update:2008-03-07 21:05:07
 

  1. windows NT login authentication   Reply   Report abuse  
Picture of raguraman raguraman - 2008-02-21 09:57:48
hello,
i have downloaded sasl-2005-10-31 zip file and i tried to create windows NT authentication. I dont know how to establish connection with DB server with help of ntlm_sasl_client.php file. can you please tell me how to use this file.

  2. Re: windows NT login authentication   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2008-02-21 21:27:02 - In reply to message 1 from raguraman
You can start for instance from the test_http.php example. Uncomment the line that includes sasl.php.

Then set the variables, $user, $password, $realm to the Windows domain name, and $workstation to your Windows workstation name if necessary.

  3. Re: windows NT login authentication   Reply   Report abuse  
Picture of raguraman raguraman - 2008-03-03 09:21:12 - In reply to message 2 from Manuel Lemos
Hello Manuel,
Thanks for your reply. As per your suggestion i have download test_http.php and i gave the necessary inputs (like $username,$domain name)..

But my question is , shall i use this file for windows NT login authentication..?
when users login with windows username and password, i need to capture the user name from windows and i have to authenticate againts my php application. is it possible with this file. if yes, please tell me the procedure. if it is not possible please tell me how i can achieve this is in php..

  4. Re: windows NT login authentication   Reply   Report abuse  
Picture of mageswaran mageswaran - 2008-03-03 10:17:59 - In reply to message 2 from Manuel Lemos
Hello manual,

i Also searching the same,i need to Capture the username of my windows ntlogin for my php intranet site.please help me,how to do this?

  5. Re: windows NT login authentication   Reply   Report abuse  
Picture of mageswaran mageswaran - 2008-03-03 10:22:13 - In reply to message 3 from raguraman
hfgh

  6. Re: windows NT login authentication   Reply   Report abuse  
Picture of mageswaran mageswaran - 2008-03-03 10:37:20 - In reply to message 2 from Manuel Lemos
hi manual,
i need to Capture windows nt userlogin for intranet site developed by php.

  7. Re: windows NT login authentication   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2008-03-03 19:24:39 - In reply to message 6 from mageswaran
That has nothing to do with this class.

Once you have sent Windows NTLM authentication in your Web server, you can just use the PHP command GetEnv('LOGON_USER') to determine which user has successfully logged in the Windows network.

  8. Re: windows NT login authentication   Reply   Report abuse  
Picture of raguraman raguraman - 2008-03-06 10:43:58 - In reply to message 7 from Manuel Lemos
Hello Manuel,
Thanks for your idea. windows authentication is successfully completed. but there was some problem in posting the values. i'm using ie 6 and the OS is windows XP.
i couldn't post any values. it seems the problem exists in IE6 only. in firefox i can able to post the values. it is also works fine with IE7.
any ideas?

  9. Re: windows NT login authentication   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2008-03-07 21:05:07 - In reply to message 8 from raguraman
Maybe it is a IE6 bug. That is not a problem of PHP or your Web server.