Installation
Currently, DocMGR's ldap implementation requires a specific setup. First, your ldap directory must use posixAccounts for the accounts you wish to allow in DocMGR. Second, your passwords must be encrypted with "{CRYPT}". Passwords using a different algorithm or in plaintext will not work. Accounts are stored using "uid=username,dc=domain,dc=com", which goes hand-in-hand with the posixAccount setup. If your ldap directory is not setup this way, ldap will not work. Setup
In the config/config.php file, add the following lines after the database information:
define("USE_LDAP","1");
In the config/ldap-config.php, set:
define("LDAP_SERVER","ldap://ldap.somewhere.com";);
define("LDAP_PORT","389");
define("BIND_DN","cn=root,dc=somewhere,dc=com");
define("BIND_PASSWORD","secret");
define("LDAP_BASE","dc=somewhere,dc=com");
define("LDAP_FILTER","(uid=*)");
define("LDAP_ROOT","dc=somewhere,dc=com");
Complete descriptions of these and the other options are in the config/ldap-config.php file itself.
After pointing DocMGR to ldap, you'll need to setup an account as an administrator. You'll need to find the uidNumber of the account you wish to use as admin. Once you discover the ldap, run the following scripts/ldap-create-admin.php file with "php ldap-create-admin.php <uidNumber>".
Replace with the uidNumber you found in the previous step.
You should be able to log in by this point. If the login goes okay, give the account management utilities a try. Make sure you can reset your password and still login with a new password.