|
|
|
date: 24 Jan 2006 16:10:16 -0800,
group: microsoft.public.platformsdk.active.directory
back
Re: Querying user by Firstname in AD
I don't usually write these types of applications in script (I'm a .NET
guy), but the basic thing you need to learn here is how to create LDAP
queries. I'd suggest reading through the MSDN documentation on searching in
AD:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/ad/ad/searching_active_directory.asp?frame=true
Essentially, you'd want to do a query with a filter that looks something
like:
(givenName=xxx)
to find users with a first name "xxx". You can add a "*" character to the
end of the string to find objects with first name beginning in "xxx".
Once you get up to speed on querying the directory and returning results, it
should be easier for you to build the app.
Joe K.
wrote in message
news:1138147816.211140.199690@o13g2000cwo.googlegroups.com...
> Hello Guys,
>
> Iam given this project of creating a white pages intranet which help me
> to pull user attributes.
>
> The web page should have input box which accept the query ( a Firstname
> of the user ) and then do a search in AD and retrieve the details and
> dispaly on a web browser
>
> I need your expert advice on how to code this script. I want to
> implement a VbScript which gives domain users an Webinterface to query
> active directory based on users Firstname or Lastname and pull out the
> contact details like Telephone number and Mobile number.
>
>
> I know how to extract the information using LDAP queries but what I
> want is a tool whiach is easy for the users to use.
>
>
> 1, When they type in Da in the firstname field it should extract all
> the users whose name start with Da and display it in dropdown list ( or
> other alternate ways of displaying this information) ..ie
> Damian Troy
> Daniel Smith
> David Hoy
> David Yee
>
>
> 2, If they find the user whose detsils needed to be looked at they will
>
> clivck on the user and the script will display
>
>
> Firstname, Lastname, Address, Phonenumber, mobile
>
>
> any help would be greatly appreciated.
>
>
> thanks
>
>
> cha
>
date: Tue, 24 Jan 2006 22:56:23 -0600
author: Joe Kaplan \(MVP - ADSI\)
|
|