LDAP Wizard: make sure auto-detected suggestions are really applied initially, fixes #6142

Mainly JS. Please review @PVince81 @schiesbn @karlitschek @DeepDiver1975  or others.

(yes, I know, there is no core-dev with an LDAP server).