Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rnd-soft/net-smtp-ntlm
Add-on for [net-smtp](https://github.com/ruby/net-smtp/) gem to add NTLM support. Based on [ruby-ntlm](https://github.com/macks/ruby-ntlm) gem.
https://github.com/rnd-soft/net-smtp-ntlm
Last synced: about 7 hours ago
JSON representation
Add-on for [net-smtp](https://github.com/ruby/net-smtp/) gem to add NTLM support. Based on [ruby-ntlm](https://github.com/macks/ruby-ntlm) gem.
- Host: GitHub
- URL: https://github.com/rnd-soft/net-smtp-ntlm
- Owner: RND-SOFT
- License: mit
- Created: 2024-08-15T10:56:27.000Z (3 months ago)
- Default Branch: master
- Last Pushed: 2024-08-28T14:16:18.000Z (3 months ago)
- Last Synced: 2024-08-28T15:43:40.019Z (3 months ago)
- Language: Ruby
- Size: 15.6 KB
- Stars: 10
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Net::SMTP::NTLM
Add-on for [net-smtp](https://github.com/ruby/net-smtp/) gem to add NTLM support.
Based on [ruby-ntlm](https://github.com/macks/ruby-ntlm) gem.
## Installation
Add this line to your application's Gemfile:
```ruby
gem 'net-smtp-ntlm'
```And then execute:
$ bundle
Or install it yourself as:
$ gem install net-smtp-ntlm
## Usage
Add to the end of `application.rb`
require 'net/smtp/ntlm'
## Troubleshooting
if you get an exception
Digest initialization failed: initialization error (OpenSSL::Digest::DigestError)
or
unsupported (OpenSSL::Cipher::CipherError)
or same, this could mean you try use legacy algorithm with OpenSSL 3.x. The problem can be solved in the way @rhenium described [here](https://github.com/ruby/openssl/issues/500#issuecomment-1100660910). The following is a quote.
In OpenSSL 3.0, these algorithms belong to the OpenSSL legacy provider. The legacy provider is not enabled by default in a fresh installation of OpenSSL 3.0 and has to be enabled using openssl.cnf.
https://www.openssl.org/docs/man3.0/man7/OSSL_PROVIDER-legacy.html
```
[provider_sect]
default = default_sect
legacy = legacy_sect[default_sect]
activate = 1[legacy_sect]
activate = 1
```It could also be programmatically by using "propquery" string of EVP_PKEY_CTX_new_from_name(), but this is currently not available through ruby/openssl.
## Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/ruby/net-smtp.