如何获取用户名,没有登录提示? [英] How to get the username, without login prompt?

查看:68
本文介绍了如何获取用户名,没有登录提示?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我发布的内容是缺少一个更好的新闻组,以及

这里的人们的知识,因为它只是部分OT。


我们有很多用户正在使用他们的计算机。有用户需要的
报告,可以是html,php,asp,jsp,

等等。


现在我试图完全消除登录窗口。在html

请求中,客户端(firefox,即等)向客户端发送主机名,IP,

一堆其他东西,但从不输入用户名。如果服务器端

脚本可以知道哪个用户已登录,则它只能显示用户有权访问的

报告。理想情况下,这个过程应该在浏览器之间运行

...否则我可以编译firefox在某个地方的标题中发送用户名

...


所以我问这里所有熟练的开发人员,这个有趣的问题。

如果没有登录提示你如何将用户名传递给服务器???


想法:

(1)一个固定的cookie

(2)ActiveX不知何故。

(3)以某种方式加载applet获取用户名,页面

在1秒内重定向,将用户名发送到服务器。

(4)编译到标题中某处的Firefox包括用户名

(5)运行applet或其他东西的初始页面,将

用户名放入cookie中,页面重定向在1秒内,发送

cookie

是否有任何编程语言,api,COM(Activex?小程序?)或

其他方法干净利落地完成这项工作?

apache?

解决方案

Ghazan Haider写道:

我发帖这是因为缺乏一个更好的新闻组,以及这里人们的知识,也因为它只是部分OT。

我们有一大堆用户正在使用他们的计算机。有用户需要的报告,可以是html,php,asp,jsp,
等等。

现在我试图完全消除登录窗口。在一个html
请求中,客户端(firefox,即等)向客户端发送主机名,IP,
一堆其他东西,但从不发送用户名。如果服务器端的脚本可以知道登录了哪个用户,则它只能显示用户有权访问的报告。理想情况下,这个过程应该可以跨浏览器工作......否则我可以编译firefox以在某个地方的标题中发送用户名
...所以我在这里问所有熟练的开发人员这个有趣的问题。
如何在没有登录提示的情况下将用户名传递给服务器???

想法:
(1)固定的cookie
( 2)ActiveX以某种方式。
(3)加载applet以某种方式获取用户名,页面在1秒内重定向,将用户名发送到服务器。
(4)Firefox编译标题中的某个位置包含用户名
(5)运行applet或其他内容的初始页面,将
用户名放入cookie中,页面重定向为1秒,发送
cookie

是否有任何编程语言,api,COM(Activex?applets?)或
其他方法干净利落地完成?

如果有效我专门使用IIS和IE而不是firefox和
apache?




快速情侣o在我思考之前的问题。


1)这是一个内部网络(192.168)风格

2)直接从任何IP连接访问,即从web或

内联网?

3)漫游登录,用户a可以从任何机器登录或是用户

固定在一台特定的机器上因此固定的内部IP?


NSpam写道:

Ghazan Haider写道:

I我发布这篇文章的原因是缺乏一个更好的新闻组,以及这里人们的知识,以及因为它只是部分OT。

我们有一大堆用户正在使用他们的计算机。有用户需要的报告,可以是html,php,asp,jsp,
等等。

现在我试图完全消除登录窗口。在一个html
请求中,客户端(firefox,即等)向客户端发送主机名,IP,
一堆其他东西,但从不发送用户名。如果服务器端的脚本可以知道登录了哪个用户,则它只能显示用户有权访问的报告。理想情况下,这个过程应该可以跨浏览器工作......否则我可以编译firefox以在某个地方的标题中发送用户名
...所以我在这里问所有熟练的开发人员这个有趣的问题。
如何在没有登录提示的情况下将用户名传递给服务器???

想法:
(1)固定的cookie
( 2)ActiveX以某种方式。
(3)加载applet以某种方式获取用户名,页面在1秒内重定向,将用户名发送到服务器。
(4)Firefox编译标题中的某个位置包含用户名
(5)运行applet或其他内容的初始页面,将
用户名放入cookie中,页面重定向为1秒,发送
cookie

