passing an empty base in this diagnosis call will not result in LDAP errors
Neither in "Invalid DN syntax" nor in "Object not found"
This commit is contained in:
parent
fe8dc0bd5e
commit
b91c9851a3
|
@ -49,7 +49,7 @@ try {
|
||||||
* pass (like e.g. expected syntax error).
|
* pass (like e.g. expected syntax error).
|
||||||
*/
|
*/
|
||||||
try {
|
try {
|
||||||
$ldapWrapper->read($connection->getConnectionResource(), 'neverwhere', 'objectClass=*', array('dn'));
|
$ldapWrapper->read($connection->getConnectionResource(), '', 'objectClass=*', array('dn'));
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
if($e->getCode() === 1) {
|
if($e->getCode() === 1) {
|
||||||
OCP\JSON::error(array('message' => $l->t('The configuration is invalid: anonymous bind is not allowed.')));
|
OCP\JSON::error(array('message' => $l->t('The configuration is invalid: anonymous bind is not allowed.')));
|
||||||
|
|
Loading…
Reference in New Issue