LDAP query help

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Tash (Tash_at_discussions.microsoft.com)
Date: 03/11/05


Date: Fri, 11 Mar 2005 08:53:02 -0800

I'm trying to get the user logon name out with a query from Active Directory.
Whats the field name. I cant find it anywhere. I tried logon, logonname,
userlogon, login, loginname, etc.

cmd.CommandText = "select name, distinguishedname, profilepath, homedrive,
homedirectory, xxx" _
& " from 'LDAP:// OU= NY, DC=FFHSJ, DC=COM' WHERE objectCategory='user'"

Can someone help me out with what to put in the xxx to get the user logon
field from active directory?

Thanks.



Relevant Pages

  • Re: script are not execute
    ... The domain user has more then one logon scripts ... created under profile on Active Directory and normally on start up ... them automatically load after user logon on domain. ... For some reason when the user logon on domain, ...
    (microsoft.public.win2000.general)
  • Re: Login to AD with Pre-2000 Login Username?
    ... Bring up a user Active Directory Users and Computers and select the Account tab. ... Check to see if the "User Logon Name" field is populated with the same value as the "User Logon Name. ... Run dcdiag, netdiag and repadmin in verbose mode. ...
    (microsoft.public.windows.server.active_directory)
  • Re: Generating a report of user logon hours
    ... Is it possible to export user logon hours details from Active Directory. ... That program does not adjust for the local time zone bias, ... UTC. ...
    (microsoft.public.windows.server.active_directory)
  • Re: How can I retrieve the exchanges "User logon name" from outlook plugin ?
    ... User logon name" but not "User logon name". ... Active Directory in format user_name@xxxxxxxxxxxxxxx? ... you can then use IADsNameTranslate interface to change ...
    (microsoft.public.win32.programmer.messaging)