[ "connection" => [ "server" => "innerweb.claremontmakerspace.org", "port" => 7636, "enctype" => "ssl", "user" => "uid=LDAPSearch,cn=users,dc=sawtooth,dc=claremontmakerspace,dc=org", "pass" => $secrets['LDAPPass'], "options" => [ "LDAP_OPT_DEREF" => 1, ], "basedn" => "cn=users,dc=sawtooth,dc=claremontmakerspace,dc=org", "groupbasedn" => "dc=sawtooth,dc=claremontmakerspace,dc=org", "userbasedn" => "dc=sawtooth,dc=claremontmakerspace,dc=org", "searchattribute" => "uid", "searchstring" => "uid=USER-NAME,cn=users,dc=sawtooth,dc=claremontmakerspace,dc=org", "usernameattribute" => "uid", "realnameattribute" => "cn", "emailattribute" => "mail" ], "authentication" => [ "usernameattribute" => "uid", "realnameattribute" => "cn", "emailattribute" => "mail" ], "userinfo" => [ "email" => "mail", "realname" => "cn", "properties.gender" => "gender" ] ] ]; return new \MediaWiki\Extension\LDAPProvider\DomainConfigProvider\InlinePHPArray( $config ); }; wfLoadExtension( 'VisualEditor' ); wfLoadExtension( 'TemplateData' ); wfLoadExtension( 'Variables' ); wfLoadExtension( 'CSS' ); wfLoadExtension( 'Widgets' ); wfLoadExtension( 'ApprovedRevs' ); wfLoadExtension( 'SemanticApprovedRevs' ); wfLoadExtension( 'Diagrams' ); $wgDiagramsServiceUrl ='https://wiki.claremontmakerspace.org/diagrams'; require_once "$IP/extensions/QRLite/QRLite.php"; wfLoadExtension( 'ExternalData' ); $edgStringReplacements['SNIPEIT_URL'] = 'https://inventory.claremontmakerspace.org'; $edgAllowExternalDataFrom = 'SNIPEIT_URL'; // TODO: Use ExternalDataBeforeWebCall to set the headers only for // snipeit API calls. Only matters if other domains are added to // the whitelist. $edgHTTPOptions = [ 'headers' => [ 'Accept' => 'application/json', 'Content-Type' => 'application/json', 'Authorization' => 'Bearer '.$secrets['SnipeITAPIKey'] ] ];