473,566 Members | 2,812 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 5819
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**********@n tlworld.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******** ******@TK2MSFTN GP11.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**********@n tlworld.com> wrote in message
news:e6******** ******@TK2MSFTN GP12.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**********@n tlworld.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******** ******@TK2MSFTN GP11.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
4416
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 also get their full name from Active Directory once authenticated. Can anyone suggest how I may modify this code to achieve this? I would also like...
16
2980
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 lately I've been wanting to do more stuff with user accounts, and had been eying MySQL for over a year. Finally I've decided to start off small by...
4
9837
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 then use substring to parse out just the username. What I am trying to accomplish is getting the full name of the user by doing a search in...
2
8371
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 for a users primary group so I can add it to my displayed list of groups for a user and (b) I want to display all members of a group which means I...
0
1861
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 the domain ldap://cn=mydomain,cn=mytopdomain,cn=com
0
1669
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 specified date. - DeleteProfile. Enables you to delete a profile associated with a specified username. - DeleteProfiles. Enables you to delete a...
2
3615
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 Browser URL box, %USERNAME% is repalced with the local machine ID. However, when I create a <a...
1
4092
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 SAMAccountName to retrieve the last computer the users logged on to. But i am looking for a place where i can learn this information. I was hoping someone out...
3
4857
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 directory/filename as the search string? While Path, FileInfo, and DirectoryInfo all store the path information, they use the path case passed to them, so passing a...
0
7888
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, 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. ...
1
7644
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...
0
7951
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6260
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5484
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3643
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...
1
2083
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
1
1201
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
925
bsmnconsultancy
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...

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.