Use SSL for LDAP auth

This commit is contained in:
Adam Goldsmith 2021-10-21 01:55:27 -04:00
parent b57b88bb28
commit 8d4282cb27

View File

@ -172,6 +172,7 @@ $wgScribuntoDefaultEngine = 'luastandalone';
$wgScribuntoUseCodeEditor = "true"; $wgScribuntoUseCodeEditor = "true";
# LDAP # LDAP
putenv('LDAPTLS_REQCERT=never');
wfLoadExtension( 'PluggableAuth' ); wfLoadExtension( 'PluggableAuth' );
wfLoadExtension( 'LDAPProvider' ); wfLoadExtension( 'LDAPProvider' );
wfLoadExtension( 'LDAPUserInfo' ); wfLoadExtension( 'LDAPUserInfo' );
@ -181,8 +182,8 @@ $LDAPProviderDomainConfigProvider = function() use ($secrets) {
'CMS' => [ 'CMS' => [
"connection" => [ "connection" => [
"server" => "self-service.claremontmakerspace.org", "server" => "self-service.claremontmakerspace.org",
"port" => 7389, "port" => 7636,
"enctype" => "clear", "enctype" => "ssl",
"user" => "uid=LDAPSearch,cn=users,dc=sawtooth,dc=claremontmakerspace,dc=org", "user" => "uid=LDAPSearch,cn=users,dc=sawtooth,dc=claremontmakerspace,dc=org",
"pass" => $secrets['LDAPPass'], "pass" => $secrets['LDAPPass'],
"options" => [ "options" => [