1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/cypht_ynh.git synced 2024-09-03 18:26:09 +02:00

Create ldap.php

This commit is contained in:
Éric Gaspar 2024-05-08 20:28:56 +02:00
parent 8631859ebe
commit 648b5a95eb

70
conf/ldap.php Normal file
View file

@ -0,0 +1,70 @@
<?php
return [
/*
| -------------------------------------
| Constants used for LDAP communication
| -------------------------------------
|
| Once you edit this file, you must move it to the directory defined by
| app_data_dir in your config/app.php file. No need to re-run the
| config_gen.php script.
|
| SECURITY ALERT ! MAKE SURE THAT THIS FILE IS NOT ACCESSIBLE BY THE BROWSER !
|
| Create one section for each LDAP backend you want to support. The section name
| will be used in the UI for the name of this addressbook
|
*/
'ldap' => [
'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),
],
],
];