Solved

How would you design this LDAP schema

Posted on 2007-12-04
3
964 Views
Last Modified: 2013-12-24
We are looking at building a ldap directory for mail servers.

We are looking at building something similar to what I have below.  I am looking for an idea on how the schema would be designed (LDIF format is fine).

We would have multiple companies (customers) each with 1 more more domain names.  Under the domain name would be 1 or more email addresses (primary and 0+ aliases).  

So we may have 50 companies with one or two domain names with 15-150 users under each domain name and 1 primary email address with 0 - 10 secondary email addresses.  We want to be able to query at the top of the tree for an email address (when querying, we do not care what company it belongs to and what domain name, we will simply look in the directory to see if the email address exists).

Is it possible to put UID's in groups by domain and company like this and still search for "UID->Email" accross all groups?

What would the schema look like to handle this?

Top of Tree (Our dc;dc?)
     Company (Customer) name
          Domain Name 1
                  User ID 1
                      primary email address
                      alias 1
                      alias 2
                      alias 3
                      ...
                  User ID 2
                      primary email address
                      alias 1
                      alias 2
                      alias 3
                      ...
                  User ID 3
                      primary email address
                      alias 1
                      alias 2
                      alias 3
                      ...
          Domain 2
          ...
                  ...
0
Comment
Question by:CharlieBeBop
3 Comments
 
LVL 27

Accepted Solution

by:
Nopius earned 500 total points
ID: 20469540
You don't need to implement a _schema_. Standard objectClasses and attributes may be used for your LDAP tree.

One problem with aliases. Alias is typically defines a group of email addresses withing domain, it is not an attribute of the user. Of course you _can_ treat is as one more email address for each user, but you will have problems when someone removes or modifies alias in their domain name.

Another problem, when a customer owns 2+ domain names and user 'smith' is the same user in all domains, what is primary email then (when letter to smith@domain1.com and smith@domain2.com goes to the same mailbox not being an alias of each other)?

What would you use an UserID? Email address? Unique letters+number combination?

> Is it possible to put UID's in groups by domain and company like this and still search for "UID->Email" accross all groups?

Regardless of uniqueness of UID and your schema, you can perform such searches.

You may use inetOrgPerson as a STRUCTURAL oblectclass for the user and and inetMailRouting as an AUXILARY object class (it's definition can be found here: http://grotan.com/ldap/mail.schema)

As a primary mail attribute you may use 'mail', as aliases - 'rfc822MailAlias'.

To perform search by UID, perform use a subtree 'sub' scope, "(uid=your_id)"  (if you choose 'uid' as an UID attribute) and mail rfc822MailAlias as an output attributes.

But before implementing, I recommend you read more LDAP related materials, starting from:
http://en.wikipedia.org/wiki/LDAP
http://en.wikipedia.org/wiki/LDIF

0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now