惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

S
Secure Thoughts
罗磊的独立博客
T
The Blog of Author Tim Ferriss
人人都是产品经理
人人都是产品经理
博客园 - 叶小钗
Last Week in AI
Last Week in AI
美团技术团队
Google Online Security Blog
Google Online Security Blog
Application and Cybersecurity Blog
Application and Cybersecurity Blog
D
Docker
G
Google Developers Blog
大猫的无限游戏
大猫的无限游戏
酷 壳 – CoolShell
酷 壳 – CoolShell
小众软件
小众软件
月光博客
月光博客
L
LINUX DO - 最新话题
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
W
WeLiveSecurity
H
Heimdal Security Blog
Vercel News
Vercel News
SecWiki News
SecWiki News
Forbes - Security
Forbes - Security
Blog — PlanetScale
Blog — PlanetScale
Google DeepMind News
Google DeepMind News
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
www.infosecurity-magazine.com
www.infosecurity-magazine.com
TaoSecurity Blog
TaoSecurity Blog
T
Troy Hunt's Blog
A
About on SuperTechFans
C
Check Point Blog
S
Security Affairs
Hacker News - Newest:
Hacker News - Newest: "LLM"
AI
AI
WordPress大学
WordPress大学
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
Help Net Security
Help Net Security
博客园_首页
The Last Watchdog
The Last Watchdog
S
SegmentFault 最新的问题
Hugging Face - Blog
Hugging Face - Blog
Security Archives - TechRepublic
Security Archives - TechRepublic
Engineering at Meta
Engineering at Meta
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
I
Intezer
K
Kaspersky official blog
M
MIT News - Artificial intelligence
J
Java Code Geeks
G
GRAHAM CLULEY
P
Palo Alto Networks Blog

博客园 - 吴建明

请讨论这个数据库该如何设计? vs2005读写vs2008项目 一个计算程序执行时间的批处理 使用fckeditor一个怪问题。。。 如何在ashx里提取context.Request.Files? 一个nhibenate的hql问题! 请问这样一个特殊的文本编辑器该如何实现? 还是关于无法加载DLL(OCI.DLL)问题解决办法! How to get Intellisense for Web.config and App.config in Visual Studio .NET?(转载) 欢迎大家讨论一个关于界面显示的问题!! 用installshield打包的asp.net程序 欢迎参与讨论一个分布式数据同步的问题! WF的tips 请问一下:诸位遇到输入汉字时会重复输入 请交一个关于域的问题 保护站点子目录的文件 整理了一个带语法高亮显示,及到处html功能的richtextbox控件 我现在做了个web系统,要求允许windows域用户自动注册,有什么建议 另外一个实现事务提交、回滚的方法
关于登陆到域的用户,不需要显示登陆界面的问题(aspx)
吴建明 · 2006-03-23 · via 博客园 - 吴建明

请dudu帮忙,置顶一会!!!

登陆到某个域的用户,如果进入网站的话,同时,该用户也是网站会员的话,则不需要再次输入登陆信息。

我考虑用windows认证,但用windows认证有个问题,因为我的网站,不是该域的用户也能访问,只是需要输入用户和密码,如果是该域的用户,则不需要显示登陆界面。

现在通过以下代码,似乎可以把域中所有用户得到:
Set oContainer = GetObject("WinNT://Domain_Name")

For Each oIADs In oContainer

    If (oIADs.Class = "User") Then
        Set oUser = oIADs
   
        UserName = ""
        FullName = ""
        Descripcion = ""
        LastLogin = ""
        PasswordExpiration = ""
    Disabled = ""
       
        UserName = oUser.Name
        FullName = oUser.FullName
        Descripcion = oUser.Description
        LastLogin = oUser.LastLogin
        PasswordExpiration = oUser.PasswordExpirationDate
        Disabled = oUser.AccountDisabled
%>

<TR>
    <TD><%=UserName%> </TD>
    <TD><%=FullName%> </TD>
    <TD><%=Descripcion%> </TD>
    <TD><%=LastLogin%> </TD>
    <TD><%=PasswordExpiration%> </TD>
    <TD><%=Disabled%> </TD>
<%    End If%>   
<%Next%>

现在问题是,如果能够得到当前访问网站的用户信息,如用户名的话,我这里则可以用代码来控制,但好像得不到访问网站的用户信息。

请兄弟们帮忙,谢谢!!