Net::LDAP.new deprecation warning
- Ngôn ngữ chính
- Ruby
- Star
- 158
- Fork
- 28
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
When `encryption` parameter is passed as String to Net::LDAP.new
```
ldap_options = {
...
encryption: 'ssl',
}
ldap = GitHub::Ldap.new ldap_options
```
it produces the following [deprecation warning](https://github.com/ruby-ldap/ruby-net-ldap/blob/78e97ed69dc9ebbf06b04e7e70ceb046c23de75c/lib/net/ldap.rb#L622)
`Deprecation warning: please give :encryption option as a Hash to Net::LDAP.new`
At [present](https://github.com/ruby-ldap/ruby-net-ldap/blob/78e97ed69dc9ebbf06b04e7e70ceb046c23de75c/lib/net/ldap.rb#L483), the `encryption` value must be a Hash with parameters, which consists of two keys:
`method:` - `:simple_tls` or `:start_tls`
`tls_options:` - Hash of options for that method
Hướng dẫn đóng góp
Hướng nghiên cứu
Bắt đầu từ điểm vào GitHub::Ldap.new và lần theo cách ldap_options đến được Net::LDAP.new. So sánh dạng String với lib/net/ldap.rb quanh các dòng 483 và 622, nơi mô tả cấu trúc Hash được chấp nhận và cảnh báo. Hoàn tất khi việc khởi tạo LDAP không còn tạo ra cảnh báo deprecation này.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- ruby
- Lĩnh vực
- authentication
- Loại issue
- Lỗi
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 48/100