15.02.2015 Views

C# 4 and .NET 4

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Programming active Directory ❘ OC131<br />

By opening the properties window of an object, you can<br />

view <strong>and</strong> change every attribute of an object in Active<br />

Directory. With this tool, you can see m<strong>and</strong>atory <strong>and</strong><br />

optional attributes, with their types <strong>and</strong> values (see<br />

Figure 52-7).<br />

Programming aCTiVe direCTory<br />

To develop programs for Active Directory,<br />

you can use the classes from either the<br />

System.DirectoryServices or the System<br />

.DirectoryServices.Protocols namespaces. In the<br />

namespace System.DirectoryServices, you can find<br />

classes that wrap Active Directory Service Interfaces<br />

(ADSI) COM objects to access Active Directory.<br />

ADSI is a programmatic interface to directory<br />

services. It defines some COM interfaces that are<br />

implemented by ADSI providers. This means that the<br />

client can use different directory services with the same<br />

programmatic interfaces. The .<strong>NET</strong> Framework classes<br />

in the System.DirectoryServices namespace make<br />

use of ADSI.<br />

figure 52-7<br />

Figure 52-8 shows some ADSI Providers (LDAP, IIS, <strong>and</strong> NDS) that implement COM interfaces such as<br />

IADs <strong>and</strong> IUnknown. The assembly System.DirectoryServices makes use of the ADSI providers.<br />

IUnknown<br />

IADs<br />

LDAP<br />

Provider<br />

Active Directory<br />

IUnknown<br />

Assembly<br />

System Directory Services<br />

IADs<br />

IIS<br />

Provider<br />

IIS<br />

IUnknown<br />

IADs<br />

NDS<br />

Provider<br />

figure 52-8<br />

Novell<br />

www.it-ebooks.info

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!