func NewUserLoaderFromLDAP(cfg config.LDAP, domainAdminOverrides map[string]bool) UserLoader {
	return &UserLoaderFromLDAP{
		cfg:                  cfg,
		cache:                cache.New(time.Minute, time.Minute),
		domainAdminOverrides: domainAdminOverrides,
	}
}
NewUserLoaderFromLDAP returns new UserLoaderFromLDAP, given location with LDAP configuration file (with host/port and mapping)
package users
import (
	"crypto/tls"
	"fmt"
	"strconv"
	"strings"
	"sync"
	"time"
	"github.com/Aptomi/aptomi/pkg/config"
	"github.com/Aptomi/aptomi/pkg/lang"
	"github.com/patrickmn/go-cache"
	"gopkg.in/ldap.v2"
)
type UserLoaderFromLDAP struct {
	cfg                  config.LDAP
	cache                *cache.Cache
	domainAdminOverrides map[string]bool
}