| 50 | const string DEFAULT_GROUP_FILTER = "(&(objectClass=group)(member={0}))"; |
| 51 | |
| 52 | Status LdapSearchBind::ValidateFlags() { |
| 53 | RETURN_IF_ERROR(ImpalaLdap::ValidateFlags()); |
| 54 | |
| 55 | if (FLAGS_ldap_user_search_basedn.empty()) { |
| 56 | return Status("LDAP Search bind authentication has been configured, " |
| 57 | "but the --ldap_user_search_basedn is empty, please configure it."); |
| 58 | } |
| 59 | if (FLAGS_ldap_user_filter.empty()) { |
| 60 | LOG(WARNING) << "LDAP Search bind authentication has been configured, but the " |
| 61 | "--ldap_user_filter is empty, the default filter will be used: " |
| 62 | << DEFAULT_USER_FILTER; |
| 63 | } |
| 64 | |
| 65 | return Status::OK(); |
| 66 | } |
| 67 | |
| 68 | Status LdapSearchBind::Init(const string& user_filter, const string& group_filter) { |
| 69 | RETURN_IF_ERROR(ImpalaLdap::Init(user_filter, group_filter)); |
nothing calls this directly
no test coverage detected