# LDAPStack in Bluespice 4.4

**URL:** <https://community.bluespice.com/t/ldapstack-in-bluespice-4-4/154>\
**Category:** Configuration/Setup\
**Created:** [July 2, 2024, 10:16am UTC](https://community.bluespice.com/t/ldapstack-in-bluespice-4-4/154 "2024-07-02T10:16:06Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![rvogel](https://avatars.discourse-cdn.com/v4/letter/r/eada6e/32.png) [@rvogel](https://community.bluespice.com/u/rvogel)\
**Post date:** [October 23, 2024, 2:44pm UTC](https://community.bluespice.com/t/ldapstack-in-bluespice-4-4/154/4 "2024-10-23T14:44:26Z")

</div>

You are right. Values from Extension:BlueSpiceConfigManager take precedence over the ones set in `LocalSettings.php`.

Try to wrap your settings into a `$wgExtensionFunctions` callback like this:

```auto
$GLOBALS['wgExtensionFunctions'][] = static function () {
	$GLOBALS['wgPluggableAuth_EnableAutoLogin'] = true;
	// Clear out whatever is set by BlueSpiceConfigManager
	$GLOBALS['wgPluggableAuth_Config'] = [];
	$GLOBALS['wgPluggableAuth_Config']['Log In (MyDomain)'] = [
		'plugin' => 'LDAPAuthentication2',
		'data' => [
			'domain' => 'my.domain.com'
		]
	];
};

```

It should make sure your settings are being evaluated _after_ Extension:BlueSpiceConfigManager. Therefore overwriting them.

---

_[View the full topic](https://community.bluespice.com/t/ldapstack-in-bluespice-4-4/154)._
