Step by Step

When faced with learning a new technology, I generally want to know the process for working with it. What's the first step I have to take? What's the next? Often times, programming books and software development kits throw a bunch of information together in a seemingly random order, and not until you understand the whole do you know what specific steps to take to be productive.

The process for working with Active Directory is straightforward. Let's say you are creating an application to look up a person's telephone number in the directory and possibly change some personal information. Here is a sketch of the steps that application would follow (the terms that Active Directory and ADSI use are shown in bold).

  1. Prompt the user for the name to look up.
  2. Bind to the directory and provide authentication information if necessary.
  3. Search the directory for entries that have the specified name.
  4. Get the returned object's properties, in this case the telephone number and other information, possibly the full name of the person.
  5. Display the information to the user and gather any changes.
  6. Put changes into the directory object's properties.
  7. Set changes to the object, recording them in the directory.

That covers the majority of the work with Active Directory, but of course, that's not all. I left out some things that applications tend to require because this example is so simple. Here are the other operations that are typically performed with Active Directory:

  • Enumerate objects in a container.
  • Create or delete directory objects within a container.
  • List the properties of an object when they are not known beforehand.
  • Extend the directory with new classes of objects and properties

In the following sections, I'll focus on binding to the directory. In the next chapter, I'll cover searching. In Chapter 6, I'll cover how to access directory data and modify it, enumerate directory objects, and add and delete directory objects. In Chapter 7, I'll talk about how to retrieve data without knowing property names. In Chapter 9, I'll cover how to extend Active Directory with new classes and objects.



MicrosoftR WindowsR 2000 Active DirectoryT Programming
MicrosoftR WindowsR 2000 Active DirectoryT Programming
ISBN: N/A
EAN: N/A
Year: 2001
Pages: 108

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net