473,394 Members | 1,770 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Retrieve Full DN (AdsPath) given Username

Does anyone know how to get the full Distinguished Name from the Useraname
using vb.net??? All the examples show how to manipulate user objects but
they have the LDAP path hardcoded??? I need to know how to fetch the path
given the user name... thanks!!!

Cameron
Nov 19 '05 #1
2 5808
There isn't an object stored with the username, or the even just the path,
so I guess you'll have to search the directory for the username in order to
get the fully qualified name.

--
Happy to help,
-- Tom Spink
(th**********@ntlworld.com)

http://dotnetx.betasafe.com >> On The Mend

Please respond to the newsgroup,
so all can benefit.
One Day,
"Cameron Frasnelly" <ne***********@premierwestbank.com> wrote in message
news:eP**************@TK2MSFTNGP11.phx.gbl...
Does anyone know how to get the full Distinguished Name from the Useraname
using vb.net??? All the examples show how to manipulate user objects but
they have the LDAP path hardcoded??? I need to know how to fetch the path
given the user name... thanks!!!

Cameron

Nov 19 '05 #2
How do I do that? Thanks!
"Tom Spink" <th**********@ntlworld.com> wrote in message
news:e6**************@TK2MSFTNGP12.phx.gbl...
There isn't an object stored with the username, or the even just the path,
so I guess you'll have to search the directory for the username in order to get the fully qualified name.

--
Happy to help,
-- Tom Spink
(th**********@ntlworld.com)

http://dotnetx.betasafe.com >> On The Mend

Please respond to the newsgroup,
so all can benefit.
One Day,
"Cameron Frasnelly" <ne***********@premierwestbank.com> wrote in message
news:eP**************@TK2MSFTNGP11.phx.gbl...
Does anyone know how to get the full Distinguished Name from the Useraname using vb.net??? All the examples show how to manipulate user objects but they have the LDAP path hardcoded??? I need to know how to fetch the path given the user name... thanks!!!

Cameron


Nov 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Miguel Orrego | last post by:
Hi, I have found some code that authenticates users agains a domain using ADSI. I then redirect to another page and pass the username they have entered as a string. However, it would be nice to...
16
by: Daniel Tonks | last post by:
First, please excuse the fact that I'm a complete MySQL newbie. My site used forum software that I wrote myself (in Perl) which, up until now, has used flat files. This worked fine, however...
4
by: Mike | last post by:
Greetings, I am writing an Intranet application in ASP.NET using VB.NET. I am obtaining the username of the user with: uName = User.Identity.Name, which is in the form of DOMAIN\username. I...
2
by: Brad | last post by:
I'm extracting info for users and group in our domain using directoryservices. This is working well except I have one more piece I need to finish which I'm stuck on. I need to (a) query the info...
0
by: geertm | last post by:
I have the following code: -------------------- sdomain = "mydomain" oDomain.Path = "LDAP://" & sDomain ------------------------------ odomain : DirectoryEntry I want to get the adspath from...
0
by: george_Martinho | last post by:
It seems that the ASP.NET Microsoft team didn't think about this!! The profilemanager class has the following methods: - DeleteInactiveProfiles. Enables you to delete all profiles older than a...
2
by: adam | last post by:
Hi ASP Expert, My goal is to retrieve my local machine's %USERNAME% environment variable from ASP page. When I enter http://RemoteServerName/testusername.asp?id=%USERNAME% directly into the IE...
1
maxamis4
by: maxamis4 | last post by:
Hello folks, Here is the backgroup. I am creating an agent that can find a user in LDAP and return the last logon date. Now i am not sure if with active directory you can user the...
3
by: =?Utf-8?B?RGV2b24=?= | last post by:
Is it possible to retrieve a proper/invariant file or directory name using a lowercase full path string without having to resort to a call to GetDirectories()/GetFiles() using the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
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,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
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,...
0
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...
0
tracyyun
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.