allow specifying all sasl bind options in config.php

This commit is contained in:
Stonewall Jackson committed 2024-02-28 16:29:56 -05:00
1 parent dc666e191f
commit fa44a257e9
2 files changed
+31 -6

No files matched your search

+17 -4
View File
@@ -691,11 +691,19 @@ $c->admin_email = 'calendar-admin@example.com';
// 'bindDN' => 'cn=calendar-manager,ou=users,dc=example,dc=net',
// 'passDN' => 'xxxxxxxx',
// /* Perform a SASL bind (usually EXTERNAL/GSSAPI) instead of a
// * simple bind. Enable this if you would like to authenticate to
// * the LDAP server using Kerberos credentials.
// /* Perform a SASL bind instead of a simple bind. Uncomment this option
// * to authenticate to the LDAP server using Kerberos credentials or TLS
// * certificates.
// * Depending on the SASL mechanism used, you may need to set some of the
// * sasl_ options below. You may also need to set environment variables
// * in the PHP process (KRB5CCNAME, LDAPTLS_CERT, LDAPTLS_KEY, etc).
// */
// 'sasl' => 'yes', // perform a sasl bind
// 'sasl' => 'yes',
// 'sasl_mech' => 'GSSAPI',
// 'sasl_realm' => 'EXAMPLE.COM',
// 'sasl_authc_id' => null,
// 'sasl_authz_id' => null,
// 'sasl_props' => null,
// 'protocolVersion' => '3', // version of LDAP protocol to use
// 'optReferrals' => 0, // whether to automatically follow referrals
@@ -780,6 +788,11 @@ $c->admin_email = 'calendar-admin@example.com';
// 'host' => 'ldap://ldap.example.net',
// 'port' => '389', // usually 636 for ldaps
// 'sasl' => 'yes',
// 'sasl_mech' => 'GSSAPI',
// 'sasl_realm' => 'EXAMPLE.COM',
// 'sasl_authc_id' => null,
// 'sasl_authz_id' => null,
// 'sasl_props' => null,
// 'bindDN' => 'cn=bind-user,cn=Users,dc=example,dc=net',
// 'passDN' => 'secret',
// 'baseDNUsers' => 'dc=example,dc=net',