1

Topic: iRedmail and its openLDAP

==== Required information ====
- iRedMail version: 0.8.7
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP
- Linux/BSD distribution name and version: Ubuntu 12.04.3 LTS 64-bit
- Related log if you're reporting an issue:
====

Hi Zhang,

I know that when I use iredadmin to create users, the user's are contained under the "Users" OU in LDAP. Would it be possible to add another OU under Users like for example the department then I can move the users to their respective department? just to make the ldap tree organized.

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: iRedmail and its openLDAP

Why not try this way to organize department:

- Add new ou to contains all your departments. e.g. ou=Departments,domainName=abc.com,o=domains,dc=xx,dc=xx.
- Add new department under ou=Departments. For example, "uid=sales,ou=Departments,domainName=abc.com,..." with attribute/value pair 'cn=Sales'.
- Add attribute/value pair for user: department=sales (use uid as unique identity).