获取用户的DN [英] Getting the user's DN

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

问题描述

使用VB.Net,我想从Active Directory检索当前登录用户的DN

。或者,如果使用WindowsIdentity或

类似的东西,我想获得用户的全名,即

之间的工作站锁定屏幕( )'s。


有谁知道怎么做?唯一的限制:不使用

设计允许的ActiveDS.dll。


非常感谢!

Derek

-

Derek Martin

593074

Using VB.Net, I would like to retrieve the currently logged in user''s DN
from Active Directory. Alternatively, if, using WindowsIdentity, or
something similar, I would like to get the user''s full name that is found on
the Workstation Locked screen between the ( )''s.

Does anyone know how to do that? The only constraint: no use of
ActiveDS.dll permitted by the design.

Many thanks!
Derek

--
Derek Martin
593074

推荐答案




Systeminformation.username,systeminformation.userdomain,

environment.username,environment.userdomain


Ken

-------------------

" Derek Martin" < DM ***** @ DONTSPAMMEokstateDOT.edu>写在消息

新闻:ux ************* @ TK2MSFTNGP10.phx.gbl ...

使用VB.Net,我想从Active Directory检索当前登录用户的DN

。或者,如果使用WindowsIdentity或

类似的东西,我想获得用户的全名,即

之间的工作站锁定屏幕( )'s。


有谁知道怎么做?唯一的限制:不使用

设计允许的ActiveDS.dll。


非常感谢!

Derek

-

Derek Martin

593074

Hi,

Systeminformation.username, systeminformation.userdomain,
environment.username, environment.userdomain

Ken
-------------------
"Derek Martin" <dm*****@DONTSPAMMEokstateDOT.edu> wrote in message
news:ux*************@TK2MSFTNGP10.phx.gbl...
Using VB.Net, I would like to retrieve the currently logged in user''s DN
from Active Directory. Alternatively, if, using WindowsIdentity, or
something similar, I would like to get the user''s full name that is found on
the Workstation Locked screen between the ( )''s.

Does anyone know how to do that? The only constraint: no use of
ActiveDS.dll permitted by the design.

Many thanks!
Derek

--
Derek Martin
593074


谢谢你的答复肯,然而,这些似乎都没有让我到达我需要的地方

。例如,我的DN是这样的:

CN = Derek M. Martin,OU =支持,OU =用户,OU =等级,DC = dc,DC = domai n,DC = com

当我锁定电脑时,它说:只有network\username(Derek M. Martin)

.... bla bla bla


我需要的是Derek M Martin出来。


你能帮忙吗?再次感谢您的回复!


Derek

" Ken Tucker [MVP]" < VB *** @ bellsouth.net>在消息中写道

news:eC **************** @ TK2MSFTNGP15.phx.gbl ...
Thank you for your reply Ken, however, none of these appear to get me where
I need. For instance, my DN is this:
CN=Derek M. Martin,OU=support,OU=users,OU=level,DC=dc,DC=domai n,DC=com

When I lock the computer, it says: Only network\username (Derek M. Martin)
.... bla bla bla

What I need is Derek M Martin to come out.

Can you assist? Thanks again for the reply!

Derek
"Ken Tucker [MVP]" <vb***@bellsouth.net> wrote in message
news:eC****************@TK2MSFTNGP15.phx.gbl...


Systeminformation.username,systeminformation.userdomain,
environment.username,environment.userdomain

Ken
----------- --------
Derek Martin < DM ***** @ DONTSPAMMEokstateDOT.edu>在消息中写道
新闻:ux ************* @ TK2MSFTNGP10.phx.gbl ...
使用VB.Net,我想检索当前登录的来自Active Directory的用户DN。或者,如果使用WindowsIdentity或类似的东西,我想获得用户的全名
在()的工作站锁定屏幕上。

有谁知道怎么做?唯一的限制:没有使用
设计允许的ActiveDS.dll。

非常感谢!
Derek

-
Derek马丁
593074
Hi,

Systeminformation.username, systeminformation.userdomain,
environment.username, environment.userdomain

Ken
-------------------
"Derek Martin" <dm*****@DONTSPAMMEokstateDOT.edu> wrote in message
news:ux*************@TK2MSFTNGP10.phx.gbl...
Using VB.Net, I would like to retrieve the currently logged in user''s DN
from Active Directory. Alternatively, if, using WindowsIdentity, or
something similar, I would like to get the user''s full name that is found
on
the Workstation Locked screen between the ( )''s.

Does anyone know how to do that? The only constraint: no use of
ActiveDS.dll permitted by the design.

Many thanks!
Derek

--
Derek Martin
593074



没人知道怎么做??? :-(

" Derek Martin" dm ***** @ DONTSPAMMEokstateDOT.edu>写在留言中

新闻:%2 ****** ********** @ TK2MSFTNGP11.phx.gbl ...
Does no one know how to do this??? :-(
"Derek Martin" <dm*****@DONTSPAMMEokstateDOT.edu> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
感谢您的回复肯,然而,这些似乎都没有让我
我需要的地方例如,我的DN是这样的:
CN = Derek M. Martin,OU =支持,OU =用户,OU =等级,DC = dc,DC = domai n,DC = com
... bla bla bla

我需要的是Derek M Martin出来。

你能帮忙吗?再次感谢你的回复!

Derek

" Ken Tucker [MVP]< vb ** *@bellsouth.net>在留言中写道
新闻:eC **************** @ TK2MSFTNGP15.phx.gbl ...
Thank you for your reply Ken, however, none of these appear to get me
where I need. For instance, my DN is this:
CN=Derek M. Martin,OU=support,OU=users,OU=level,DC=dc,DC=domai n,DC=com

When I lock the computer, it says: Only network\username (Derek M. Martin)
... bla bla bla

What I need is Derek M Martin to come out.

Can you assist? Thanks again for the reply!

Derek
"Ken Tucker [MVP]" <vb***@bellsouth.net> wrote in message
news:eC****************@TK2MSFTNGP15.phx.gbl...
你好,

Systeminformation.username,systeminformation.userdomain,
environment.username,environment.userdomain

Ken
--------- ----------
德里克玛特在" < DM ***** @ DONTSPAMMEokstateDOT.edu>在消息中写道
新闻:ux ************* @ TK2MSFTNGP10.phx.gbl ...
使用VB.Net,我想检索当前登录的来自Active Directory的用户DN。或者,如果使用WindowsIdentity或类似的东西,我想获得用户的全名
在()的工作站锁定屏幕上。

有谁知道怎么做?唯一的限制:没有使用
设计允许的ActiveDS.dll。

非常感谢!
Derek

-
Derek马丁
593074
Hi,

Systeminformation.username, systeminformation.userdomain,
environment.username, environment.userdomain

Ken
-------------------
"Derek Martin" <dm*****@DONTSPAMMEokstateDOT.edu> wrote in message
news:ux*************@TK2MSFTNGP10.phx.gbl...
Using VB.Net, I would like to retrieve the currently logged in user''s DN
from Active Directory. Alternatively, if, using WindowsIdentity, or
something similar, I would like to get the user''s full name that is found
on
the Workstation Locked screen between the ( )''s.

Does anyone know how to do that? The only constraint: no use of
ActiveDS.dll permitted by the design.

Many thanks!
Derek

--
Derek Martin
593074




这篇关于获取用户的DN的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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