Breadcrumbs

Authenticate to Multiple LDAP servers

A single installation of FileCloud can authenticate against multiple LDAP servers.

Enable multiple LDAP server authentication

To enable multiple LDAP server authentication, configure settings in the following places:

  • ldapconfig.php file

  • FileCloud admin portal

 

To enable multiple AD server authentication:

  1. In the FileCloud admin portal, go to Settings > Authentication.

  2. To enable the LDAP settings, under Authentication Settings, change the Authentication Type to LDAP.

  3. Select the LDAP sub-tab, type in the required information, and then click Save.

  4. Create a file called ldapconfig.php in one of the following locations, depending on your OS:

    Windows Location 
    c:\xampp\htdocs\config\ldapconfig.php 
    
    Linux Location 
    /var/www/htdocs/config/ldapconfig.php
    
  5. Add the information for the other LDAP servers using the following example.   https://fileclouddocs.atlassian.net/wiki/s/1623602073/6452/05f502871a457750e4d6a5e1f585bce5603b62b2/_/images/icons/emoticons/warning.png Do not add information for the same LDAP server that was already configured in Admin Dashboard.

    <?php

    /*
    * Copyright(c) 2014 CodeLathe LLC. All rights Reserved.
    * This file is part of FileCloud  http://www.filecloud.com
    */

    // ... Multi-AD Server Support, set to 1 to enable additional AD servers
    define("TONIDOCLOUD_MULTI_LDAP_ENABLE", 1);
    //=============== SITE 1 ==============================
    define("TONIDOCLOUD_LDAP_HOST_1", "ldap.mycompany.com" ); // < LDAP Server Host
    define("TONIDOCLOUD_LDAP_PORT_1", 389 ); // < LDAP Server port
    define("TONIDOCLOUD_LDAP_ACCOUNTNAME_1", "cn=admin,dc=mycompany,dc=com"); // < Account name for Admin Operations
    define("TONIDOCLOUD_LDAP_ACCOUNTPASSWORD_1", "3lkjASdf9802"); // < Account Password for Admin Operations
    define("TONIDOCLOUD_LDAP_USERDNTEMPLATE_1", "cn=^NAME^,ou=MyCompnay-Support,dc=mycompany,dc=com"); // < USer DN template
    define("TONIDOCLOUD_LDAP_SEARCHDN_1", "ou=MyCompany-Support,dc=mycompany,dc=com"); // < USer DN template
    define("TONIDOCLOUD_LDAP_USERFILTERTEMPLATE_1", "(&(objectClass=inetOrgPerson)(cn=^NAME^))"); // < USer DN template
    define("TONIDOCLOUD_LDAP_MAILATTRIBUTE_1", "mail"); // < Mail Attribute

    ?>

    Now additional users from these domains can also log in into FileCloud.