|
|
Posted by Alan Searle on 06/03/05 17:57
Tony wrote:
> "Alan Searle" <aj_searle@xxxxyahoo.com> wrote in message
> news:d7ncet$g3c$1@newsreader3.netcologne.de...
>
>>Tony wrote:
>>
>>>"Alan Searle" <aj_searle@xxxxyahoo.com> wrote in message
>>>news:d7n9h9$bkr$1@newsreader3.netcologne.de...
>>>
>>>
>>>>For a small (intranet) application that I am building, I would like to
>>>>use the computer login to authorise access to some PHP pages.
>>>>
>>>>I have been on php.net and have googled the web, but the keyword 'login'
>>>>seems to return material which is not exactly what I need.
>>>>
>>>>I'm looking for a PHP function which will run in the browser but which
>>>>will return the 'computer' login/username (which I will use for further
>>>>authentification functions).
>>>>
>>>>Is this possible to do? Or is it out of the scope of a browser?
>>>>
>>>>Any tips or ideas would be gratefully received.
>>>
>>>
>>>Can you clarify what you mean by "computer" login?
>>>
>>>Are you talking about the Windows user ID that the user logs in with
>>>(when starting the computer)?
>>
>>
>>Yes, I mean exactly that. But it could also be the login/username for a
>>linux or a mac.
>>
>>I hope you can help me with this one?
>>
>>Thanks, Alan.
>
>
> Ok - so to be clear - the desired end result is like this: I am a user on
> your network. I login to my computer (let's say my ID & password are "user"
> and "password"). Now, I open a browser and go to your page, which will grab
> my userID & password off the machine I'm logged into and use that to verify
> if I can access the page in question. I don't have to type anything in.
>
> IF that is what you're asking, it can't be done with PHP, since you need to
> retrieve client-side information. You MAY be able to access that information
> with JavaScript, but I doubt it.
>
> What you want (If I understand right) would be better accomplished by
> network logins - but that is way off-topic for this group.
I wouldn't need the password. Only the "user" from the computer login.
But, from what you say, this sounds like it isn't possible from the
browser.
But I'll certainly 'fish around' a bit in JavaScript to see if there is
anything there.
Thanks for the confirmation that this is it not easily done in PHP.
That will save me a lot of fruitless searching.
Anyway, if any ideas occur to you, then do contact me. My e-mail is the
e-mail given but with the xxxx removed.
Many thanks,
Alan Searle.
Navigation:
[Reply to this message]
|