#include <map>
#include <string>
+#include <unistd.h> // uid_t, gid_t
+#include <sys/stat.h> // mode_t
+
namespace STG
{
typedef std::pair<std::string, std::string> Pair;
enum Type { UNIX, TCP };
+ struct Section
+ {
+ Section() {}
+ Section(const Pairs& ma, const Pairs& mo, const Pairs& re)
+ : match(ma), modify(mo), reply(re) {}
+ Pairs match;
+ Pairs modify;
+ Pairs reply;
+ };
+
Config() {}
Config(const MODULE_SETTINGS& settings);
- Pairs match;
- Pairs modify;
- Pairs reply;
+ Section autz;
+ Section auth;
+ Section postauth;
+ Section preacct;
+ Section acct;
bool verbose;
std::string portStr;
uint16_t port;
std::string key;
+
+ uid_t sockUID;
+ gid_t sockGID;
+ mode_t sockMode;
};
} // namespace STG