A page in your DokuWiki was added or changed. Here are the details: Date : 2016/11/24 12:30 Browser : Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:50.0) Gecko/20100101 Firefox/50.0 IP-Address : 193.248.50.71 Hostname : LStLambert-656-1-262-71.w193-248.abo.wanadoo.fr Old Revision: --- New Revision: http://ltb-project.org/wiki/documentation/white-pages/latest/config_ldap Edit Summary: created User : coudot
====== LDAP connection ====== <note>Configuration file: ''white-pages/conf/config.inc.php''</note> ===== Server address ===== Use an LDAP URI to configure the location of your LDAP server in ''$ldap_url'': <file php> $ldap_url = "ldap://localhost:389"; </file> You can set several URI, so that next server will be tried if the previous is down: <file php> $ldap_url = "ldap://server1 ldap://server2"; </file> To use SSL, set ''ldaps'' in the URI: <file php> $ldap_url = "ldaps://localhost"; </file> To use StartTLS, set ''true'' in ''$ldap_starttls'': <file php> $ldap_starttls = true; </file> <note important> LDAP certificate management in PHP relies on LDAP system libraries. Under Linux, you can configure ''/etc/ldap.conf'' (or ''/etc/ldap/ldap.conf'' on Debian/Ubuntu, or ''C:\OpenLDAP\sysconf\ldap.conf'' for Windows) to either: * Provide the certificate from the certificate authority that issued your LDAP server's certificate: <file> TLS_CACERT /etc/ssl/ca.crt </file> * Or, disable server certificate checking: <file> TLS_REQCERT allow </file> </note> ===== Credentials ===== Configure DN and password in ''$ldap_bindn'' and ''$ldap_bindpw'': <file php> $ldap_binddn = "cn=manager,dc=example,dc=com"; $ldap_bindpw = "secret"; </file> <note tip>You can leave these parameters empty to bind anonymously.</note> ===== User search parameters ===== You can set the base of the search in ''$ldap_user_base'': <file php> $ldap_base = "dc=example,dc=com"; $ldap_user_base = "ou=users,".$ldap_base; </file> The filter can be set in ''$ldap_user_filter'': <file php> $ldap_user_filter = "(objectClass=inetOrgPerson)"; </file> ===== Size limit ===== It is advised to set a search limit on client side if no limit is set by the server: <file php> $ldap_size_limit = 100; </file> <note>This limit will also restrict the number of entries shown in the [[.:config_gallery|gallery]]</note> -- This mail was generated by DokuWiki at http://ltb-project.org/wiki/
_______________________________________________ ltb-changes mailing list [email protected] http://lists.ltb-project.org/listinfo/ltb-changes
