mirror of
https://github.com/znc/znc.git
synced 2026-08-06 17:03:14 +02:00
Parse network and client from authzid. Tests will be in future commit
This commit is contained in:
@@ -36,13 +36,11 @@ class CSASLMechanismPlain : public CModule {
|
||||
CString sAuthcId = sMessage.Token(1, false, sNullSeparator, true);
|
||||
CString sPassword = sMessage.Token(2, false, sNullSeparator, true);
|
||||
|
||||
if (!sAuthzId.empty() && sAuthzId != sAuthcId) {
|
||||
// Reject custom SASL plain authorization identifiers
|
||||
GetClient()->RefuseSASLLogin("No support for custom AuthzId");
|
||||
return HALTMODS;
|
||||
if (sAuthzId.empty()) {
|
||||
sAuthzId = sAuthcId;
|
||||
}
|
||||
|
||||
GetClient()->StartSASLPasswordCheck(sAuthcId, sPassword);
|
||||
GetClient()->StartSASLPasswordCheck(sAuthcId, sPassword, sAuthzId);
|
||||
return HALTMODS;
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user