You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: client.go
    path of file: ./repos/chainlink/core/sessions/ldapauth
    
    the code of the file until where you have to start completion: package ldapauth

import (
	"fmt"

	"github.com/go-ldap/ldap/v3"

	"github.com/smartcontractkit/chainlink/v2/core/config"
)

type ldapClient struct {
	config config.LDAP
}

//go:generate mockery --quiet --name LDAPClient --output ./mocks/ --case=underscore

// Wrapper for creating a handle to a *ldap.Conn/LDAPConn interface
type LDAPClient interface {
	CreateEphemeralCon
    
func (l *ldapClient) CreateEphemeralConnection() (LDAPConn, error) {
	conn, err := ldap.DialURL(l.config.ServerAddress())
	if err != nil {
		return nil, fmt.Errorf("failed to Dial LDAP Server: %w", err)
	}
	// Root level root user auth with credentials provided from config
	bindStr := l.config.BaseUserAttr() + "=" + l.config.ReadOnlyUserLogin() + "," + l.config.BaseDN()
	if err := conn.Bind(bindStr, l.config.ReadOnlyUserPass()); err != nil {
		return nil, fmt.Errorf("unable to login as initial root LDAP user: %w", err)
	}
	return conn, nil
}