I am posting this for the lack of a better newsgroup, and for the
knowledge of people here, and because its only partially OT.
We have a bunch of users with their computers at work. There are
reports that the users need, which could be in html, php, asp, jsp,
whatever.
Now I am trying to eliminate the login window entirely. In an html
request, the client (firefox, ie, etc) sends the clients hostname, IP,
a bunch of other stuff, but never the username. If the server-side
scripts could know which user is logged in, it could display only the
reports that user has access to. Ideally the process should work
across browsers... else I could compile firefox to send the username
in the header somewhere...
So I ask all the skilled developers here, this intriguing question.
How do you pass the username to the server without the login prompt???
Ideas:
(1) A fixed cookie
(2) ActiveX somehow.
(3) An applet is loaded that somehow gets the username, and the page
redirects in 1 sec, sending the username to the server.
(4) Firefox compiled to somewhere in the header include the username
(5) An initial page that runs an applet or something, that puts the
username into a cookie, and the page redirects in 1 sec, sending the
cookie
Is there any programming language, api, COM (Activex? applets?) or
other method to do this cleanly??
will it work if I exclusively use IIS and IE instead of firefox and
apache?
Jul 17 '05
11 4873
>I have a similiar problem: I need to know the local IP / MAC adress of the client from which the user logs on,
You can't know the MAC address unless the client is on the same
wire as the server. Otherwise what you get is the MAC address of
your router.
You can know the public IP address of the client as $_SERVER['REMOTE_ADDR']
but this may be the public IP address of a proxy, NAT gateway, etc.
and it's not guaranteed that this address will stay the same between
one web request and the next (e.g. load-balanced proxies).
Also, do you realize how many machines out there have the local IP
address of 192.168.1.1 ?
as the configuration of some applications is dependent on the HW configuration (peripherals). the
What possible connection does either the MAC address or IP address
have to hardware configuration? Are you trying to collect an
inventory list of the location of hardware so you can steal it to
order or sell it to someone who does?
usual remote_addr thing does not work, as client in intranet or internet (remote from home), webserver from where the application runs is internet (1 client W98, all other XP, all IE).
In a lot of js forums / docs I found statements that I can get ip / mac with js / activex, but no reasonable info on how to. (what happens on a notebook with LAN/WLAN nic?)
PHP runs on the SERVER, not the client. And it's exactly this sort
of crap with Javascript that makes people want to turn it off.
Gordon L. Burditt
Following on from Ghazan Haider's message. . . I am posting this for the lack of a better newsgroup, and for the knowledge of people here, and because its only partially OT.
We have a bunch of users with their computers at work. There are reports that the users need, which could be in html, php, asp, jsp, whatever.
Now I am trying to eliminate the login window entirely. In an html request, the client (firefox, ie, etc) sends the clients hostname, IP, a bunch of other stuff, but never the username. If the server-side scripts could know which user is logged in, it could display only the reports that user has access to. Ideally the process should work across browsers... else I could compile firefox to send the username in the header somewhere...
I don't know, but would have thought that a multi-user PC would have
multiple 'profiles' for things like cookies, browser history etc. If
not IE then it is a feature I'd expect in /some/ browser.
--
PETER FOX Not the same since the bra business went bust pe******@eminen t.demon.co.uk.n ot.this.bit.no. html
2 Tees Close, Witham, Essex.
Gravity beer in Essex <http://www.eminent.dem on.co.uk> This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: VJ |
last post by:
Hi,
IIS raises login dialog box prompt on browser for
resources protected using basic authentication. That login
prompt gives user 3 attempts to enter correct
userid/password. IIS throw 401.1 error if third attempt
fails. Does anyone know how to change this number of
attempts. Is it possible or impossible to do ?
Thanks
|
by: Meral Agceli via .NET 247 |
last post by:
A crystal report is developed using Crystal 8.5 and a trustedconnection to a SQL Server database. I'm trying to display thisreport in Crystal Report Viewer using VB.NET. When theapplication is run, I get the Login prompt every time. I want tostop this from happening by setting this within the code. I canget it to work when the report is developed with a secureconnection (username/password). I can also get it to work whenthe report is developed...
|
by: pv |
last post by:
Hi everyone,
I need help with following scenario, please:
Users are accessing same web server from intranet (users previously
authenticated in Active Dir) and from extranet (common public users). If
user is from intranet, web server should recognize it and application should
create additional options in controls regarding groups the user belongs to.
If user is from extranet it should be logged in as anonymous and a link to
login page...
|
by: CBKowitz |
last post by:
I have an intermittent problem, when viewing a crystal report. This problem
only happens to some users and some report formats. When they try to view
the report in Microsoft Word format the system prompts them to login (User
name and Password). If they view it in PDF format they do not get the login
prompt. I do not get the login prompt at all. This problem occurs with
users on the Internet and our Intranet. I checked the web site and...
|
by: ad |
last post by:
I have create a custom membership provider.
The common usage of custom membership is set it as default Membership
Provider win web.config, and use login controls with it.
How can I use custom membership provider without Login Controls?
For example, the name of my custom membership provider MyMembershipProvider.
Is the codes below right?
MyMembershipProvider myProvider=new MyMembershipProvider();
| |
by: Luqman |
last post by:
How can I Prevent user from accessing any page directly without Login ?
User should not be able to by pass the Login screen by typing the Url of any
page directly.
I am using ASP.Net 2.0 with Visual Studio 2005.
Best Regards,
Luqman
|
by: samycbe |
last post by:
Hi,
I want to open a file from javascript with the code,
window.open("file://///xxxxxxxx/xxxx/xx/freedom.exe"). It is opening preperly. But asking the prompt for open,save and cancel. I want to run the file without the prompt. Please help me.
samy
|
by: srirampavan |
last post by:
how to get login prompt window when we press radio button??/
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
| |
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| | |