Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Get Windows username on Intranet
Hi all,

My Intranet currently runs fine (on a Linux-based server, with Apache,
MySQL and PHP). The mail-form works splendid, except that I like to
catch the users logon-name (so they cannot fake their name).

Is there a way to achieve this, preferable cross-browser.

I'm affraid it won't be possible (security risk).
--
Toni Van Remortel
Netwerkbeheerder HA Dept. Ontwerpwetenschappen

Report this thread to moderator Post Follow-up to this message
Old Post
Toni Van Remortel
09-21-04 01:56 PM


Re: Get Windows username on Intranet
Closest I have found to being able to automatically identify who is using a
script is to get their computer name using

$nm=gethostbyaddr($REMOTE_HOST);

It does not tell you who actually used the script but rather what computer
it came from.
The names we give the computers here are the user's last name which makes it
easier to tell who did what, but you could always use a database to keep
track of who has what computer.

You are supposed to be able to get the login name using a signed java applet
somehow, but I have not had the time to figure that one out yet.

The only way I can think of to tell who actually used it would be to have a
sign-in or at least a password for each user and make them use it each time
they send a message.

"Toni Van Remortel" <t.vanremortel@DITISTEVEEL.ha.be> wrote in message
news:cip57c$o04$2@ikaria.belnet.be...
> Hi all,
>
> My Intranet currently runs fine (on a Linux-based server, with Apache,
> MySQL and PHP). The mail-form works splendid, except that I like to catch
> the users logon-name (so they cannot fake their name).
>
> Is there a way to achieve this, preferable cross-browser.
>
> I'm affraid it won't be possible (security risk).
> --
> Toni Van Remortel
> Netwerkbeheerder HA Dept. Ontwerpwetenschappen



Report this thread to moderator Post Follow-up to this message
Old Post
Arg
09-21-04 08:56 PM


Re: Get Windows username on Intranet
Toni Van Remortel wrote:

> Hi all,
>
> My Intranet currently runs fine (on a Linux-based server, with Apache,
> MySQL and PHP). The mail-form works splendid, except that I like to
> catch the users logon-name (so they cannot fake their name).
>
> Is there a way to achieve this, preferable cross-browser.
>
> I'm affraid it won't be possible (security risk).

It's tricky, but not impossible - you could assign x509 certificates to all
your users and setup your webserver to require a cerificate with the right
signatory from the client.

Alternatively - for a quick-fix solution (although it's not very secure) you
could use ident - See the squid website for links to a MS-Windows client.

I don't know if NTLM can be integrated - try google.

HTH

C.

Report this thread to moderator Post Follow-up to this message
Old Post
Colin McKinnon
09-21-04 08:56 PM


Re: Get Windows username on Intranet
Colin McKinnon wrote:
> Toni Van Remortel wrote:
>
> 
>
>
> It's tricky, but not impossible - you could assign x509 certificates to al
l
> your users and setup your webserver to require a cerificate with the right
> signatory from the client.

Sounds interesting.

> Alternatively - for a quick-fix solution (although it's not very secure) y
ou
> could use ident - See the squid website for links to a MS-Windows client.

Just had to remove it due to conflicts with other software on the
workstations. But I'll take it in mind again.

> I don't know if NTLM can be integrated - try google.

Should be possible, I'm trying to get that one compiling. Thanx!

--
Toni Van Remortel
Netwerkbeheerder HA Dept. Ontwerpwetenschappen

Report this thread to moderator Post Follow-up to this message
Old Post
Toni Van Remortel
09-21-04 08:56 PM


Re: Get Windows username on Intranet
Arg wrote:
> Closest I have found to being able to automatically identify who is using 
a
> script is to get their computer name using
>
> $nm=gethostbyaddr($REMOTE_HOST);

Hmm, seems an option. But our workstations just have a logic number
(students do move sometime ;-)

--
Toni Van Remortel
Netwerkbeheerder HA Dept. Ontwerpwetenschappen

Report this thread to moderator Post Follow-up to this message
Old Post
Toni Van Remortel
09-21-04 08:56 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PHP Language archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 05:17 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.