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:

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.