December 11, 2006 04:11 PM

Using a Logon to Determine a Distinguished Name

Rating: (0)
Windows IT Pro
InstantDoc ID #94255
Q: How can I use a logon username to determine a user's distinguished name (DN)?
A: The NameTranslate object can translate a username into a DN that you can use to reference an Active Directory (AD) account. Use the following steps:

  1. Create an instance of the NameTranslate object.
  2. Use the Init method to initialize the Name-Translate object.
  3. Pass the user s name to the NameTranslate object s Set method.
  4. Call the NameTranslate object's Get method to retrieve the user's DN.

...This article is for paid VIP Members only.

Already a VIP Member? Please log in now:

NOT A VIP MEMBER? YOU CHOOSE:

VIP Membership

Monthly

Annual

Add a Comment

dd

David8/26/2008 11:44:08 AM


You must log on before posting a comment.

Are you a new visitor? Register Here

advertisement

Related Resources

The Essential Guide to Active Directory Management
A Essential Guides by Quest Software
PrimalScript 2009: TFM®
A EBooks by Sapien
Batch Job Scheduling and .NET in 2008
A White Papers by MVPSI
More

advertisement

GOOGLE LINKS
SPONSORED LINKS
FEATURED LINKS

eBooks

Playbook for a Virtualized Datacenter | During challenging times, optimizing the IT infrastructure becomes imperative. Many organizations are looking to extend their virtualization efforts to encompass the entire datacenter. Get a step-through of your technology options and more.

White Papers

As the advances in USB devices have made them invaluable to most business users’, they have also exposed organizations to enormous risks. Learn how to easily enforce device/port control and data encryption policies without requiring new infrastructure and additional admin overhead.

WEB SEMINARS

Is Flexible Lockdown Possible? Join Darren Mar-Elia for this free web webinar exploring the various methods you should consider to protect and control your desktops while also understanding the impact on the end user community.
View Seminar On-Demand.

eLearning Series

We bring the experts direct to you to share their real-world perspective, experience, and expertise. During each event, three sessions stream in real time, allowing you to learn, to ask questions, and to get solutions.
Upcoming event: Windows 7 Deployment

Subscribe to Windows IT Pro!

Windows is a trademark of the Microsoft group of companies. Windows IT Pro is used by Penton Media Inc. under license from owner.