Merge branch 'master' of ssh://down/oryx/aox
[aox:aox.git] / sasl / ldaprelay.h
1 // Copyright Oryx Mail Systems GmbH. All enquiries to info@oryx.com, please.
2
3 #ifndef LDAPRELAY_H
4 #define LDAPRELAY_H
5
6 #include "connection.h"
7
8
9 class SaslMechanism;
10
11
12 class LdapRelay
13     : public Connection
14 {
15 public:
16     LdapRelay( SaslMechanism * );
17
18     void react( Event );
19
20     enum State { Working,
21                  BindFailed,
22                  BindSucceeded };
23
24     State state() const;
25
26     static Endpoint server();
27
28     void parse();
29     void bind();
30     void unbind();
31
32 private:
33     class LdapRelayData * d;
34
35     void fail( const EString & );
36     void succeed();
37 };
38
39
40 #endif