Mapping
It's pretty easy to map objects to your directory structure. Each naming context is similar to a table in RDBMS. For instance, take this structure:
- DC=example,DC=com
- OU=Roles
- OU=Servers
- OU=Web Servers
- CN=www.example.com
- CN=www2.example.com
- OU=Email Servers
- CN=mail.example.com
- CN=exchange.example.com
You're primary objects would be
Role and
Server. Their naming contexts would be
OU=Roles,DC=example,DC=com and
OU=Servers,DC=example,DC=com. Server would have two sub classes
WebServer and
EmailServer. The naming contexts for these would be
OU=Web Servers,OU=Servers,DC=example,DC=com and
OU=Email Servers,OU=Servers,DC=example,DC=com.