Support SASL EXTERNAL in certauth

This commit is contained in:
Alexey Sokolov
2025-02-24 20:01:34 +00:00
parent 8778a2bb5d
commit 37457105f3
3 changed files with 161 additions and 10 deletions
+2 -2
View File
@@ -19,7 +19,7 @@
class CSASLMechanismPlain : public CModule {
public:
MODCONSTRUCTOR(CSASLMechanismPlain) { AddHelpCommand(); }
MODCONSTRUCTOR(CSASLMechanismPlain) {}
void OnClientGetSASLMechanisms(SCString& ssMechanisms) override {
ssMechanisms.insert("PLAIN");
@@ -27,7 +27,7 @@ class CSASLMechanismPlain : public CModule {
EModRet OnClientSASLAuthenticate(const CString& sMechanism,
const CString& sMessage) override {
if (!sMechanism.Equals("PLAIN")) {
if (sMechanism != "PLAIN") {
return CONTINUE;
}