Active Directory

The following provides a samle AD configuration.

 

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE NOOJEE-LDAP-CONF
[
<!ENTITY Server "adserver.noojee.com.au">
<!ENTITY Domain "DC=noojee,DC=com,DC=au">
<!ENTITY InetDomain "noojee.com.au">
<!ENTITY Port   "389">
<!ENTITY AdminUserCN    "noojeepbx">
<!ENTITY AdminUserPassword  "apasswordgoeshere">
<!ENTITY UserSearchBaseDN "OU=Noojee Telephony,DC=noojee,DC=com,DC=au">
<!-- If you want to include groups such as Domain Admins as well as regular groups
  we have to search the whole tree -->
<!ENTITY GroupSearchBaseDN "OU=DC=noojee,DC=com,DC=au">

]
>

<ldap>
    <server>&Server;</server>
    <port>&Port;</port>
    <use-ssl>false</use-ssl>
    <authDomain>&Domain;</authDomain>
    <!-- user to auth with when searching -->
    <binddn>&AdminUserCN;@&InetDomain;</binddn>
    <bindpw>&AdminUserPassword;</bindpw>

    <user>
        <baseDN>&UserSearchBaseDN;</baseDN>
        <scope>subtree</scope>
        <filter>(&(objectClass=user)(sAMAccountName=%1))</filter>
        <attributes>
            <authDN>distinguishedName</authDN>
            <groupMembershipID>distinguishedName</groupMembershipID>
            <!--  We can't seem to find the email which should be in emailNickname -->
            <email>userPrincipalName</email>
            <enabled true="true" false="false" default="true">enabled</enabled>
        </attributes>
    </user>

    <!--  Note it is not possible to map a group to NoojeeAdmin
        NoojeeAdmin is always treated as a JDBC Login.
        If the ldap server has a group name that you want to ignore
        then just map it to the group Staff Member.
        
        Valid groups are:
                Administrators
                Agent
                Office Manager
                Recording Manager
                Staff Member
                Supervisor
        Depending on what Noojee Admin modules you have installed their may be additional groups available.
        -->
    <groups>
        <baseDN>&GroupSearchBaseDN;</baseDN>
        <scope>subtree</scope>
        <nameAttribute>cn</nameAttribute>>
        <filter>(&(objectClass=group)(member=%1))</filter>
        <mappings>
            <ldapGroup name="Domain Admins">
                <njadminGroup name="Administrators"/>
                <njadminGroup name="Agent"/>
                <njadminGroup name="Staff Member"/>
                <njadminGroup name="Supervisor"/>
                <njadminGroup name="Recording Manager"/>
                <njadminGroup name="Show All Recordings"/>
                <njadminGroup name="Staff Member"/>
                <njadminGroup name="Campaign Importer"/>
                <njadminGroup name="Campaign Manager"/>
                <njadminGroup name="Office Manager"/>
                <njadminGroup name="Receptionist"/>
                <njadminGroup name="Call Monitor"/>
            </ldapGroup>
            <ldapGroup name="Divisional Managers">
                <njadminGroup name="Supervisor"/>
                <njadminGroup name="Agent"/>
                <njadminGroup name="Staff Member"/>
                <njadminGroup name="Recording Manager"/>
                <njadminGroup name="Show All Recordings"/>
                <njadminGroup name="Call Monitor"/>
            </ldapGroup>
            <ldapGroup name="Sales Managers">
                <njadminGroup name="Supervisor"/>
                <njadminGroup name="Agent"/>
                <njadminGroup name="Staff Member"/>
                <njadminGroup name="Recording Manager"/>
                <njadminGroup name="Show All Recordings"/>
                <njadminGroup name="Campaign Importer"/>
                <njadminGroup name="Campaign Manager"/>
                <njadminGroup name="Call Monitor"/>
            </ldapGroup>
             <ldapGroup name="Team Leaders">
                <njadminGroup name="Supervisor"/>
                <njadminGroup name="Agent"/>
                <njadminGroup name="Staff Member"/>
                <njadminGroup name="Recording Manager"/>
                <njadminGroup name="Show All Recordings"/>
                <njadminGroup name="Call Monitor"/>
            </ldapGroup>
            <ldapGroup name="Sales Agents">
                <njadminGroup name="Agent"/>
                <njadminGroup name="Staff Member"/>
            </ldapGroup>
        </mappings>
    </groups>
</ldap>