1 Star 0 Fork 0

Gitee 组/ruby-net-ldap

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

Net::LDAP for Ruby

Gem Version

Description

Net::LDAP for Ruby (also called net-ldap) implements client access for the Lightweight Directory Access Protocol (LDAP), an IETF standard protocol for accessing distributed directory services. Net::LDAP is written completely in Ruby with no external dependencies. It supports most LDAP client features and a subset of server features as well.

Net::LDAP has been tested against modern popular LDAP servers including OpenLDAP and Active Directory. The current release is mostly compliant with earlier versions of the IETF LDAP RFCs (2251–2256, 2829–2830, 3377, and 3771). Our roadmap for Net::LDAP 1.0 is to gain full client compliance with the most recent LDAP RFCs (4510–4519, plus portions of 4520–4532).

Where

Synopsis

See Net::LDAP on rubydoc.info for documentation and usage samples.

Requirements

Net::LDAP requires a Ruby 2.0.0 compatible interpreter or better.

Install

Net::LDAP is a pure Ruby library. It does not require any external libraries. You can install the RubyGems version of Net::LDAP available from the usual sources.

gem install net-ldap

Simply require either 'net-ldap' or 'net/ldap'.

Extensions

This library focuses on the core LDAP RFCs referenced in the description. However, we recognize there are commonly used extensions to the spec that are useful. If there is another library which handles it, we list it here.

  • resolv-srv: Support RFC2782 SRV record lookup and failover

Develop

This task will run the test suite and the RuboCop static code analyzer.

rake rubotest

CI takes too long? If your local box supports Docker, you can also run integration tests locally. Simply run:

script/ldap-docker
INTEGRATION=openldap rake test

Or, use Docker Compose. See docker-compose.yml for available Ruby versions.

docker-compose run ci-2.7

CAVEAT: you need to add the following line to /etc/hosts

127.0.0.1 ldap.example.org
127.0.0.1 cert.mismatch.example.org

Release

This section is for gem maintainers to cut a new version of the gem.

  • Check out a new branch `release-VERSION`

  • Update lib/net/ldap/version.rb to next version number X.X.X following semver.

  • Update `History.rdoc`. Get latest changes with `script/changelog`

  • Open a pull request with these changes for review

  • After merging, on the master branch, run `script/release`

:include: Contributors.rdoc

:include: License.rdoc

== License This software is available under the terms of the MIT license. Copyright 2006–2011 by Francis Cianfrocca and other contributors. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. === Notice of License Change Versions prior to 0.2 were under Ruby's dual license with the GNU GPL. With this release (0.2), Net::LDAP is now under the MIT license.

简介

暂无描述 展开 收起
README
MIT
取消

发行版

暂无发行版

贡献者

全部

语言

近期动态

加载更多
不能加载更多了
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mayun-team/ruby-net-ldap.git
git@gitee.com:mayun-team/ruby-net-ldap.git
mayun-team
ruby-net-ldap
ruby-net-ldap
master

搜索帮助