Skip to content
Snippets Groups Projects
Commit 6c4edc1d authored by Hendrik Grahl's avatar Hendrik Grahl Committed by Lee Rowlands
Browse files

Issue #2719827 by grahl: Ldap Server: Anonymous Bind causes php error when saving form

parent eeba100d
No related branches found
No related tags found
No related merge requests found
......@@ -498,7 +498,9 @@ class ServerForm extends EntityForm {
// If there isn't a password then load the existing one (unless this an anonymous bind server)
elseif ( $form_state->getValue('bind_method') != LDAP_SERVERS_BIND_METHOD_ANON || $form_state->getValue('bind_method') != LDAP_SERVERS_BIND_METHOD_ANON_USER ) {
$entity = ldap_servers_get_servers($server->id());
$server->set('bindpw', $entity->get('bindpw'));
if ($server->get('bindpw')) {
$server->set('bindpw', $entity->get('bindpw'));
}
}
$status = $server->save();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment