abdfahim Posted July 7, 2008 Share Posted July 7, 2008 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 More sharing options...
corbin Posted July 7, 2008 Share Posted July 7, 2008 Might be possible with VBScript or something.... Not possible with PHP though. Link to comment https://forums.phpfreaks.com/topic/113516-read-windows-login-name-in-my-forum/#findComment-583301 Share on other sites More sharing options...
abdfahim Posted July 7, 2008 Author Share Posted July 7, 2008 thanx buddy. I got it, its VbScript. But the problem is, it also depends on users browser settings. If, activeX is disabled there, then the code does not work . Link to comment https://forums.phpfreaks.com/topic/113516-read-windows-login-name-in-my-forum/#findComment-583307 Share on other sites More sharing options...
cooldude832 Posted July 7, 2008 Share Posted July 7, 2008 Just give you a warning about this that unless this is for a LAN based application I'd advise against it because there is just too many users who don't trust active-x or don't use a microsoft based browser which doesn't send the data needed. Link to comment https://forums.phpfreaks.com/topic/113516-read-windows-login-name-in-my-forum/#findComment-583310 Share on other sites More sharing options...
abdfahim Posted July 7, 2008 Author Share Posted July 7, 2008 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? Link to comment https://forums.phpfreaks.com/topic/113516-read-windows-login-name-in-my-forum/#findComment-583313 Share on other sites More sharing options...
cooldude832 Posted July 7, 2008 Share Posted July 7, 2008 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. Link to comment https://forums.phpfreaks.com/topic/113516-read-windows-login-name-in-my-forum/#findComment-583716 Share on other sites More sharing options...
discomatt Posted July 7, 2008 Share Posted July 7, 2008 Are the users part of the same domain? Is the web server also hosting the Active Directory? Link to comment https://forums.phpfreaks.com/topic/113516-read-windows-login-name-in-my-forum/#findComment-583730 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.