Jump to content

Read windows login name in my forum


abdfahim

Recommended Posts

Hi,

 

I don't know whether it is possible with PHP as PHP is a server side language. But I search for the same using some client side scripts like javascript, but i was not succeed. What I want to know, how can I use windows username (which is used to login in windows 2000) to be the username of my forum. That is, there will be no password, whenever anyone enter my site, it will automatically logged him in with his windows login name as my site username, so that he does not has to put any username there.

Link to comment
https://forums.phpfreaks.com/topic/113516-read-windows-login-name-in-my-forum/
Share on other sites

thanx cooldude832, I got that. But I planned that because its a website used by a small number of ppl within an intranet (as you said, all connected through LAN), and everybody is using IE. Also, its a small survey, so I thought why should them bother to enter there username and password if I can already get their username from their machine. But I have to suspend my plan because, even then some may disable their ActiveX settings which will turn the project into a total disaster. So, now i plan to send each and everybody a link seperated by get variable, like

 

for user1 : http://ipaddress/q.php?userid=892345190

for user2 : http://ipaddress/q.php?userid=902295576

 

etc. etc.

 

The main point, why I am taking this pain is, they are some big fish and if I gave each of them a random username and password, they never bother to use a username and password to login to that page :(.

 

Do you have any better idea?

Yeah my better idea is you build a small application in autoit or some other windows software that opens up the login page on each user login and sends the data to the server in turn building the cookie needed for web based authentication.

 

Then use msconfig to alter the start up programs and add it to your list so it runs the web login on login (or add it to your novell or other login systems run setup)  Just make sure it runs after the user has a network connection.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.