<?xml version="1.0"?>
<document xmlns="http://maven.apache.org/XDOC/2.0"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/XDOC/2.0 http://maven.apache.org/xsd/xdoc-2.0.xsd">

    <properties>
        <title>DavMail POP/IMAP/SMTP/Caldav/Carddav/LDAP Exchange Gateway - OSX directory setup</title>
        <author email="mguessan@free.fr">Mickael Guessant</author>
    </properties>

    <body>

        <section name="OSX directory setup">
            <p>DavMail Directory support is now available to access Exchange address book through LDAP.
                A special OpenDirectory naming context was implemented to enable iCal attendee completion.
            </p>

            <subsection name="Open Directory Utility">
                <p>In OSX Finder, go to Utilities and launch Directory Utility. Under OSX 10.6
                    Snow Leopard, Directory Utility is tucked away in /System/Library/CoreServices.
                </p>
                <p>Leopard only: choose Show Advanced Settings, switch to Services tab</p>
                <div style="width: 100%;text-align: center">
                    <img src="images/osxDirectoryUtility1.png" alt=""/>
                </div>

                <p>Select LDAPv3 and click the pencil icon (you may need to unlock settings with your
                    admin password first):
                </p>
                <div style="width: 100%;text-align: center">
                    <img src="images/osxDirectoryUtility2.png" alt=""/>
                </div>

                <p>Click New...:
                </p>
                <div style="width: 100%;text-align: center">
                    <img src="images/osxDirectoryUtility3.png" alt=""/>
                </div>

                <p>Enter DavMail server name (localhost) and click Manual:
                </p>
                <div style="width: 100%;text-align: center">
                    <img src="images/osxDirectoryUtility4.png" alt=""/>
                </div>

                <p>Enter Configuration Name and choose OpenDirectory in LDAP Mappings:
                </p>
                <div style="width: 100%;text-align: center">
                    <img src="images/osxDirectoryUtility5.png" alt=""/>
                </div>

                <p>Enter o=od as Search Base Suffix and click Ok:
                </p>
                <div style="width: 100%;text-align: center">
                    <img src="images/osxDirectoryUtility6.png" alt=""/>
                </div>

                <p>Now click  Edit...:</p>

                <p>If DavMail LDAP listen port is not 389, check Use custom port and enter actual port (default is 1389):
                </p>
                <div style="width: 100%;text-align: center">
                    <img src="images/osxDirectoryUtility7.png" alt=""/>
                </div>

                <p>Then activate authentication under the Security tab and
                    enter your credentials, then press OK twice to close the settings:
                </p>
                <div style="width: 100%;text-align: center">
                    <img src="images/osxDirectoryUtility8.png" alt=""/>
                </div>

                <p>Under the Search Policy tab, choose Contacts, set Search to Custom Path
                    and click the + to add /LDAPV3/localhost to the list of Directory Domains:
                </p>
                <div style="width: 100%;text-align: center">
                    <img src="images/osxDirectoryUtility9.png" alt=""/>
                </div>

                <p>Proceed to
                    <a href="osximapmailsetup.html">OSX IMAP Mail setup</a>
                </p>
            </subsection>
        </section>
    </body>
</document>