mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-22 13:24:24 +02:00
UserBackend: Wrap config directives as part of errors in single quotes
This commit is contained in:
parent
a1d8ed6e8f
commit
a2cd5d63f1
@ -152,7 +152,7 @@ abstract class UserBackend implements Countable
|
|||||||
|
|
||||||
if (! ($backendType = strtolower($backendConfig->backend))) {
|
if (! ($backendType = strtolower($backendConfig->backend))) {
|
||||||
throw new ConfigurationError(
|
throw new ConfigurationError(
|
||||||
'Authentication configuration for backend "%s" is missing the backend directive',
|
'Authentication configuration for backend "%s" is missing the \'backend\' directive',
|
||||||
$name
|
$name
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@ -179,7 +179,7 @@ abstract class UserBackend implements Countable
|
|||||||
|
|
||||||
if ($backendConfig->resource === null) {
|
if ($backendConfig->resource === null) {
|
||||||
throw new ConfigurationError(
|
throw new ConfigurationError(
|
||||||
'Authentication configuration for backend "%s" is missing the resource directive',
|
'Authentication configuration for backend "%s" is missing the \'resource\' directive',
|
||||||
$name
|
$name
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@ -208,13 +208,14 @@ abstract class UserBackend implements Countable
|
|||||||
case 'ldap':
|
case 'ldap':
|
||||||
if ($backendConfig->user_class === null) {
|
if ($backendConfig->user_class === null) {
|
||||||
throw new ConfigurationError(
|
throw new ConfigurationError(
|
||||||
'Authentication configuration for backend "%s" is missing the user_class directive',
|
'Authentication configuration for backend "%s" is missing the \'user_class\' directive',
|
||||||
$name
|
$name
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
if ($backendConfig->user_name_attribute === null) {
|
if ($backendConfig->user_name_attribute === null) {
|
||||||
throw new ConfigurationError(
|
throw new ConfigurationError(
|
||||||
'Authentication configuration for backend "%s" is missing the user_name_attribute directive',
|
'Authentication configuration for backend "%s" is'
|
||||||
|
. ' missing the \'user_name_attribute\' directive',
|
||||||
$name
|
$name
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user