func DetermineLDAPFilter(filter string) (string, error) {
	if len(filter) == 0 {
		return defaultFilter, nil
	}
	if _, err := ldap.CompileFilter(filter); err != nil {
		return "", fmt.Errorf("invalid filter: %v", err)
	}
	return filter, nil
}
// DetermineLDAPFilter determines the LDAP search filter. Filter is a valid LDAP filter
// Default to "(objectClass=*)" per RFC
DetermineLDAPFilter determines the LDAP search filter. Filter is a valid LDAP filter
Default to "(objectClass=*)" per RFC
// DetermineLDAPFilter determines the LDAP search filter . Filter is a valid LDAP filter // Default to " ( objectClass = * ) " per RFC
func DetermineLDAPFilter(filter string) (string, error) {
	if len(filter) == 0 {
		return defaultFilter, nil
	}
	if _, err := ldap.CompileFilter(filter); err != nil {
		return "", fmt.Errorf("invalid filter: %v", err)
	}
	return filter, nil
}
func DetermineLDAPFilter ( filter string ) ( string , error ) { if len ( filter ) == 0 { return defaultFilter , nil } if _ , err := ldap . CompileFilter ( filter ) ; err != nil { return " " , fmt . Errorf ( " " , err ) } return filter , nil }
DetermineLDAPFilter determines the LDAP search filter.
DetermineLDAPFilter determines the LDAP search filter .