I am trying to set up DocMGR as a document management system, currently I have managed to get everything to work except authenticating users against my LDAP server which is Zentyal 2.2.
This should not be a blocking point
Here is my ldap-config.php file for DocMGR:
//your ldap server uri
define("LDAP_SERVER","ldap://10.0.0.1");
//your ldap server port
define("LDAP_PORT","389");
//the dn to bind to your server with
define("BIND_DN","dc=myserver,dc=mydomain,dc=com");
//the password of the above specified dn
define("BIND_PASSWORD","secret");
if you access from Zentyal server itself (if you have installed DocMGR on Zentyal, then address should rather be 127.0.0.1
if you access from another server, then be sure you have open access to port 389 in FW.
Your BIND_DN is wrong. You should put there what account you will find in LDAP settings. Something like
cn=ebox,dc=myserver,dc=mydomain,dc=com
//your search attribute base for accounts
define("LDAP_BASE","ou=Users,dc=myserver,dc=mydomain,dc=com");
//default base for creating accounts
define("LDAP_CREATE_BASE",LDAP_BASE);
//a search filter to limit valid accounts to
define("LDAP_FILTER","(uid=*)");
//password encrytion in database
define("LDAP_CRYPT","MD5");
//ldap protocol
define("LDAP_PROTOCOL","3");
//default group id for a new account
define("DEFAULT_GID","100");
//base of our tree
define("LDAP_ROOT","cn=ebox,dc=myserver,dc=mydomain,dc=com");
as you may guess, LDAP_ROOT is wrong too. you should put here
dc=myserver,dc=mydomain,dc=com
Be very cautious with this application that is thinking as entitled to create accounts in LDAP. Strongly refrain yourself to do this as such created accounts will not work in Zentyal.
//your dn in your directory should look like this:
//<UID>=<login>,<LDAP_BASE>
//ex: uid=mylogin,ou=people,dc=mydomain,dc=com
I really hate this applications that are forging DN or make supposition on what DN should be. Poor LDAP knowledge