HTTPD server does LDAP authentication. How does the mechanism work?

The 'Basic' HTTP Authentication Scheme is described in RFC 7617.

The credentials are passed as an HTTP header and not encrypted so Basic Auth use over plain HTTP without encryption is insecure. If used over HTTPS there are other issues - see this question