Results 1 to 2 of 2

Thread: Getting User account details from a userid

  1. #1

    Thread Starter
    New Member
    Join Date
    Apr 2004
    Posts
    4

    Getting User account details from a userid

    Hi,
    I know I am asking quite a lot of questions at the moment but I am a Newbie. Sorry.

    I have some Visual Basic script that can take a user id and get more information from the AD - Telephone First name, surname, etc.

    I want to do this in VB.NET.

    The script has the following lines:

    ' Use the NameTranslate object to convert the NT user name to the
    ' Distinguished Name required for the LDAP provider.

    objTrans.Init ADS_NAME_INITTYPE_DOMAIN, strNetBIOSDomain
    objTrans.Set ADS_NAME_TYPE_NT4, strNetBIOSDomain & "\" & strNTName
    strUserDN = objTrans.Get(ADS_NAME_TYPE_1179)

    Is there any way I can do this in VB.NET?

    I am actually trying to locate the user in the AD and get back the fqdn for the user so I can then bind to the AD and read the attributes of the user...

    All help is appreciated,
    Thanks,
    Sam.

  2. #2
    Junior Member
    Join Date
    Oct 2006
    Posts
    22

    Re: Getting User account details from a userid

    hello

    I have the same question - I have a user record and I would like to grab its FQDN, but I dont know how.

    I have been trawling the AD schema (on MSDN) but have not found the appropriate field. I have also tried searching the net, but I seem to get swampped by explanations of what the FQDN is, but not on how to obtain it

    many thinks in advance

    *I notice that this post was made 2 years ago - so I am guessing it isnt as striaght forward as an attribute in the AD.
    Last edited by Ping_Chow_Chi; Oct 26th, 2006 at 07:31 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width