Prevent button click when enter key is pressed in LDAP wizard

Pressing enter in the LDAP wizard will trigger a click on the first
button. In the main page it would trigger the delete dialog, which is
quite inconvenient.

Added a type attribute to suppress this behavior.

Backport of bb424802c8f6e8fd0e7fbe28e000400a5b0660f3 from master