soar_ldap 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +5 -5
  3. data/lib/soar_ldap/version.rb +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9aeab37faf22561ddb7bcf9cd8396c3b2ee77e06
4
- data.tar.gz: 6a4b2419b20f709a5bed4135359f5ea83ce33090
3
+ metadata.gz: f92adb7366c4f51c3a65a3b3ba255d56da24686a
4
+ data.tar.gz: 814d64bbe751e44ede0deff1bc20ae26bfadb0f5
5
5
  SHA512:
6
- metadata.gz: 29eca42f9801790ca53f6100125e1c102ccbf7a9821e437924a3b4ff6eb69086a1ffaa6045a5cb3688808d07c1d913960a5a8a6907358fbce296503345cbadd0
7
- data.tar.gz: 6b992d84ea125fd9b46c9bca4993a3675e07265fd5d7fc5bb9d19bae7fa024d214b26c844125641344ef0c53ebc8003af2f0493085d18a3f5b6dce3618a94b1a
6
+ metadata.gz: 1938f6af71b5e91fff7298170355f31d587721127f2828bcaca9bafbca2ce5188923f646456d01252aef80b2c722abb338ea4a2194aced9ef3fac8bf792adcd5
7
+ data.tar.gz: 50d74325c45b23f903a4cc9c6d96bdd7a12843ab32edb6002a6686375a59f78c243f8ccb30e7b75c97cd388fcb13e9534d43efd748b4d89708dba1d3a1aa4718
data/README.md CHANGED
@@ -2,11 +2,11 @@
2
2
 
3
3
  SoarLdap is a simplified LDAP client library allowing easy access to entries on LDAP servers, using LDAP protocol version 3, for use in the SOAR architecture. SoarLdap has an optional built-in cache, which reduces the requirement for connections to the LDAP server. Freshness of 0 disables the cache. Freshness is in seconds.
4
4
 
5
- SoarLdap adheres to the SoarIdm::DirectoryProvider specification for diretory providers.
5
+ SoarLdap adheres to the SoarIdm::DirectoryProvider specification for directory providers.
6
6
 
7
- The finder find_entity can be over-ridden to model specific search behaviour. By default, get_entity establishes a connection and calls find_entity, which searches the subtree for UUIDs matching the identifier specified, or for dn entries which include the identifier specifier. By default the finder includes the following fields: 'objectClass', 'cn', 'dn', 'entryuuid', 'description' and returns only the first entry found. You might want to override find_entity to return an array if you expect multiple results.
7
+ The finder find_entity can be over-ridden to model specific search behaviour. By default, get_entity establishes a connection and calls find_entity, which searches the subtree for UUIDs matching the identifier specified, or for dn entries which include the identifier specified. By default the finder includes the following fields: 'objectClass', 'cn', 'dn', 'entryuuid', 'description' and returns only the first entry found. You might want to override find_entity to return an array if you expect multiple results.
8
8
 
9
- SoarLdap will raise a SoarLdapError if it encounters unexpected or invalid configuration or state. get_entity returns an LDAP::Entry. connect returns LDAP::Conn.
9
+ SoarLdap will raise a SoarLdapError if it encounters unexpected or invalid configuration or state. get_entity returns an LDAP::Entry. connect returns an LDAP::Conn.
10
10
 
11
11
  ## Installation
12
12
 
@@ -31,12 +31,12 @@ Or install it yourself as:
31
31
  credentials = { 'username' => 'ldap-user', 'password' => 'ldap-password' }
32
32
  @soar_ldap = SoarLdap::LdapProvider.new(configuration)
33
33
  @soar_ldap.authenticate(credentials)
34
- puts "This LDAP Provider operated on #{@soar_ldap.uri}"
34
+ puts "This LDAP Provider operates on #{@soar_ldap.uri}"
35
35
  @soar_ldap.connect if @soar_ldap.bootstrapped?
36
36
  # returns LDAP::Conn
37
37
  puts "Connected? #{@soar_ldap.connected?}"
38
38
  ldap_entry = @soar_ldap.get_entity('findme') if @soar_ldap.ready?
39
- # LDAP::Entry
39
+ # By default returs LDAP::Entry or nil. You define this behaviour in find_entity.
40
40
 
41
41
  ## Contributing
42
42
 
@@ -1,3 +1,3 @@
1
1
  module SoarLdap
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: soar_ldap
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ernst van Graan