是否有任何编程语言,api,COM(Activex?applets?)或
其他方法干净利落地完成?

如果有效我专门使用IIS和IE而不是firefox和
apache?



快速的几个问题在我思考之前。

1)这是一个内部网络(192.168)风格
2)从任何IP连接直接访问,即从网络或内部网可见?< 3)漫游登录,用户a可以从任何机器登录,或者用户是否固定在一台特定的机器上,因此固定的内部IP?




哦和是运行Windows或Linux的客户机。如果Windows和

我们正在谈论基于PHP的网页,那么应该可以通过PHP win32 api获得

windows用户ID /密码。不能代表Perl。我不知道这是否会回答,因为您可能对不同的报告引擎有不同的登录

要求。


> 1)这是一个内部网络(192.168)风格


是的......但它不应该重要。希望

互联网的灵活性。

2)从任何IP连接直接访问,即从网络或内部网可见?


目前是的,但如果我们上网,它可能会通过一个

的openbsd防火墙。再一次,目前我会带任何东西。

3)漫游登录,用户a可以从任何机器登录,或者是用户固定到一台特定机器,因此固定内部IP?




用户可以从任何机器登录。


我想到每台机器上的cookie或通过IP进行身份验证。糟糕

想法,我们有DHCP和IP已经洗牌了(也许

主机名,但这些也改变了)。我想到登录批处理文件

创建包含用户名的cookie。这非常接近。

COM或ActiveX的任何内容应该更清晰,如果它们可以从客户端获取用户名以放入查询,链接或

表格。不必触摸每台机器将向前迈出一步,

浏览器独立性将是另一个。


所有机器都是win32。 win32 API无法工作,因为它们与服务器的DLL接口
,我很想知道它们是如何触及客户端的DLL的b $ b或COM,.NET之外的窗口或

activex ...

任何想法如何在不触及每台机器的情况下获取用户名,或

没有登录脚本或重新编译firefox?


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?

解决方案

Ghazan Haider wrote:

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?



Quick couple of questions before I ponder.

1) Is this an internal network (192.168) style
2) Straight in access from any IP connection ie visible from the web or
intranet ?
3) Roaming logins in that a user a may login from any machine or is user
fixed to one specific machine and hence a fixed internal IP ?


NSpam wrote:

Ghazan Haider wrote:

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?


Quick couple of questions before I ponder.

1) Is this an internal network (192.168) style
2) Straight in access from any IP connection ie visible from the web or
intranet ?
3) Roaming logins in that a user a may login from any machine or is user
fixed to one specific machine and hence a fixed internal IP ?



Oh and by are client machines running Windows or Linux. If Windows and
we are talking PHP based web pages it should be possible to get the
windows user id/password via the PHP win32 api. Can''t speak for Perl. I
don''t know if this would answer as you may have different login
requirements for different reporting engines.


> 1) Is this an internal network (192.168) style

Yes... it shouldnt matter though. Would like the flexibility of the
Internet too.

2) Straight in access from any IP connection ie visible from the web or
intranet ?
Currently yes, but if we go Internet, it''ll probably pass through an
openbsd firewall. Once again, currently I''ll take anything.
3) Roaming logins in that a user a may login from any machine or is user
fixed to one specific machine and hence a fixed internal IP ?



A user may login from any machine.

I thought of cookies on each machine or authenticating by IP. Bad
idea, we have DHCP and IPs have gotten shuffled around (maybe
hostnames, but those change too). I thought of login batch files that
create the cookies, which contain usernames. That gets pretty close.
Anything along the lines of COM or ActiveX should be cleaner, if they
can scoop up usernames from the client to put into a query, link or
form. Not having to touch each machine would be one step forward,
browser independence would be another.

All machines however are win32. The win32 API couldnt work since they
interface with the server''s DLLs, I''m at pains to wonder how they
could touch a client''s DLLs or windows outside of COM, .NET or
activex...

Any ideas how to get the username without touching each machine, or
without login scripts or recompiling firefox?


这篇关于如何获取用户名,没有登录提示?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