Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

How would you design this LDAP schema

Posted on 2007-12-04
3
Medium Priority
?
994 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 2000 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

Ask an Anonymous Question!

Don't feel intimidated by what you don't know. Ask your question anonymously. It's easy! Learn more and upgrade.

Question has a verified solution.

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

Your data is at risk. Probably more today that at any other time in history. There are simply more people with more access to the Web with bad intentions.
In this blog post, we’ll look at how using thread_statistics can cause high memory usage.
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …

971 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