ruby-ldap 0.9.18 → 0.9.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -7
- data/ChangeLog +5 -0
- data/NOTES +6 -0
- data/TODO +0 -3
- data/extconf.rb +3 -4
- data/lib/ldap/ldif.rb +11 -12
- data/rbldap.h +2 -2
- data/test/add.rb +3 -2
- data/test/add2.rb +3 -2
- data/test/add3.rb +3 -2
- data/test/compare.rb +5 -3
- data/test/conf.rb +2 -0
- data/test/openldap_tests/progs/ldif-filter.c +256 -0
- data/test/openldap_tests/progs/slapd-addel.c +435 -0
- data/test/openldap_tests/progs/slapd-auth.c +335 -0
- data/test/openldap_tests/progs/slapd-bind.c +609 -0
- data/test/openldap_tests/progs/slapd-common.c +300 -0
- data/test/openldap_tests/progs/slapd-common.h +44 -0
- data/test/openldap_tests/progs/slapd-modify.c +318 -0
- data/test/openldap_tests/progs/slapd-modrdn.c +310 -0
- data/test/openldap_tests/progs/slapd-mtread.c +837 -0
- data/test/openldap_tests/progs/slapd-read.c +568 -0
- data/test/openldap_tests/progs/slapd-search.c +618 -0
- data/test/openldap_tests/progs/slapd-tester.c +1197 -0
- data/test/search.rb +6 -8
- metadata +51 -33
data/test/search.rb
CHANGED
@@ -5,18 +5,16 @@ $test = File.dirname($0)
|
|
5
5
|
require "#{$test}/conf"
|
6
6
|
require "./ldap"
|
7
7
|
|
8
|
-
LDAP::Conn.new($HOST, $PORT).bind
|
8
|
+
LDAP::Conn.new($HOST, $PORT).bind{|conn|
|
9
9
|
conn.perror("bind")
|
10
10
|
begin
|
11
|
-
conn.search(
|
12
|
-
|
13
|
-
|
14
|
-
"(objectclass=*)"
|
15
|
-
) do |e|
|
11
|
+
conn.search("dc=localhost, dc=localdomain",
|
12
|
+
LDAP::LDAP_SCOPE_SUBTREE,
|
13
|
+
"(objectclass=*)"){|e|
|
16
14
|
p e.vals("cn")
|
17
15
|
p e.to_hash()
|
18
|
-
|
16
|
+
}
|
19
17
|
rescue LDAP::ResultError => msg
|
20
18
|
$stderr.print(msg)
|
21
19
|
end
|
22
|
-
|
20
|
+
}
|
metadata
CHANGED
@@ -1,45 +1,38 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby-ldap
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.9.19
|
5
5
|
platform: ruby
|
6
|
-
authors:
|
6
|
+
authors:
|
7
7
|
- Alexey Chebotar
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
|
11
|
+
|
12
|
+
date: 2016-06-20 00:00:00 Z
|
12
13
|
dependencies: []
|
13
|
-
description: 'It provides the interface to some LDAP libraries (e.g. OpenLDAP, Netscape
|
14
|
-
SDK and Active Directory). The common API for application development is described
|
15
|
-
in RFC1823 and is supported by Ruby/LDAP.
|
16
14
|
|
17
|
-
|
15
|
+
description: |
|
16
|
+
It provides the interface to some LDAP libraries (e.g. OpenLDAP, Netscape SDK and Active Directory). The common API for application development is described in RFC1823 and is supported by Ruby/LDAP.
|
17
|
+
|
18
18
|
email: alexey.chebotar@gmail.com
|
19
19
|
executables: []
|
20
|
-
|
20
|
+
|
21
|
+
extensions:
|
21
22
|
- extconf.rb
|
22
23
|
extra_rdoc_files: []
|
23
|
-
|
24
|
-
|
24
|
+
|
25
|
+
files:
|
25
26
|
- ChangeLog
|
27
|
+
- COPYING
|
26
28
|
- FAQ
|
27
29
|
- NOTES
|
28
30
|
- README
|
29
31
|
- TODO
|
30
|
-
- clientauth.c
|
31
|
-
- conn.c
|
32
|
-
- entry.c
|
33
32
|
- extconf.rb
|
34
|
-
- ldap.c
|
35
33
|
- lib/ldap/control.rb
|
36
34
|
- lib/ldap/ldif.rb
|
37
35
|
- lib/ldap/schema.rb
|
38
|
-
- misc.c
|
39
|
-
- mod.c
|
40
|
-
- rbldap.h
|
41
|
-
- saslconn.c
|
42
|
-
- sslconn.c
|
43
36
|
- test/add.rb
|
44
37
|
- test/add2.rb
|
45
38
|
- test/add3.rb
|
@@ -65,30 +58,55 @@ files:
|
|
65
58
|
- test/tc_schema.rb
|
66
59
|
- test/tc_search.rb
|
67
60
|
- test/ts_ldap.rb
|
61
|
+
- rbldap.h
|
62
|
+
- test/openldap_tests/progs/slapd-common.h
|
68
63
|
- win/winlber.h
|
69
64
|
- win/winldap.h
|
65
|
+
- clientauth.c
|
66
|
+
- conn.c
|
67
|
+
- entry.c
|
68
|
+
- ldap.c
|
69
|
+
- misc.c
|
70
|
+
- mod.c
|
71
|
+
- saslconn.c
|
72
|
+
- sslconn.c
|
73
|
+
- test/openldap_tests/progs/ldif-filter.c
|
74
|
+
- test/openldap_tests/progs/slapd-addel.c
|
75
|
+
- test/openldap_tests/progs/slapd-auth.c
|
76
|
+
- test/openldap_tests/progs/slapd-bind.c
|
77
|
+
- test/openldap_tests/progs/slapd-common.c
|
78
|
+
- test/openldap_tests/progs/slapd-modify.c
|
79
|
+
- test/openldap_tests/progs/slapd-modrdn.c
|
80
|
+
- test/openldap_tests/progs/slapd-mtread.c
|
81
|
+
- test/openldap_tests/progs/slapd-read.c
|
82
|
+
- test/openldap_tests/progs/slapd-search.c
|
83
|
+
- test/openldap_tests/progs/slapd-tester.c
|
70
84
|
- win/wldap32.def
|
71
85
|
homepage: http://ruby-ldap.sourceforge.net/
|
72
86
|
licenses: []
|
87
|
+
|
73
88
|
metadata: {}
|
89
|
+
|
74
90
|
post_install_message:
|
75
91
|
rdoc_options: []
|
76
|
-
|
92
|
+
|
93
|
+
require_paths:
|
77
94
|
- lib
|
78
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
79
|
-
requirements:
|
80
|
-
-
|
81
|
-
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
version: '0'
|
95
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
96
|
+
requirements:
|
97
|
+
- &id001
|
98
|
+
- ">="
|
99
|
+
- !ruby/object:Gem::Version
|
100
|
+
version: "0"
|
101
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
102
|
+
requirements:
|
103
|
+
- *id001
|
88
104
|
requirements: []
|
105
|
+
|
89
106
|
rubyforge_project: ruby-ldap
|
90
|
-
rubygems_version: 2.
|
107
|
+
rubygems_version: 2.0.17
|
91
108
|
signing_key:
|
92
109
|
specification_version: 4
|
93
110
|
summary: Ruby/LDAP is an extension module for Ruby
|
94
111
|
test_files: []
|
112
|
+
|