diff --git a/conf/ldap.php b/conf/ldap.php new file mode 100644 index 0000000..9f973f4 --- /dev/null +++ b/conf/ldap.php @@ -0,0 +1,70 @@ + [ + 'Personal' => [ + /* + | LDAP Server hostname or IP address + */ + 'server' => env('LDAP_SERVER', 'localhost'), + + /* + | Flag to enable or disable TLS connections + */ + 'enable_tls' => env('LDAP_ENABLE_TLS', true), + + /* + | Port to connect to + */ + 'port' => env('LDAP_PORT', 389), + + /* + | Base DN + */ + 'base_dn' => env('LDAP_BASE_DN', 'dc=yunohost,dc=org'), + + /* + | Base DN + */ + 'search_term' => env('LDAP_SEARCH_TERM', 'objectclass=inetOrgPerson'), + + /* + | Flag to enable user binding. Anonymous binding is used when set to false + */ + 'auth' => env('LDAP_AUTH', false), + + /* + | Global username and password to bind with if auth is set to true. If left + | blank, users will have a setting on the Settings -> Site page for this + | connection to enter their own + */ + 'user' => env('LDAP_USER', ''), + 'pass' => env('LDAP_PASS', ''), + + /* + | Object classes for the addressbook entries + */ + 'objectclass' => explode(',', env('LDAP_OBJECT_CLASS','top,person,organizationalperson,inetorgperson')), + + /* + | Flag to allow editing of the addressbook contents + */ + 'read_write' => env('LDAP_READ_WRITE', true), + ], + ], +]; \ No newline at end of file