added a bigger real-life demo

This commit is contained in:
Sascha Kühl
2025-06-25 15:57:02 +02:00
parent e72733d37e
commit 4dcbf009da
15 changed files with 500 additions and 0 deletions
+28
View File
@@ -0,0 +1,28 @@
#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