If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

I'm trrying very hard to prevent a logging in. It is a system on which users can report incidents involving the IT-infrastructure etc. so making a login screen is an extra step for the users. These users will be a little disgruntled to begin with, because their computer isn't acting the way they want it to.

my solution

i had the same problem with creating intranet pages. i needed user accounts. but why force users to type their usernames and passwords if i can get it from windows?
well, the solution is not nice, but at least it is working.
i created simple logon script, which contains this line:echo %USERNAME% > \\server\intranet$\userdata\%COMPUTERNAME%.txt
and from php script i can access the very right file a read the username.
this solutions is only useable when users use their own accounts.

Nice patch hehehe !

There must be a way to catch the windows username, but this is a nice workarround.
I try some ways and put here the results.

See u.

Originally Posted by georgoz

i had the same problem with creating intranet pages. i needed user accounts. but why force users to type their usernames and passwords if i can get it from windows?
well, the solution is not nice, but at least it is working.
i created simple logon script, which contains this line:echo %USERNAME% > \\server\intranet$\userdata\%COMPUTERNAME%.txt
and from php script i can access the very right file a read the username.
this solutions is only useable when users use their own accounts.

my solution^2

I realized that I cant access the file by the name of the client computer. So I had to do a few changes. Now I access the file using IP adrress. The biggest problem was to extract the ip address from windows command line. There is my code: