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 11 4848
Hi,
Systeminformati on.username, systeminformati on.userdomain,
environment.use rname, environment.use rdomain
Ken
-------------------
"Derek Martin" <dm*****@DONTSP AMMEokstateDOT. edu> wrote in message
news:ux******** *****@TK2MSFTNG P10.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
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=suppo rt,OU=users,OU= level,DC=dc,DC= domain,DC=com
When I lock the computer, it says: Only network\usernam e (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***@bellsout h.net> wrote in message
news:eC******** ********@TK2MSF TNGP15.phx.gbl. .. Hi,
Systeminformati on.username, systeminformati on.userdomain, environment.use rname, environment.use rdomain
Ken ------------------- "Derek Martin" <dm*****@DONTSP AMMEokstateDOT. edu> wrote in message news:ux******** *****@TK2MSFTNG P10.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
Does no one know how to do this??? :-(
"Derek Martin" <dm*****@DONTSP AMMEokstateDOT. edu> wrote in message
news:%2******** ********@TK2MSF TNGP11.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=suppo rt,OU=users,OU= level,DC=dc,DC= domain,DC=com
When I lock the computer, it says: Only network\usernam e (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***@bellsout h.net> wrote in message news:eC******** ********@TK2MSF TNGP15.phx.gbl. .. Hi,
Systeminformati on.username, systeminformati on.userdomain, environment.use rname, environment.use rdomain
Ken ------------------- "Derek Martin" <dm*****@DONTSP AMMEokstateDOT. edu> wrote in message news:ux******** *****@TK2MSFTNG P10.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
Does no one know how to do this??? :-(
"Derek Martin" <dm*****@DONTSP AMMEokstateDOT. edu> wrote in message
news:%2******** ********@TK2MSF TNGP11.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=suppo rt,OU=users,OU= level,DC=dc,DC= domain,DC=com
When I lock the computer, it says: Only network\usernam e (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***@bellsout h.net> wrote in message news:eC******** ********@TK2MSF TNGP15.phx.gbl. .. Hi,
Systeminformati on.username, systeminformati on.userdomain, environment.use rname, environment.use rdomain
Ken ------------------- "Derek Martin" <dm*****@DONTSP AMMEokstateDOT. edu> wrote in message news:ux******** *****@TK2MSFTNG P10.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, this is more than just your domain name. Can you put a name on this
set of information that you have listed below?
Steve
"Derek Martin" <dm*****@DONTSP AMMEokstateDOT. edu> wrote in message
news:%2******** ********@TK2MSF TNGP11.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=suppo rt,OU=users,OU= level,DC=dc,DC= domain,DC=com
When I lock the computer, it says: Only network\usernam e (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***@bellsout h.net> wrote in message news:eC******** ********@TK2MSF TNGP15.phx.gbl. .. Hi,
Systeminformati on.username, systeminformati on.userdomain, environment.use rname, environment.use rdomain
Ken ------------------- "Derek Martin" <dm*****@DONTSP AMMEokstateDOT. edu> wrote in message news:ux******** *****@TK2MSFTNG P10.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, this is more than just your domain name. Can you put a name on this
set of information that you have listed below?
Steve
"Derek Martin" <dm*****@DONTSP AMMEokstateDOT. edu> wrote in message
news:%2******** ********@TK2MSF TNGP11.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=suppo rt,OU=users,OU= level,DC=dc,DC= domain,DC=com
When I lock the computer, it says: Only network\usernam e (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***@bellsout h.net> wrote in message news:eC******** ********@TK2MSF TNGP15.phx.gbl. .. Hi,
Systeminformati on.username, systeminformati on.userdomain, environment.use rname, environment.use rdomain
Ken ------------------- "Derek Martin" <dm*****@DONTSP AMMEokstateDOT. edu> wrote in message news:ux******** *****@TK2MSFTNG P10.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
Hi Steve, this is the Distinguished Name, DN. What I ended up doing was
instead of looking for cn, I am looking at LDAP for a sAMAccountName, which
allowed me to do a search on the username instead of the DN.
So, I appear to be in good shape :-)
Thanks a bunch!
"Steve Long" <St**********@N oSpam.com> wrote in message
news:uH******** ******@TK2MSFTN GP10.phx.gbl... Derek, this is more than just your domain name. Can you put a name on this set of information that you have listed below?
Steve
"Derek Martin" <dm*****@DONTSP AMMEokstateDOT. edu> wrote in message news:%2******** ********@TK2MSF TNGP11.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=suppo rt,OU=users,OU= level,DC=dc,DC= domain,DC=com
When I lock the computer, it says: Only network\usernam e (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***@bellsout h.net> wrote in message news:eC******** ********@TK2MSF TNGP15.phx.gbl. .. > Hi, > > Systeminformati on.username, systeminformati on.userdomain, > environment.use rname, environment.use rdomain > > Ken > ------------------- > "Derek Martin" <dm*****@DONTSP AMMEokstateDOT. edu> wrote in message > news:ux******** *****@TK2MSFTNG P10.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 > > >
Hi Steve, this is the Distinguished Name, DN. What I ended up doing was
instead of looking for cn, I am looking at LDAP for a sAMAccountName, which
allowed me to do a search on the username instead of the DN.
So, I appear to be in good shape :-)
Thanks a bunch!
"Steve Long" <St**********@N oSpam.com> wrote in message
news:uH******** ******@TK2MSFTN GP10.phx.gbl... Derek, this is more than just your domain name. Can you put a name on this set of information that you have listed below?
Steve
"Derek Martin" <dm*****@DONTSP AMMEokstateDOT. edu> wrote in message news:%2******** ********@TK2MSF TNGP11.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=suppo rt,OU=users,OU= level,DC=dc,DC= domain,DC=com
When I lock the computer, it says: Only network\usernam e (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***@bellsout h.net> wrote in message news:eC******** ********@TK2MSF TNGP15.phx.gbl. .. > Hi, > > Systeminformati on.username, systeminformati on.userdomain, > environment.use rname, environment.use rdomain > > Ken > ------------------- > "Derek Martin" <dm*****@DONTSP AMMEokstateDOT. edu> wrote in message > news:ux******** *****@TK2MSFTNG P10.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 > > >
would you mind sharing with me how you are doing that? I do find the problem
interesting.
Steve
"Derek Martin" <dm*****@DONTSP AMMEokstateDOT. edu> wrote in message
news:%2******** *******@TK2MSFT NGP15.phx.gbl.. . Hi Steve, this is the Distinguished Name, DN. What I ended up doing was instead of looking for cn, I am looking at LDAP for a sAMAccountName,
which allowed me to do a search on the username instead of the DN.
So, I appear to be in good shape :-)
Thanks a bunch! "Steve Long" <St**********@N oSpam.com> wrote in message news:uH******** ******@TK2MSFTN GP10.phx.gbl... Derek, this is more than just your domain name. Can you put a name on
this set of information that you have listed below?
Steve
"Derek Martin" <dm*****@DONTSP AMMEokstateDOT. edu> wrote in message news:%2******** ********@TK2MSF TNGP11.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=suppo rt,OU=users,OU= level,DC=dc,DC= domain,DC=com
When I lock the computer, it says: Only network\usernam e (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***@bellsout h.net> wrote in message news:eC******** ********@TK2MSF TNGP15.phx.gbl. .. > Hi, > > Systeminformati on.username, systeminformati on.userdomain, > environment.use rname, environment.use rdomain > > Ken > ------------------- > "Derek Martin" <dm*****@DONTSP AMMEokstateDOT. edu> wrote in message > news:ux******** *****@TK2MSFTNG P10.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 > > >
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Chefry |
last post by:
I'm trying to set up an off the shelf script and keep getting an error.
My host set up the mysql on my site and I changed the variables I had to in the
settings.php file but I keep getting the following errors
Warning: mysql_pconnect(): Access denied for user: 'ODBC@localhost' (Using password: NO)
in f:\wwwroot\professionalchef\Back\JobsOnline\mysql.php on line 121
Warning: mysql_pconnect(): Access denied for user: 'ODBC@localhost'...
|
by: Oleg Shnayderman |
last post by:
Hi All,
I am very new to C# as well as to SQL. I need to write an application which
is connecting to SQL DB and getting all the user's tables and after create a
dataset for all the tables in the database and create an XML document with
all the info.
The problem is, that I can do this if I know the table name. However, what
if I don't know the table name nor I know how many user's tables in the
particular database.
|
by: Rod |
last post by:
I have been working with ASP.NET 1.1 for quite a while now. For some
reason, opening some ASP.NET applications we wrote is producing the
following error message:
"The Web server reported the following error when attempting to create or
open the Web project located at the following URL:
'http://localhost/WebApplication1'. 'HTTP/1.1 500 Internal Server Error'."
|
by: Nick |
last post by:
I'm developing an intranet app, and want to get the current user name for
logging purposes. I've turned off anonymous access, and turned on windows
authentication in the IIS config. The apps web.config file has
authentication mode set to windows, and 'identity impersonate' is set to
true.
When I try and get the default.aspx page, IE returns an error page with an
'Access is denied.' error. (Even if I try direct from the webserver, logged...
|
by: dei3cmix |
last post by:
Hey, I am having a problem with a program I am working on. Basically,
the first part of the program gets input from a file using cin.getline.
Then the second part, (still in the same main as the first part) needs
to get input from the user, and I want to do this with cin.getline
also. The problem I am getting, is when I run the program, the text if
read in from the file correctly, but it seems to just skip over the
cin.getline when I want...
| |
by: MSK |
last post by:
Hi,
Continued to my earlier post regaring "Breakpoints are not getting hit"
, I have comeup with more input this time.. Kindly give me some idea.
I am a newbie to .NET, recently I installed .NET. I could not debug
using breakpoints,
breakpoints are not getting hit, but the application is working fine
with out any issue.
|
by: Erik |
last post by:
Why isn't my update method getting called?
Pasted below is an aspx from a 1.1 application I'm working on. It has
two textboxes and a button for inserting data into the database, and a
datagrid for editing and deleting data. When a user clicks on the
"Edit" button in the datagrid, Edit() method is called and the
appropriate row is changed into textboxes. And if user clicks on the
"Update" button, the Update() method is fired. But if...
|
by: JamesB |
last post by:
I am writing a service that monitors when a particular app is started.
Works, but I need to get the user who is currently logged in, and of course
Environment.UserName returns the service logon (NT_AUTHORITY\SYSTEM).
I understand that when the service starts, no user may be logged in, but
that's ok, as the app I am monitoring can only be run by a logged in user.
Do I need to use WMI to get the user context of Explorer.exe or is there a...
|
by: Michael Howes |
last post by:
I'm writing a utility to manage a machines *local* accounts in c#
I am getting all the users in a specific Group just fine but when I
want to get some of the information on each user from their Properties
collection I can't get the properties on some users.
For example, I get all the users that are part of my machines
Administrators Group. I get get the properties of the built in local
Administrator account and some local IT account,...
|
by: tshad |
last post by:
I have a file that I converted from VB.Net to C# that works fine in VB.Net
when I compile but not in C# using the same libraries.
The error I am getting is:
PageInit.cs(9,7): error CS0138: A using namespace directive can only be
applied
to namespaces; 'System.Web.HttpCookie' is a class not a namespace
The code is:
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
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: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
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: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
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...
| |