Skip to content

All certifications

XK0-006 practice question on Authentication, 2026-11-05

Archived question for 2026-11-05. Domain: Security. Objective 3.1: Authentication. Original SecLern question, written for practice.

A TLS query to a directory server fails. ``` $ ldapsearch -x -H ldaps://10.0.0.8 -b dc=example,dc=com uid=alice TLS: hostname does not match CN in peer certificate ldap_sasl_bind(SIMPLE): Can't contact LDAP server (-1) ``` The server's certificate names ldap.example.com. Which change fixes it while keeping validation on?

Show the explanation

The URI host must match a name in the certificate.

Each option

  • A. That turns off certificate validation and hides the problem. It would be right for a test that tolerates risk.
  • B. That sends data without encryption. It would be right for no secure case.
  • C. Port 636 is already used by ldaps. It would be right for a different port number.
  • D (correct). Correct: The URI host must match a name in the certificate.

What this question tests

It maps to XK0-006 objective 3.1, Authentication: Authentication and authorisation Related ideas: ldap, tls, hostname.

The published topics under this objective, so you can check what you have covered:

  • PAM stacks
  • LDAP and Kerberos
  • SSSD

More from the archive

Start a daily session

Several questions at a time, aimed at your gaps.