Commit 130525bc authored by jan.koester's avatar jan.koester
Browse files

test

parent c278f9d2
Loading
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -357,6 +357,14 @@ ActiveDirectory::ActiveDirectory(AuthBackend &adminBackend,
    std::cerr << "AD/LDAP plugin listening on " << bindAddr << ":" << port << std::endl;
}

void ActiveDirectory::init() {
    for (auto *s : _ServerSockets) {
        s->bind();
        s->setNonBlock();
        s->listen();
    }
}

ActiveDirectory::~ActiveDirectory() {
    delete static_cast<AdEvent*>(_Event);
    for (auto *s : _ServerSockets)
+1 −0
Original line number Diff line number Diff line
@@ -239,6 +239,7 @@ namespace authdb {

        /* Plugin interface */
        const char *name() const override { return "ad"; }
        void init() override;
        void run() override;

        /* AdPlugin interface */
+8 −0
Original line number Diff line number Diff line
@@ -2597,6 +2597,14 @@ Krb5KDC::Krb5KDC(AuthBackend &adminBackend,
    _ServerSockets.push_back(ssock);
}

void Krb5KDC::init() {
    for (auto *s : _ServerSockets) {
        s->bind();
        s->setNonBlock();
        s->listen();
    }
}

Krb5KDC::~Krb5KDC() {
    delete static_cast<KdcEvent*>(_Event);
    for (auto *s : _ServerSockets)
+1 −0
Original line number Diff line number Diff line
@@ -716,6 +716,7 @@ namespace authdb {

        /* Plugin interface */
        const char *name() const override { return "krb5"; }
        void init() override;
        void run() override { runKdc(0); }

        /* KdcPlugin interface */