Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Feb 6, 2022. It is now read-only.

Add support for ntlm auth_mode #188

Merged
merged 1 commit into from
Sep 10, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion 3 DependencyInjection/SwiftmailerTransportFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ public static function createTransport(array $options, RequestContext $requestCo
new \Swift_Transport_Esmtp_Auth_CramMd5Authenticator(),
new \Swift_Transport_Esmtp_Auth_LoginAuthenticator(),
new \Swift_Transport_Esmtp_Auth_PlainAuthenticator(),
new \Swift_Transport_Esmtp_Auth_NTLMAuthenticator()
));
$smtpAuthHandler->setUsername($options['username']);
$smtpAuthHandler->setPassword($options['password']);
Expand Down Expand Up @@ -146,7 +147,7 @@ public static function validateConfig($options)
throw new \InvalidArgumentException(sprintf('The %s encryption is not supported', $options['encryption']));
}

if (!in_array($options['auth_mode'], array('plain', 'login', 'cram-md5', null), true)) {
if (!in_array($options['auth_mode'], array('plain', 'login', 'cram-md5', 'ntlm', null), true)) {
throw new \InvalidArgumentException(sprintf('The %s authentication mode is not supported', $options['auth_mode']));
}
}
Expand Down
1 change: 1 addition & 0 deletions 1 Resources/config/schema/swiftmailer-1.0.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@
<xsd:enumeration value="plain" />
<xsd:enumeration value="login" />
<xsd:enumeration value="cram-md5" />
<xsd:enumeration value="ntlm" />
</xsd:restriction>
</xsd:simpleType>

Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.