Index: trunk/extensions/OpenStackManager/OpenStackNovaUser.php |
— | — | @@ -266,6 +266,9 @@ |
267 | 267 | global $wgOpenStackManagerLDAPUser, $wgOpenStackManagerLDAPUserPassword; |
268 | 268 | global $wgOpenStackManagerLDAPDomain; |
269 | 269 | |
| 270 | + if ( !$wgAuth instanceof LdapAuthenticationPlugin ) { |
| 271 | + die( 'Install and configure the <a href="http://www.mediawiki.org/wiki/Extension:LDAP_Authentication">LDAP Authentication</a> extension' ); |
| 272 | + } |
270 | 273 | $wgAuth->connect( $wgOpenStackManagerLDAPDomain ); |
271 | 274 | $wgAuth->bindAs( $wgOpenStackManagerLDAPUser, $wgOpenStackManagerLDAPUserPassword ); |
272 | 275 | } |