29 lines
746 B
C++
29 lines
746 B
C++
#ifndef LDAP_USER_DIRECTORY_HPP
|
|
#define LDAP_USER_DIRECTORY_HPP
|
|
|
|
#include "UserDirectory.hpp"
|
|
|
|
#include "matador/object/collection.hpp"
|
|
#include "matador/object/object_ptr.hpp"
|
|
|
|
#include "matador/utils/base_class.hpp"
|
|
|
|
namespace work::models::admin {
|
|
struct LdapUserDirectory : UserDirectory {
|
|
std::string schema_base_dn;
|
|
std::string additional_user_base_dn;
|
|
std::string additional_group_base_dn;
|
|
matador::object::collection<std::string> users;
|
|
matador::object::collection<std::string> groups;
|
|
|
|
|
|
template<typename Operator>
|
|
void process( Operator& op ) {
|
|
namespace field = matador::access;
|
|
field::process( op, *matador::base_class<UserDirectory>( this ) );
|
|
}
|
|
};
|
|
}
|
|
|
|
#endif //LDAP_USER_DIRECTORY_HPP
|