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.
- checksums.yaml +4 -4
- data/README.md +5 -5
- data/lib/soar_ldap/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f92adb7366c4f51c3a65a3b3ba255d56da24686a
|
4
|
+
data.tar.gz: 814d64bbe751e44ede0deff1bc20ae26bfadb0f5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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
|
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
|
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
|
|
data/lib/soar_ldap/version.rb
CHANGED