ruby-ldap 0.9.9
Sign up to get free protection for your applications and to get access to all the features.
- data/COPYING +24 -0
- data/ChangeLog +762 -0
- data/FAQ +62 -0
- data/NOTES +77 -0
- data/README +266 -0
- data/TODO +15 -0
- data/conn.c +1810 -0
- data/entry.c +215 -0
- data/extconf.rb +268 -0
- data/ldap.c +577 -0
- data/lib/ldap/control.rb +50 -0
- data/lib/ldap/ldif.rb +569 -0
- data/lib/ldap/schema.rb +129 -0
- data/misc.c +512 -0
- data/mod.c +355 -0
- data/rbldap.h +194 -0
- data/saslconn.c +176 -0
- data/sslconn.c +377 -0
- data/test/add.rb +31 -0
- data/test/add2.rb +31 -0
- data/test/add3.rb +33 -0
- data/test/bind-ldaps.rb +25 -0
- data/test/bind-sasl.rb +17 -0
- data/test/bind-ssl.rb +25 -0
- data/test/bind.rb +34 -0
- data/test/compare.rb +17 -0
- data/test/conf.rb +12 -0
- data/test/delete.rb +13 -0
- data/test/ext.rb +49 -0
- data/test/misc1.rb +49 -0
- data/test/misc2.rb +40 -0
- data/test/modrdn.rb +23 -0
- data/test/search.rb +20 -0
- data/test/search2.rb +34 -0
- data/test/search3.rb +23 -0
- data/test/setup.rb +38 -0
- data/test/subschema.rb +21 -0
- data/test/tc_conn.rb +124 -0
- data/test/tc_ldif.rb +174 -0
- data/test/tc_schema.rb +32 -0
- data/test/tc_search.rb +137 -0
- data/test/ts_ldap.rb +8 -0
- data/win/winlber.h +21 -0
- data/win/winldap.h +324 -0
- metadata +100 -0
data/COPYING
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
Copyright (c) 2000-2003 Takaaki Tateishi <ttate@users.sourceforge.jp>
|
2
|
+
All rights reserved.
|
3
|
+
|
4
|
+
Redistribution and use in source and binary forms, with or without
|
5
|
+
modification, are permitted provided that the following conditions
|
6
|
+
are met:
|
7
|
+
1. Redistributions of source code must retain the above copyright
|
8
|
+
notice, this list of conditions and the following disclaimer.
|
9
|
+
2. Redistributions in binary form must reproduce the above copyright
|
10
|
+
notice, this list of conditions and the following disclaimer in the
|
11
|
+
documentation and/or other materials provided with the distribution.
|
12
|
+
3. The name of the author may not be used to endorse or promote products
|
13
|
+
derived from this software without specific prior written permission.
|
14
|
+
|
15
|
+
THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
|
16
|
+
IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
17
|
+
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
18
|
+
IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
|
19
|
+
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
20
|
+
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
21
|
+
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
22
|
+
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
23
|
+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
24
|
+
THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
data/ChangeLog
ADDED
@@ -0,0 +1,762 @@
|
|
1
|
+
Thu Jun 11 06:51:30 UTC 2009 Alexey Chebotar <alexey.chebotar@gmail.com>
|
2
|
+
* Version 0.9.9
|
3
|
+
* Fixed LDAP::VERSION. Thanks to Kouhei Sutou
|
4
|
+
* Gem Packaging Support. Thanks to S. Potter [mbbx6spp]
|
5
|
+
|
6
|
+
Tue Apr 21 14:46:38 UTC 2009 Alexey Chebotar <alexey.chebotar@gmail.com>
|
7
|
+
* LDAP_OPT_X_TLS_PROTOCOL changed to LDAP_OPT_X_TLS_PROTOCOL_MIN
|
8
|
+
(more information in ITS#5655). Thanks to Milos Jakubicek.
|
9
|
+
|
10
|
+
Wed Apr 15 11:38:06 UTC 2009 Alexey Chebotar <alexey.chebotar@gmail.com>
|
11
|
+
* Fixed regular expression in LDAP::Schema.attr()
|
12
|
+
|
13
|
+
Thu Mar 25 08:45:02 UTC 2009 Alexey Chebotar <alexey.chebotar@gmail.com>
|
14
|
+
* Version 0.9.8.
|
15
|
+
|
16
|
+
Thu Mar 19 15:22:50 UTC 2009 Alexey Chebotar <alexey.chebotar@gmail.com>
|
17
|
+
* Supported Ruby 1.9.x.
|
18
|
+
|
19
|
+
Wed Aug 9 11:23:04 UTC 2006 Ian Macdonald <ian@caliban.org>
|
20
|
+
* Version 0.9.7.
|
21
|
+
|
22
|
+
Tue Aug 8 14:36:15 UTC 2006 Ian Macdonald <ian@caliban.org>
|
23
|
+
* win/winldap.h: LDAP_MOD_DELETE and LDAP_MOD_REPLACE had their values
|
24
|
+
transposed. Thanks to Adam Doligalski <adam@doligalski.com>.
|
25
|
+
|
26
|
+
Tue Aug 1 00:12:33 UTC 2006 Ian Macdonald <ian@caliban.org>
|
27
|
+
* Version 0.9.6.
|
28
|
+
|
29
|
+
Tue Aug 1 00:07:53 UTC 2006 Ian Macdonald <ian@caliban.org>
|
30
|
+
* conn.c: Minor documentation clarifications.
|
31
|
+
|
32
|
+
Mon Jul 31 00:38:03 UTC 2006 Ian Macdonald <ian@caliban.org>
|
33
|
+
* conn.c: Make clear in documentation that LDAP::Conn#search2 and
|
34
|
+
LDAP::Conn#search_ext2 pass each entry into the block as a hash.
|
35
|
+
|
36
|
+
Mon Jul 3 22:54:52 UTC 2006 Ian Macdonald <ian@caliban.org>
|
37
|
+
* misc.c (Init_ldap_misc): A segmentation fault occurs in ldap.so on
|
38
|
+
FreeBSD when running on AMD64. Change last parameter in
|
39
|
+
rb_struct_define() to be NULL, not 0. Thanks to Mark Kittisopikul
|
40
|
+
<markkitt@uchicago.edu> and Jan Mikkelsen <janm@transactionware.com>.
|
41
|
+
|
42
|
+
Thu Apr 20 16:47:00 UTC 2006 Ian Macdonald <ian@caliban.org>
|
43
|
+
* Version 0.9.5.
|
44
|
+
|
45
|
+
Thu Apr 20 16:39:46 UTC 2006 Ian Macdonald <ian@caliban.org>
|
46
|
+
* conn.c (rb_ldap_conn_compare_ext_s): The call to ldap_compare_ext_s()
|
47
|
+
requires an extra argument on Windows platforms.
|
48
|
+
|
49
|
+
Thu Apr 20 16:34:21 UTC 2006 Ian Macdonald <ian@caliban.org>
|
50
|
+
* win/winldap.h: Change prototype for ldap_compare_ext_s() to include
|
51
|
+
extra parameter expected on Windows platforms.
|
52
|
+
|
53
|
+
Wed Apr 19 22:13:26 UTC 2006 Ian Macdonald <ian@caliban.org>
|
54
|
+
* sslconn.c (rb_ldap_sslconn_bind_f): Fix function definition to
|
55
|
+
silence compiler warning.
|
56
|
+
|
57
|
+
Tue Apr 18 23:40:24 UTC 2006 Ian Macdonald <ian@caliban.org>
|
58
|
+
* sslconn.c (rb_ldap_sslconn_bind_f): Function definition was missing
|
59
|
+
an argument.
|
60
|
+
* sslconn.c (rb_ldap_sslconn_bind_s): Erroneously called
|
61
|
+
rb_ldap_sslconn_bind_func() instead of rb_ldap_sslconn_bind_f().
|
62
|
+
* sslconn.c (rb_ldap_sslconn_simple_bind_s): Erroneously called
|
63
|
+
rb_ldap_sslconn_bind_func() instead of rb_ldap_sslconn_bind_f().
|
64
|
+
|
65
|
+
Tue Mar 7 23:49:57 UTC 2006 Ian Macdonald <ian@caliban.org>
|
66
|
+
* Version 0.9.4.
|
67
|
+
|
68
|
+
Tue Mar 7 21:03:01 UTC 2006 Ian Macdonald <ian@caliban.org>
|
69
|
+
* conn.c (rb_ldap_conn_search_ext_s): Modify LDAP::Conn#search_ext to
|
70
|
+
treat a return value of LDAP_SIZELIMIT_EXCEEDED from
|
71
|
+
rb_ldap_conn_search_ext_i() as success.
|
72
|
+
* conn.c (rb_ldap_conn_search_ext2_s): Ditto for
|
73
|
+
LDAP::Conn#search_ext2.
|
74
|
+
|
75
|
+
Mon Mar 6 01:33:10 UTC 2006 Ian Macdonald <ian@caliban.org>
|
76
|
+
* sslconn.c (rb_ldap_sslconn_bind_f): New function containing
|
77
|
+
identical code from rb_ldap_sslconn_bind_s() and
|
78
|
+
rb_ldap_sslconn_simple_bind_s(). The new function takes a function
|
79
|
+
pointer as its last parameter, to decide whether to call
|
80
|
+
rb_ldap_conn_bind_s() or rb_ldap_conn_simple_bind_s(), as previously
|
81
|
+
called by rb_ldap_sslconn_bind_s() and
|
82
|
+
rb_ldap_sslconn_simple_bind_s(), respectively.
|
83
|
+
* sslconn.c (rb_ldap_sslconn_bind_s): Code moved to
|
84
|
+
rb_ldap_sslconn_bind_f().
|
85
|
+
* sslconn.c (rb_ldap_sslconn_simple_bind_s): Code moved to
|
86
|
+
rb_ldap_sslconn_bind_f().
|
87
|
+
|
88
|
+
Mon Mar 6 00:28:38 UTC 2006 Ian Macdonald <ian@caliban.org>
|
89
|
+
* conn.c (rb_ldap_conn_search_i): Give a clearer exception message
|
90
|
+
when a call to either ldap_search_s(3) or ldap_search_st(3) returns
|
91
|
+
no pointer to a result.
|
92
|
+
|
93
|
+
Thu Mar 2 12:12:58 UTC 2006 Ian Macdonald <ian@caliban.org>
|
94
|
+
* conn.c (rb_ldap_conn_search_s): Modify LDAP::Conn#search to treat a
|
95
|
+
return value of LDAP_SIZELIMIT_EXCEEDED from rb_ldap_conn_search_i()
|
96
|
+
as success.
|
97
|
+
* conn.c (rb_ldap_conn_search2_s): Ditto for LDAP::Conn#search2.
|
98
|
+
* rbldap.h: Check_LDAP_Result macro modifed to treat
|
99
|
+
LDAP_SIZELIMIT_EXCEEDED as success.
|
100
|
+
|
101
|
+
Thu Mar 2 11:54:22 UTC 2006 Ian Macdonald <ian@caliban.org>
|
102
|
+
* conn.c: RDoc documentation was missing for LDAP::Conn#err.
|
103
|
+
|
104
|
+
Sat Feb 18 09:37:14 UTC 2006 Ian Macdonald <ian@caliban.org>
|
105
|
+
* Version 0.9.3
|
106
|
+
|
107
|
+
Thu Feb 16 01:15:59 UTC 2006 Ian Macdonald <ian@caliban.org>
|
108
|
+
* extconf.rb: Build with -DLDAP_DEPRECATED to enable functions no
|
109
|
+
longer automatically defined by ldap.h in OpenLDAP 2.3.
|
110
|
+
|
111
|
+
Mon Feb 13 17:20:32 UTC 2006 Ian Macdonald <ian@caliban.org>
|
112
|
+
* conn.c (rb_ldap_conn_bind_s): Use RB_LDAP_DATA instead of struct
|
113
|
+
rb_ldap_data.
|
114
|
+
* conn.c (rb_ldap_conn_simple_bind_s): Ditto.
|
115
|
+
* conn.c (rb_ldap_conn_bound): Ditto.
|
116
|
+
* saslconn.c (rb_ldap_conn_sasl_bind): Ditto.
|
117
|
+
|
118
|
+
Mon Feb 13 17:10:08 UTC 2006 Ian Macdonald <ian@caliban.org>
|
119
|
+
* sslconn.c (rb_ldap_sslconn_bind_s): In LDAP::SSLConn#bind, ldapdata
|
120
|
+
was used uninitialised.
|
121
|
+
* sslconn.c (rb_ldap_sslconn_simple_bind_s): Ditto for
|
122
|
+
LDAP::SSLConn#simple_bind.
|
123
|
+
|
124
|
+
Sun Feb 12 20:33:28 UTC 2006 Ian Macdonald <ian@caliban.org>
|
125
|
+
* conn.c (rb_ldap_conn_s_allocate): Silence a warning about
|
126
|
+
@sasl_quiet when run in debug mode.
|
127
|
+
|
128
|
+
Sun Feb 12 17:28:14 UTC 2006 Ian Macdonald <ian@caliban.org>
|
129
|
+
* extconf.rb: Common directory scheme of mkmf.rb is now used. As a
|
130
|
+
side-effect, --with-ldap-incdir has been replaced by
|
131
|
+
--with-ldap-include and --with-ldap-libdir has been replaced by
|
132
|
+
--with-ldap-lib. Thanks to Usa Nakamura <usa@garbagecollect.jp>.
|
133
|
+
* extconf.rb: Display text was improved and grammatical errors were
|
134
|
+
corrected.
|
135
|
+
|
136
|
+
Sun Feb 12 17:08:17 UTC 2006 Ian Macdonald <ian@caliban.org>
|
137
|
+
* conn.c: Make inclusion of sys/time.h and unistd.h conditional on
|
138
|
+
macro defines. Thanks to Usa Nakamura <usa@garbagecollect.jp>.
|
139
|
+
* saslconn.c: Ditto.
|
140
|
+
* sslconn.c: Ditto.
|
141
|
+
|
142
|
+
Sun Feb 12 16:59:06 UTC 2006 Ian Macdonald <ian@caliban.org>
|
143
|
+
* win/winldap.h: Fix up various structs for Windows. Thanks to Usa
|
144
|
+
Nakamura <usa@garbagecollect.jp> for the patch.
|
145
|
+
|
146
|
+
Thu Feb 8 23:15:17 UTC 2006 Ian Macdonald <ian@caliban.org>
|
147
|
+
* lib/ldap/schema.rb: Allow LDAP::Schema#attr to find attribute names
|
148
|
+
that contain hyphens and/or underscores.
|
149
|
+
* lib/ldap/schema.rb: Fix LDAP::Schema#names to not allow all manner
|
150
|
+
of extra characters in names. That was introduced by the last change.
|
151
|
+
|
152
|
+
Thu Feb 8 22:59:07 UTC 2006 Ian Macdonald <ian@caliban.org>
|
153
|
+
* lib/ldap/schema.rb: Relax parsing in LDAP::Schema#names to allow
|
154
|
+
names with hyphens and/or underscores. This is apparently an issue
|
155
|
+
with the Sun LDAP server. Thanks to Tilo Sloboda <tilo@unixgods.org>
|
156
|
+
for pointing out the issue.
|
157
|
+
|
158
|
+
Tue Jul 5 19:14:38 UTC 2005 Ian Macdonald <ian@caliban.org>
|
159
|
+
* Version 0.9.2
|
160
|
+
* conn.c (rb_ldap_conn_perror): str was not declared, but is needed
|
161
|
+
depending on certain #define macros.
|
162
|
+
|
163
|
+
Tue Mar 23 10:04:19 UTC 2005 Ian Macdonald <ian@caliban.org>
|
164
|
+
* conn.c (rb_ldap_conn_search_i): Allow attrs to be a string, in which
|
165
|
+
case the parameter is treated as a single-element array. This
|
166
|
+
affects Conn#search and Conn#search2.
|
167
|
+
* conn.c (rb_ldap_conn_search_ext_i): Ditto for Conn#search_ext and
|
168
|
+
Conn#search_ext2.
|
169
|
+
|
170
|
+
Tue Mar 15 10:47:38 UTC 2005 Ian Macdonald <ian@caliban.org>
|
171
|
+
* Version 0.9.1
|
172
|
+
|
173
|
+
Tue Mar 15 10:18:46 UTC 2005 Ian Macdonald <ian@caliban.org>
|
174
|
+
* ldap.c: Removed unused variables to silence gcc warnings.
|
175
|
+
* misc.c: Ditto.
|
176
|
+
* entry.c: Ditto.
|
177
|
+
* conn.c: Ditto.
|
178
|
+
* saslconn.c: Ditto.
|
179
|
+
|
180
|
+
Mon Mar 14 23:52:58 UTC 2005 Ian Macdonald <ian@caliban.org>
|
181
|
+
* conn.c (rb_ldap_conn_rebind): New function, which is called when
|
182
|
+
an unbound connection needs to be rebound. It will then call
|
183
|
+
rb_ldap_conn_initialize() for a Conn object or
|
184
|
+
rb_ldap_sslconn_initialize() for an SSLConn object, passing in the
|
185
|
+
original arguments.
|
186
|
+
* conn.c (rb_ldap_conn_bind_s): In LDAP::Conn#bind, allow
|
187
|
+
rb_ldap_conn_rebind() to rebind a connection that has been unbound.
|
188
|
+
* conn.c (rb_ldap_conn_simple_bind_s): Ditto for
|
189
|
+
LDAP::Conn#simple_bind.
|
190
|
+
* saslconn.c (rb_ldap_conn_sasl_bind): Ditto for LDAP::Conn#sasl_bind.
|
191
|
+
* sslconn.c (rb_ldap_sslconn_bind_s): Ditto for LDAP::SSLConn#bind.
|
192
|
+
* sslconn.c (rb_ldap_sslconn_simple_bind_s): Ditto for
|
193
|
+
LDAP::SSLConn#simple_bind.
|
194
|
+
* conn.c (rb_ldap_conn_initialize): Track original parameters to
|
195
|
+
Conn.new in @args, not @host and @port.
|
196
|
+
* sslconn.c (rb_ldap_sslconn_initialize): Ditto for SSLConn.new.
|
197
|
+
|
198
|
+
Sun Mar 13 11:08:00 UTC 2005 Ian Macdonald <ian@caliban.org>
|
199
|
+
* sslconn.c (rb_openldap_sslconn_initialize): Remove tracking of
|
200
|
+
host and port in @host and @port.
|
201
|
+
* sslconn.c (rb_nssldap_sslconn_initialize): Ditto.
|
202
|
+
* sslconn.c (rb_wldap32_sslconn_initialize): Ditto.
|
203
|
+
* sslconn.c (rb_ldap_sslconn_bind_s): Revert usage of @host and @port
|
204
|
+
to rebind an unbound connection in LDAP::SSLConn#bind.
|
205
|
+
* sslconn.c (rb_ldap_sslconn_simple_bind_s): Ditto for
|
206
|
+
LDAP::SSLConn#simple_bind.
|
207
|
+
|
208
|
+
Sun Mar 13 10:54:34 UTC 2005 Ian Macdonald <ian@caliban.org>
|
209
|
+
* conn.c (rb_ldap_conn_bind_s): In LDAP::Conn#bind, disallow rebinding
|
210
|
+
of connections if they're SSL connections (as SSLConn calls this
|
211
|
+
method in the parent class, Conn), since we don't store the required
|
212
|
+
information about them and we can't allow them to rebind as non-SSL
|
213
|
+
connections.
|
214
|
+
* conn.c (rb_ldap_conn_simple_bind_s): Ditto for
|
215
|
+
LDAP::Conn#simple_bind.
|
216
|
+
* saslconn.c (rb_ldap_conn_sasl_bind): Ditto for LDAP::Conn#sasl_bind.
|
217
|
+
|
218
|
+
Sun Mar 13 09:40:28 UTC 2005 Ian Macdonald <ian@caliban.org>
|
219
|
+
* sslconn.c (rb_ldap_sslconn_s_open): SSLConn#open would call the
|
220
|
+
method in the superclass, Conn#open. If this was passed two
|
221
|
+
parameters, the method appeared to succeed, but did not use SSL.
|
222
|
+
Calling this method now returns NotImplementedError via the new
|
223
|
+
function, rb_ldap_sslconn_s_open().
|
224
|
+
|
225
|
+
Sun Mar 13 08:35:15 UTC 2005 Ian Macdonald <ian@caliban.org>
|
226
|
+
* sslconn.c (rb_openldap_sslconn_initialize): In LDAP::SSLConn.new,
|
227
|
+
set @host and @port to the host and port of the server to which we
|
228
|
+
are connecting.
|
229
|
+
* sslconn.c (rb_nssldap_sslconn_initialize): Ditto.
|
230
|
+
* sslconn.c (rb_wldap32_sslconn_initialize): Ditto.
|
231
|
+
* sslconn.c (rb_ldap_sslconn_bind_s): The version of LDAP::SSLConn#bind
|
232
|
+
used by WLDAP32 now uses @host and @port to reestablish a connection
|
233
|
+
at bind time if the SSLConn object was previously bound.
|
234
|
+
* sslconn.c (rb_ldap_sslconn_simple_bind_s): Ditto for
|
235
|
+
LDAP::SSLConn#simple_bind.
|
236
|
+
|
237
|
+
Sat Mar 12 11:32:20 UTC 2005 Ian Macdonald <ian@caliban.org>
|
238
|
+
* saslconn.c (rb_ldap_conn_sasl_bind): In LDAP::Conn#sasl_bind, detect
|
239
|
+
attempts to bind more than once.
|
240
|
+
* saslconn.c (rb_ldap_conn_sasl_bind): In LDAP::Conn#sasl_bind, if we
|
241
|
+
have an invalid LDAP data structure in self, we check to see whether
|
242
|
+
both @host and @port are set. If they are, we transparently call
|
243
|
+
rb_ldap_conn_initialize() to revalidate self's LDAP data structure.
|
244
|
+
This enables us to rebind after an unbind operation has destroyed
|
245
|
+
the original LDAP data structure of the LDAP::Conn object.
|
246
|
+
|
247
|
+
Sat Mar 12 11:27:48 UTC 2005 Ian Macdonald <ian@caliban.org>
|
248
|
+
* conn.c (rb_ldap_conn_initialize): In LDAP::Conn.new, only set
|
249
|
+
@sasl_quiet to false if it is not already true, as we may be getting
|
250
|
+
called from LDAP::Conn#sasl_bind if we are rebinding an unbound
|
251
|
+
connection. If so and @sasl_quiet had previously been set to true,
|
252
|
+
we want to keep it that way.
|
253
|
+
|
254
|
+
Sat Mar 12 10:54:41 UTC 2005 Ian Macdonald <ian@caliban.org>
|
255
|
+
* saslconn.c (rb_ldap_conn_sasl_bind): In LDAP::Conn#sasl_bind,
|
256
|
+
automatically set the LDAP protocol to v3 if it is not already so.
|
257
|
+
|
258
|
+
Sat Mar 12 09:33:24 UTC 2005 Ian Macdonald <ian@caliban.org>
|
259
|
+
* conn.c (rb_ldap_conn_bound): LDAP::Conn#bound? was throwing an
|
260
|
+
exception when invoked on a Conn object on which an explicit #unbind
|
261
|
+
had been performed.
|
262
|
+
|
263
|
+
Sat Mar 12 08:48:56 UTC 2005 Ian Macdonald <ian@caliban.org>
|
264
|
+
* conn.c (rb_ldap_conn_simple_bind_s): In LDAP::Conn#simple_bind, if
|
265
|
+
we have an invalid LDAP data structure in self, we check to see
|
266
|
+
whether both @host and @port are set. If they are, we transparently
|
267
|
+
call rb_ldap_conn_initialize() to revalidate self's LDAP data
|
268
|
+
structure. This enables us to rebind after an unbind operation has
|
269
|
+
destroyed the original LDAP data structure of the LDAP::Conn object.
|
270
|
+
|
271
|
+
Sat Mar 12 08:40:21 UTC 2005 Ian Macdonald <ian@caliban.org>
|
272
|
+
* conn.c (rb_ldap_conn_initialize): In LDAP::Conn.new, set @host and
|
273
|
+
@port to the host and port of the server to which we are connecting.
|
274
|
+
* conn.c (rb_ldap_conn_bind_s): In LDAP::Conn#bind, if we have an
|
275
|
+
invalid LDAP data structure in self, we check to see whether both
|
276
|
+
@host and @port are set. If they are, we transparently call
|
277
|
+
rb_ldap_conn_initialize() to revalidate self's LDAP data structure.
|
278
|
+
This enables us to rebind after an unbind operation has destroyed
|
279
|
+
the original LDAP data structure of the LDAP::Conn object.
|
280
|
+
|
281
|
+
Fri Mar 11 23:58:27 UTC 2005 Ian Macdonald <ian@caliban.org>
|
282
|
+
* conn.c (rb_ldap_conn_compare_s): Conn#compare should return true or
|
283
|
+
false, not self. In fact, self was never returned, anyway, because
|
284
|
+
an LDAP::ResultError was thrown. This is because ldap_compare_s()
|
285
|
+
and ldap_compare_ext_s() return an error, not 0 or 1.
|
286
|
+
* conn.c (rb_ldap_conn_compare_ext_s): Ditto for Conn#compare_ext,
|
287
|
+
because ldap_compare_ext_s() works the same way.
|
288
|
+
|
289
|
+
Tue Mar 8 10:15:37 UTC 2005 Ian Macdonald <ian@caliban.org>
|
290
|
+
* entry.c: Make LDAP::Entry#[] an alias of LDAP::Entry#get_values.
|
291
|
+
|
292
|
+
Tue Mar 8 09:44:50 UTC 2005 Ian Macdonald <ian@caliban.org>
|
293
|
+
* conn.c (rb_ldap_conn_search_i): Allow attrs to be nil, which is
|
294
|
+
treated as an empty array. This affects Conn#search and Conn#search2.
|
295
|
+
* conn.c (rb_ldap_conn_search_ext_i): Ditto for Conn#search_ext and
|
296
|
+
Conn#search_ext2.
|
297
|
+
|
298
|
+
Tue Mar 8 00:46:46 UTC 2005 Ian Macdonald <ian@caliban.org>
|
299
|
+
* conn.c (rb_ldap_conn_search_i): attrs should be type-checked to
|
300
|
+
ensure it is an array. This affects Conn#search and Conn#search2.
|
301
|
+
* conn.c (rb_ldap_conn_search_ext_i): Ditto for Conn#search_ext and
|
302
|
+
Conn#search_ext2.
|
303
|
+
* conn.c (rb_ldap_conn_search_ext_i): Check to see whether attrs is an
|
304
|
+
empty array before allocating space.
|
305
|
+
|
306
|
+
Thu Mar 3 00:26:44 UTC 2005 Ian Macdonald <ian@caliban.org>
|
307
|
+
* Version 0.9.0
|
308
|
+
|
309
|
+
Tue Mar 1 08:14:25 UTC 2005 Ian Macdonald <ian@caliban.org>
|
310
|
+
* lib/ldap/ldif.rb: Ensure that LDIF.parse_entry always creates on
|
311
|
+
an array of lines, not a string, as this is probably faster.
|
312
|
+
|
313
|
+
Tue Mar 1 02:16:28 UTC 2005 Ian Macdonald <ian@caliban.org>
|
314
|
+
* lib/ldap/schema.rb: Extend the list of attributes that
|
315
|
+
LDAP::Conn#root_dse returns by default. We now include
|
316
|
+
monitorContext and supportedFeatures, as returned by OpenLDAP 2.2.
|
317
|
+
|
318
|
+
Tue Mar 1 01:20:40 UTC 2005 Ian Macdonald <ian@caliban.org>
|
319
|
+
* lib/ldap/schema.rb: RDoc documentation added for LDAP::Schema, plus
|
320
|
+
LDAP::Conn#schema and LDAP::Conn#root_dse.
|
321
|
+
|
322
|
+
Mon Feb 28 10:41:35 UTC 2005 Ian Macdonald <ian@caliban.org>
|
323
|
+
* ldap.c: RDoc documentation added for LDAP module functions.
|
324
|
+
|
325
|
+
Mon Feb 28 09:51:22 UTC 2005 Ian Macdonald <ian@caliban.org>
|
326
|
+
* misc.c: RDoc documentation added for LDAP::Control.
|
327
|
+
|
328
|
+
Mon Feb 28 09:07:42 UTC 2005 Ian Macdonald <ian@caliban.org>
|
329
|
+
* mod.c: RDoc documentation added for LDAP::Mod.
|
330
|
+
|
331
|
+
Mon Feb 28 07:50:52 UTC 2005 Ian Macdonald <ian@caliban.org>
|
332
|
+
* entry.c: RDoc documentation added for LDAP::Entry.
|
333
|
+
|
334
|
+
Mon Feb 28 04:11:43 UTC 2005 Ian Macdonald <ian@caliban.org>
|
335
|
+
* saslconn.c (rb_ldap_conn_sasl_bind): Return nil, not self, if a
|
336
|
+
block is passed to LDAP::Conn#sasl_bind.
|
337
|
+
* saslconn.c: RDoc documentation added for LDAP::Conn#sasl_bind.
|
338
|
+
|
339
|
+
Mon Feb 28 03:34:01 UTC 2005 Ian Macdonald <ian@caliban.org>
|
340
|
+
* sslconn.c: RDoc documentation added for LDAP::SSLConn.
|
341
|
+
|
342
|
+
Fri Feb 26 01:47:14 UTC 2005 Ian Macdonald <ian@caliban.org>
|
343
|
+
* lib/ldap/ldif.rb: Add LDIF.mods_to_ldif, which will take a DN and
|
344
|
+
either an LDAP::Mod or an array of LDAP::Mod objects.
|
345
|
+
* lib/ldap/ldif.rb: Rewrite Mod#to_ldif to produce more useful output
|
346
|
+
for a single mod.
|
347
|
+
|
348
|
+
Fri Feb 25 10:49:42 UTC 2005 Ian Macdonald <ian@caliban.org>
|
349
|
+
* conn.c (rb_ldap_conn_modify_s): If passing in a hash,
|
350
|
+
LDAP_MOD_BVALUES should be set, just in case there are mods
|
351
|
+
containing binary values. This affects LDAP::Conn#modify.
|
352
|
+
* conn.c (rb_ldap_conn_modify_ext_s): Ditto for LDAP::Conn#modify_ext.
|
353
|
+
|
354
|
+
Fri Feb 25 06:51:35 UTC 2005 Ian Macdonald <ian@caliban.org>
|
355
|
+
* lib/ldap/ldif.rb: Privatise some classes and make LDIFError inherit
|
356
|
+
from LDAP::Error instead of StandardError.
|
357
|
+
|
358
|
+
Thu Feb 24 22:09:29 UTC 2005 Ian Macdonald <ian@caliban.org>
|
359
|
+
* lib/ldap/ldif.rb: Mask out LDAP_MOD_BVALUES when determining change
|
360
|
+
type in LDAP::Mod#to_ldif.
|
361
|
+
|
362
|
+
Fri Feb 25 10:34:34 UTC 2005 Ian Macdonald <ian@caliban.org>
|
363
|
+
* conn.c: RDoc documentation added for LDAP::Conn.
|
364
|
+
|
365
|
+
Thu Feb 24 03:24:10 UTC 2005 Ian Macdonald <ian@caliban.org>
|
366
|
+
* lib/ldap/ldif.rb: LDIF.to_ldif now private.
|
367
|
+
|
368
|
+
Thu Feb 24 00:45:45 UTC 2005 Ian Macdonald <ian@caliban.org>
|
369
|
+
* lib/ldap/ldif.rb: LDAP::Record#send now returns self.
|
370
|
+
|
371
|
+
Wed Feb 23 23:54:50 UTC 2005 Ian Macdonald <ian@caliban.org>
|
372
|
+
* lib/ldap/ldif.rb: Completely rewritten and now functional.
|
373
|
+
|
374
|
+
Tue Feb 22 02:36:16 UTC 2005 Ian Macdonald <ian@caliban.org>
|
375
|
+
* conn.c (rb_ldap_conn_add_s): If passing in a hash, LDAP_MOD_BVALUES
|
376
|
+
should be set, just in case there are attributes containing binary
|
377
|
+
values. This affects LDAP::Conn#add.
|
378
|
+
* conn.c (rb_ldap_conn_add_ext_s): Ditto for LDAP::Conn#add_ext.
|
379
|
+
|
380
|
+
Sat Feb 19 17:13:49 UTC 2005 Ian Macdonald <ian@caliban.org>
|
381
|
+
* conn.c (Init_ldap_conn): No longer automatically load ldap/control,
|
382
|
+
as Ruby versions before 1.8.2 are missing OpenSSL::ASN1::decode.
|
383
|
+
|
384
|
+
Thu Feb 15 21:40:58 UTC 2005 Ian Macdonald <ian@caliban.org>
|
385
|
+
* mod.c (rb_ldap_mod_inspect): LDAP::Mod#inspect did not do the right
|
386
|
+
thing when LDAP_MOD_BVALUES was set.
|
387
|
+
|
388
|
+
Thu Feb 8 01:22:28 UTC 2005 Ian Macdonald <ian@caliban.org>
|
389
|
+
* Updates to various documentation files.
|
390
|
+
* Version 0.8.4.
|
391
|
+
|
392
|
+
Thu Feb 3 10:24:36 UTC 2005 Ian Macdonald <ian@caliban.org>
|
393
|
+
* mod.c (rb_ldap_mod_inspect): Simplify LDAP::Mod#inspect by
|
394
|
+
converting Mod to a hash and then calling Hash#inspect on that.
|
395
|
+
|
396
|
+
Thu Feb 3 10:09:00 UTC 2005 Ian Macdonald <ian@caliban.org>
|
397
|
+
* entry.c (rb_ldap_entry_inspect): LDAP::Entry#inspect now displays
|
398
|
+
something useful, thanks to this new function.
|
399
|
+
|
400
|
+
Thu Feb 3 01:49:03 UTC 2005 Ian Macdonald <ian@caliban.org>
|
401
|
+
* mod.c (rb_ldap_mod_inspect): LDAP::Mod#inspect did not properly
|
402
|
+
display multi-value attributes.
|
403
|
+
|
404
|
+
Thu Feb 3 01:04:59 UTC 2005 Ian Macdonald <ian@caliban.org>
|
405
|
+
* mod.c (rb_ldap_mod_inspect): New method to implement custom
|
406
|
+
LDAP::Mod#inspect.
|
407
|
+
|
408
|
+
Thu Feb 2 21:44:10 UTC 2005 Ian Macdonald <ian@caliban.org>
|
409
|
+
* lib/ldap/control.rb: - Added LDAP::Control::encode and
|
410
|
+
LDAP::Control#decode for dealing with controls.
|
411
|
+
|
412
|
+
Tue Feb 1 01:29:38 UTC 2005 Ian Macdonald <ian@caliban.org>
|
413
|
+
* conn.c: Fixed grammar in a couple of exception messages.
|
414
|
+
* rbldap.h: Ditto.
|
415
|
+
|
416
|
+
Mon Jan 31 23:37:41 UTC 2005 Ian Macdonald <ian@caliban.org>
|
417
|
+
* conn.c (rb_ldap_conn_bound): Implement LDAP::Conn#bound? to check
|
418
|
+
whether connection is still bound.
|
419
|
+
* conn.c (rb_ldap_conn_set_option): Raise exception if an attempt is
|
420
|
+
made to set protocol version after bind.
|
421
|
+
|
422
|
+
Fri Dec 17 12:29:52 UTC 2004 Takaaki Tateishi <ttate@users.sourceforge.net>
|
423
|
+
* saslconn.c (rb_ldap_conn_sasl_bind): Merge Ian Macdonald's patch to
|
424
|
+
add sasl_quiet attribute to LDAP::Conn objects. It's false by
|
425
|
+
default, but will silence messages when set to true. This is useful
|
426
|
+
for silencing OpenLDAP SASL messages.
|
427
|
+
* conn.c (rb_ldap_conn_initialize): Initialise @sasl_quiet to false.
|
428
|
+
* sslconn.c (rb_openldap_sslconn_initialize): Ditto.
|
429
|
+
|
430
|
+
Sun Nov 14 14:31:37 UTC 2004 Takaaki Tateishi <ttate@users.sourceforge.net>
|
431
|
+
* Merge Ian Macdonald's patch to add session-level LDAP controls.
|
432
|
+
LDAP::Conn objects now have two new attributes, @referrals and
|
433
|
+
@controls, which will be used when the server needs to pass controls
|
434
|
+
at the session level. Both LDAP::Conn#search and LDAP::Conn#search2
|
435
|
+
are capable of reading and setting these controls.
|
436
|
+
|
437
|
+
Sat Oct 9 09:36:20 UTC 2004 Takaaki Tateishi <ttate@users.sourceforge.net>
|
438
|
+
* version 0.8.3
|
439
|
+
|
440
|
+
Mon Feb 16 10:37:11 UTC 2004 Takaaki Tateishi <ttate@users.sourseforge.net>
|
441
|
+
* conn.c: The singleton method Conn.set/get_option() is added.
|
442
|
+
(Thanks Y.Gotou)
|
443
|
+
|
444
|
+
Tue Dec 23 09:08:50 UTC 2003 Takaaki Tateishi <ttate@users.sourseforge.net>
|
445
|
+
* saslconn.c: Merged Ian's patch to allow SASL GSSAPI.
|
446
|
+
|
447
|
+
Sat Dec 6 17:35:12 UTC 2003 Takaaki Tateishi <ttate@users.sourceforge.net>
|
448
|
+
* version 0.8.2
|
449
|
+
|
450
|
+
Sat Dec 6 17:35:12 UTC 2003 Takaaki Tateishi <ttate@users.sourceforge.net>
|
451
|
+
* conn.c: An array object passed to rb_ensure() shouldn't contain
|
452
|
+
illegal objects such as C pointers.
|
453
|
+
|
454
|
+
Sat Nov 15 14:19:38 UTC 2003 Takaaki Tateishi <ttate@users.sourceforge.net>
|
455
|
+
* Use StringValueCStr/StringValuePtr instead of STR2CSTR/STR2CPTR.
|
456
|
+
|
457
|
+
Sat Oct 18 09:02:27 UTC 2003 Takaaki Tateishi <ttate@users.sourceforge.net>
|
458
|
+
* version 0.8.1
|
459
|
+
|
460
|
+
Sat Oct 18 09:02:27 UTC 2003 Takaaki Tateishi <ttate@users.sourceforge.net>
|
461
|
+
* conn.c: Fixed the memory leak problem of Conn#search which was
|
462
|
+
reported by Akira Yamada.
|
463
|
+
|
464
|
+
Mon Oct 6 14:11:01 UTC 2003 Takaaki Tateishi <ttate@users.sourceforge.net>
|
465
|
+
* test/add.rb: Adding an attribute 'dn' and fix the object class for
|
466
|
+
entry1.
|
467
|
+
|
468
|
+
* Removing the directory 'doc'.
|
469
|
+
|
470
|
+
* saslconn.c: Get rid of unreachable lines.
|
471
|
+
(Thanks Yuuzou Gotou)
|
472
|
+
|
473
|
+
Tue Feb 18 18:20:54 UTC 2003 Takaaki Tateishi <ttate@users.sourceforge.net>
|
474
|
+
* saslconn.c: Fixed a Conn#sasl_bind which should throw an exception
|
475
|
+
'NotImplementedError' since it was not implemented correctly yet.
|
476
|
+
(Thanks Hadmut Danisch)
|
477
|
+
|
478
|
+
Tue Jan 14 09:14:42 UTC 2003 Takaaki Tateishi <ttate@users.sourceforge.net>
|
479
|
+
* conn.c: Fixed a compile problem for ruby-1.8.x.
|
480
|
+
(Thanks Radek Hnilica)
|
481
|
+
|
482
|
+
Sat Dec 21 22:00:02 UTC 2002 Takaaki Tateishi <ttate@users.sourceforge.net>
|
483
|
+
* Use rb_define_alloc_func() for ruby-1.7.x.
|
484
|
+
|
485
|
+
Mon Nov 25 17:38:11 UTC 2002 Takaaki Tateishi <ttate@users.sourceforge.net>
|
486
|
+
* ldap.c: Added LDAP_SASL_SIMPLE.
|
487
|
+
|
488
|
+
Mon Nov 18 05:42:46 UTC 2002 Takaaki Tateishi <ttate@users.sourceforge.net>
|
489
|
+
* ldap.c: Added LDAP::LDAP_DEREF_NEVER, and so on.
|
490
|
+
* conn.c: Fixed Conn#set_option for LDAP_OPT_REFERRALS.
|
491
|
+
* conn.c: Fixed the problem that Conn#search(dn,scope,filter,attrs)
|
492
|
+
dies when attrs is [].
|
493
|
+
|
494
|
+
Fri Nov 8 19:30:05 UTC 2002 Takaaki Tateishi <ttate@users.sourceforge.net>
|
495
|
+
* Add Conn#sasl_bind instead of SASLConn, and deleted SASLConn.
|
496
|
+
|
497
|
+
Tue Nov 5 07:26:24 UTC 2002 Takaaki Tateishi <ttate@users.sourceforge.net>
|
498
|
+
* This project moved to SourceForge, and the license is changed to BSD.
|
499
|
+
|
500
|
+
Tue Oct 22 16:24:13 UTC 2002 Takaaki Tateishi <ttate@kt.jaist.ac.jp>
|
501
|
+
* misc.c (Init_ldap_misc): Added "#ifdef HAVE_LDAPCONTROL".
|
502
|
+
(Thanks Pirmin Kalberer)
|
503
|
+
|
504
|
+
Mon Aug 5 03:08:20 UTC 2002 Takaaki Tateishi <ttate@kt.jaist.ac.jp>
|
505
|
+
* version 0.8.0
|
506
|
+
|
507
|
+
Sun Aug 4 16:54:53 UTC 2002 Takaaki Tateishi <ttate@kt.jaist.ac.jp>
|
508
|
+
* Conform to the allocation framework.
|
509
|
+
|
510
|
+
Mon Jul 29 05:13:11 UTC 2002 Takaaki Tateishi <ttate@kt.jaist.ac.jp>
|
511
|
+
* version 0.7.2
|
512
|
+
|
513
|
+
Fri Jul 19 06:40:10 UTC 2002 Takaaki Tateishi <ttate@kt.jaist.ac.jp>
|
514
|
+
* win/winldap.h: fix values of LDAP_SCOPE_ONELEVEL and
|
515
|
+
LDAP_SCOPE_SUBTREE.
|
516
|
+
|
517
|
+
Thu Jul 18 16:22:14 UTC 2002 Takaaki Tateishi <ttate@kt.jaist.ac.jp>
|
518
|
+
* version 0.7.1
|
519
|
+
|
520
|
+
Thu Jul 18 16:22:14 UTC 2002 Takaaki Tateishi <ttate@kt.jaist.ac.jp>
|
521
|
+
* conn.c: raise -> rb_raise
|
522
|
+
|
523
|
+
Wed Jun 5 13:45:25 UTC 2002 Takaaki Tateishi <ttate@kt.jaist.ac.jp>
|
524
|
+
* Use ALLOC_N instead of malloc().
|
525
|
+
* rb_sLDAP_Control -> rb_cLDAP_Control.
|
526
|
+
|
527
|
+
Sun Jun 2 15:13:17 UTC 2002 Takaaki Tateishi <ttate@kt.jaist.ac.jp>
|
528
|
+
* version 0.7.0
|
529
|
+
|
530
|
+
Sun Jun 2 15:13:17 UTC 2002 Takaaki Tateishi <ttate@kt.jaist.ac.jp>
|
531
|
+
* Improve testing scripts.
|
532
|
+
|
533
|
+
Sat Jun 1 17:16:16 UTC 2002 Takaaki Tateishi <ttate@kt.jaist.ac.jp>
|
534
|
+
* rbldap.h: define RB_LDAP_SET_STR.
|
535
|
+
* misc.c (rb_ldap_get_apiinfo): should allocate new space for a string.
|
536
|
+
* misc.c (rb_ldap_get_controls): ditto.
|
537
|
+
* mod.c (rb_ldap_mod_s_new): ditto.
|
538
|
+
* conn.c: Add Conn#xxxx_ext() methods.
|
539
|
+
|
540
|
+
Tue Apr 2 09:01:54 UTC 2002 Takaaki Tateishi <ttate@kt.jaist.ac.jp>
|
541
|
+
* version 0.6.1
|
542
|
+
|
543
|
+
Tue Apr 2 03:53:13 UTC 2002 Takaaki Tateishi <ttate@kt.jaist.ac.jp>
|
544
|
+
* conn.c: prohibit multiple bind calls.
|
545
|
+
|
546
|
+
Fri Mar 29 15:06:56 UTC 2002 Takaaki Tateishi <ttate@kt.jaist.ac.jp>
|
547
|
+
* conn.c: Any operations should not be permitted after the unbind
|
548
|
+
operation.
|
549
|
+
|
550
|
+
Tue Mar 12 07:44:23 UTC 2002 Takaaki Tateishi <ttate@kt.jaist.ac.jp>
|
551
|
+
* version 0.6.0.
|
552
|
+
|
553
|
+
Tue Mar 12 06:08:29 UTC 2002 Takaaki Tateishi <ttate@kt.jaist.ac.jp>
|
554
|
+
* conn.c: a few methods return a connection object.
|
555
|
+
|
556
|
+
Fri Jan 11 19:41:59 JST 2002 Takaaki Tateishi <ttate@kt.jaist.ac.jp>
|
557
|
+
* lib/ldap/schema.rb: new file
|
558
|
+
|
559
|
+
Wed Jan 2 10:51:05 JST 2002 Takaaki Tateishi <ttate@kt.jaist.ac.jp>
|
560
|
+
* sslconn.c (rb_openldap_sslconn_s_new): Both of LDAPS connection
|
561
|
+
and StartTLS extension are available.
|
562
|
+
* ldap.c: Add LDAP_OPT_SSL for wldap32.dll.
|
563
|
+
|
564
|
+
Wed Jan 2 04:10:20 JST 2002 Takaaki Tateishi <ttate@kt.jaist.ac.jp>
|
565
|
+
* sslconn.c (rb_wldap32_sslconn_s_new): new function for SSL
|
566
|
+
connection on windows.
|
567
|
+
|
568
|
+
Tue Jan 1 10:48:04 JST 2002 Takaaki Tateishi <ttate@kt.jaist.ac.jp>
|
569
|
+
* version 0.5.0
|
570
|
+
|
571
|
+
Tue Jan 1 10:48:04 JST 2002 Takaaki Tateishi <ttate@kt.jaist.ac.jp>
|
572
|
+
* support wldap32.dll
|
573
|
+
* conn.c (rb_ldap_conn_compare): new method
|
574
|
+
|
575
|
+
Sun Dec 9 15:36:41 JST 2001 Takaaki Tateishi <ttate@kt.jaist.ac.jp>
|
576
|
+
* version 0.4.0
|
577
|
+
|
578
|
+
Sat Dec 8 23:05:08 JST 2001 Takaaki Tateishi <ttate@kt.jaist.ac.jp>
|
579
|
+
* sslconn.c (rb_ldap_sslconn_s_new): call rb_ldap_conn_new().
|
580
|
+
* saslconn.c (rb_ldap_saslconn_s_new): call rb_ldap_conn_new().
|
581
|
+
* conn.c (rb_ldap_conn_new): initialize ldapdata->bind by 0.
|
582
|
+
* rbldap.h (Init_ldap_message): unused.
|
583
|
+
|
584
|
+
Thu Jul 5 22:55:56 JST 2001 Takaaki Tateishi <ttate@jaist.ac.jp>
|
585
|
+
* ldap.c (rb_eLDAP_Error): the super class of the LDAPError
|
586
|
+
became the StandardError.
|
587
|
+
|
588
|
+
Sun Jul 1 12:06:46 JST 2001 Takaaki Tateishi <ttate@jaist.ac.jp>
|
589
|
+
* ldap.c (Init_ldap): add constants LDAP_VENDOR_NAME,
|
590
|
+
LDAP_VENDOR_VERSION and LDAP_API_VERSION
|
591
|
+
|
592
|
+
Sat Jun 30 19:45:13 JST 2001 Takaaki Tateishi <ttate@jaist.ac.jp>
|
593
|
+
* saslconn.c (rb_cSASLConn): new class
|
594
|
+
* rbldap.h (Init_xxx): bug fixes
|
595
|
+
* conn.c (rb_ldap_conn_new): use 'klass' as the type of new object
|
596
|
+
|
597
|
+
Wed Jun 13 22:03:44 JST 2001 Takaaki Tateishi <ttate@jaist.ac.jp>
|
598
|
+
* sslconn.c (rb_openldap_sslconn_s_new): new function
|
599
|
+
* sslconn.c (rb_nssldap_sslconn_s_new): new function
|
600
|
+
* sslconn.c (rb_ldap_sslconn_s_new): using the above two functions
|
601
|
+
|
602
|
+
Mon Jun 13 23:01:13 JST 2001 Takaaki Tateishi <ttate@jaist.ac.jp>
|
603
|
+
* version 0.3.7
|
604
|
+
|
605
|
+
Mon Jun 11 23:01:13 JST 2001 Takaaki Tateishi <ttate@jaist.ac.jp>
|
606
|
+
* rbldap.h: bug fix for OpenLDAP1 (Thanks Akira Yamada)
|
607
|
+
* misc.h: bug fix for OpenLDAP1,2
|
608
|
+
|
609
|
+
Mon Jun 11 20:20:19 JST 2001 Takaaki Tateishi <ttate@jaist.ac.jp>
|
610
|
+
* extconf.rb: bug fix for OpenLDAP1 (thanks Akira Yamada)
|
611
|
+
|
612
|
+
Mon Jun 11 10:55:08 JST 2001 Takaaki Tateishi <ttate@jaist.ac.jp>
|
613
|
+
* version 0.3.6
|
614
|
+
|
615
|
+
Tue Jun 5 01:12:00 JST 2001 Amos Gouaux <amos@utdallas.edu>
|
616
|
+
* conn.c (rb_ldap_conn_get_option): bug fix for LDAP_OPT_API_INFO.
|
617
|
+
* conn.c (rb_ldap_conn_set_option): bug fix for LDAP_OPT_API_INFO.
|
618
|
+
(checked with the Netscape SDK 4.14 and the OpenLDAP2.0.11)
|
619
|
+
|
620
|
+
Wed May 23 11:43:09 JST 2001 Pedro Cuenca <pcuenca@ieee.org>
|
621
|
+
* extconf.rb: $ldap_incdir,$ldap_libdir ware not used.
|
622
|
+
|
623
|
+
Fri May 18 18:54:19 JST 2001 Takaaki Tateishi <ttate@jaist.ac.jp>
|
624
|
+
* ldap.c (rb_ldap_hash2mods): new function
|
625
|
+
* conn.c (rb_ldap_conn_add_s, rb_ldap_conn_mod_s):
|
626
|
+
you also use hash instead of an array of mod objects.
|
627
|
+
(see test/add2.rb)
|
628
|
+
|
629
|
+
Fri May 4 16:46:31 JST 2001 Takaaki Tateishi <ttate@jaist.ac.jp>
|
630
|
+
* misc.c (rb_ldap_apiinfo_new): new internal function
|
631
|
+
* misc.c (rb_ldap_control_new): new internal function
|
632
|
+
* misc.c (rb_ldap_get_apiinfo): new internal function
|
633
|
+
* misc.c (rb_ldap_get_control): new internal function
|
634
|
+
|
635
|
+
Sat Apr 28 08:04:25 JST 2001 Takaaki Tateishi <ttate@jaist.ac.jp>
|
636
|
+
* conn.c (rb_ldap_conn_search2_s): Conn#search2 returns
|
637
|
+
an array of hash as the result of searching.
|
638
|
+
|
639
|
+
Sun Apr 22 09:54:15 JST 2001
|
640
|
+
* version 0.3.5
|
641
|
+
|
642
|
+
Sat Apr 21 22:09:38 JST 2001
|
643
|
+
* conn.c (rb_ldap_conn_search_s): sorting is available.
|
644
|
+
* conn.c (rb_ldap_conn_s_open): bug fix
|
645
|
+
|
646
|
+
Mon Jan 29 22:40:20 JST 2001 Takaaki Tateishi <ttate@jaist.ac.jp>
|
647
|
+
* conn.c (rb_ldap_conn_set_option): LDAP_OPT_API_INFO
|
648
|
+
|
649
|
+
Wed Nov 22 21:51:23 JST 2000 Takaaki Tateishi <ttate@jaist.ac.jp>
|
650
|
+
* ldap.c: add SASL constants
|
651
|
+
|
652
|
+
Wed Nov 22 01:16:32 JST 2000 Takaaki Tateishi <ttate@jaist.ac.jp>
|
653
|
+
* repack (thanks Akinori MUSHA <knu@idaemons.org>)
|
654
|
+
version 0.3.4
|
655
|
+
|
656
|
+
Tue Nov 21 16:21:57 JST 2000 Takaaki Tateishi <ttate@jaist.ac.jp>
|
657
|
+
* version 0.3.3
|
658
|
+
|
659
|
+
Tue Nov 21 16:19:40 JST 2000 Takaaki Tateishi <ttate@jaist.ac.jp>
|
660
|
+
* mod.c(rb_ldap_mod_s_new): didn't allocate enough space for
|
661
|
+
'bvals' and 'strvals'.
|
662
|
+
|
663
|
+
Tue Nov 21 09:22:17 JST 2000 Takaaki Tateishi <ttate@jaist.ac.jp>
|
664
|
+
* ldap.c: add OpenLDAP TLS options
|
665
|
+
|
666
|
+
Sun Nov 19 21:36:27 JST 2000 Takaaki Tateishi <ttate@jaist.ac.jp>
|
667
|
+
* conn.c (rb_ldap_conn_start_tls_s): add Conn#start_tls
|
668
|
+
if you use OpenLDAP2. [experimental]
|
669
|
+
* test/bind-ssl.rb: added
|
670
|
+
|
671
|
+
Sun Nov 19 03:38:48 JST 2000 Takaaki Tateishi <ttate@jaist.ac.jp>
|
672
|
+
* version 0.3.2
|
673
|
+
|
674
|
+
Sun Nov 19 03:38:48 JST 2000 Takaaki Tateishi <ttate@jaist.ac.jp>
|
675
|
+
* entry.c (rb_ldap_entry_get_attributes):
|
676
|
+
ber_free may cause segmentation fault when using openldap1.
|
677
|
+
|
678
|
+
Sun Nov 19 02:26:52 JST 2000 Takaaki Tateishi <ttate@jaist.ac.jp>
|
679
|
+
* modify library test scripts for OpenLDAP version 1 and 2.
|
680
|
+
Run test/test.sh for checking, if you have OpenLDAP.
|
681
|
+
|
682
|
+
Sun Oct 29 14:26:50 JST 2000 Takaaki Tateishi <ttate@jaist.ac.jp>
|
683
|
+
* version 0.3.1
|
684
|
+
|
685
|
+
Sun Oct 29 10:59:06 JST 2000 Takaaki Tateishi <ttate@jaist.ac.jp>
|
686
|
+
* conn.c: Conn#err is added, it returns the result of the operation.
|
687
|
+
* conn.c (rb_ldap_conn_perror): calls ldap_err2string if ldap_perror
|
688
|
+
is not provided by the library.
|
689
|
+
* conn.c: each method raises LDAP::ResultError if the result of
|
690
|
+
the operation is not LDAP_SUCCESS.
|
691
|
+
* conn.c (rb_ldap_get_option): allocate enough memory to the 'data'.
|
692
|
+
* extconf.rb: remove -O0 option
|
693
|
+
|
694
|
+
Thu Oct 26 11:50:26 JST 2000 Takaaki Tateishi <ttate@jaist.ac.jp>
|
695
|
+
* conn.c: fix some errors for NetscapeSDK
|
696
|
+
|
697
|
+
Tue Oct 22 ??:??:?? JST 2000 Takaaki Tateishi <ttate@jaist.ac.jp>
|
698
|
+
* version 0.3 release
|
699
|
+
|
700
|
+
Tue Oct 17 11:19:57 JST 2000 Takaaki Tateishi <ttate@jaist.ac.jp>
|
701
|
+
* ldap.c: add LDAP::LDAP_API_INFO_VERSION
|
702
|
+
* extconf.rb: comile with -O0 flag
|
703
|
+
* misc.c: add LDAP::APIInfo [experimental]
|
704
|
+
|
705
|
+
Tue Oct 17 06:34:07 JST 2000 Takaaki Tateishi <ttate@jaist.ac.jp>
|
706
|
+
* ldap.c: add some LDAP::LDAP_OPT_XXX constant
|
707
|
+
* conn.c: Conn#get_option,set_option is partially implemneted
|
708
|
+
|
709
|
+
Mon Oct 16 20:43:31 JST 2000 Takaaki Tateishi <ttate@jaist.ac.jp>
|
710
|
+
* extconf.rb: --with-libxxx,--without-libxxx
|
711
|
+
* conn.c: netscape sdk's ldap_perror is something wrong?
|
712
|
+
if you meet bugs, execute extconf.rb with --disable-ldap-perror.
|
713
|
+
* sslconn.c: I forgot replacing rb_eLDAP_ERROR with rb_eLDAP_Error.
|
714
|
+
|
715
|
+
Mon Oct 16 03:08:37 JST 2000 Takaaki Tateishi <ttate@jaist.ac.jp>
|
716
|
+
* message.rb -> entry.rb
|
717
|
+
* entry.c: LDAP::Message -> LDAP::Entry
|
718
|
+
* conn.c: fix Conn#result2error
|
719
|
+
|
720
|
+
Sun Oct 15 12:59:57 JST 2000 Takaaki Tateishi <ttate@jaist.ac.jp>
|
721
|
+
* ldap.c: add LDAP::InvalidMessageError,InvalidDataError.
|
722
|
+
* rbldap.h: add Check_LDAPMSG macro.
|
723
|
+
* rbldap.h: GET_LDAPMSG_DATA checks if given object is valid or not.
|
724
|
+
* conn.c: Conn#search returns the error code, and a block can
|
725
|
+
be given. the block argument is an instance of LDAPMessage which
|
726
|
+
is valid in the block.
|
727
|
+
if it is used out of the block, LDAP::InvalidMessageError is raised.
|
728
|
+
(see test/test4.rb.)
|
729
|
+
|
730
|
+
Sun Oct 15 04:07:08 JST 2000 Takaaki Tateishi <ttate@jaist.ac.jp>
|
731
|
+
* message.c: replace RSTRING(str)->ptr with STR2CSTR(str).
|
732
|
+
|
733
|
+
Sat Oct 14 02:21:53 JST 2000 Takaaki Tateishi <ttate@jaist.ac.jp>
|
734
|
+
* version 0.2.1 released
|
735
|
+
|
736
|
+
Fri Oct 13 19:16:28 JST 2000 Takaaki Tateishi <ttate@jaist.ac.jp>
|
737
|
+
* (extconf.rb) some library was not linked.
|
738
|
+
* (message.rb) call free() if ldap_memfree was not present.
|
739
|
+
U-Mich LDAP and OpenLDAP-1.x.x didn't provide it.
|
740
|
+
(thanks atsu@@metallic.co.jp)
|
741
|
+
|
742
|
+
Thu Sep 28 23:05:01 JST 2000 Takaaki Tateishi <ttate@jaist.ac.jp>
|
743
|
+
* version 0.2 released
|
744
|
+
|
745
|
+
Thu Sep 28 19:54:00 JST 2000 Takaaki Tateishi <ttate@jaist.ac.jp>
|
746
|
+
* (conn.c) rb_ldap_conn_bind uses rb_ensure when a block is given.
|
747
|
+
* (sslconn.c) fix SSLConn.new and SSLConn.open.
|
748
|
+
|
749
|
+
Thu Sep 28 15:24:03 JST 2000 Takaaki Tateishi <ttate@jaist.ac.jp>
|
750
|
+
* (extconf.rb) check -lresolv and -lpthread.
|
751
|
+
* Conn#ldap_set_option, Conn#ldap_get_option are supported.(experimental)
|
752
|
+
* LDAP::LDAP_PORT, LDAP::LDAPS_PORT are added.
|
753
|
+
* LDAP::LDAP_OPT_XXXXX are available if they are defined in ldap.h.
|
754
|
+
|
755
|
+
Tue Sep 26 06:59:48 JST 2000 Takaaki Tateishi <ttate@jaist.ac.jp>
|
756
|
+
* LDAP::Message#to_hash is added.
|
757
|
+
|
758
|
+
Mon Sep 25 07:49:44 JST 2000 Akinori MUSHA <knu@idaemons.org>
|
759
|
+
* LDAP_AUTH_METHOD_NOT_SUPPORTED is not supported by OpenLDAPv1.
|
760
|
+
|
761
|
+
Mon Sep 25 07:49:13 JST 2000 Takaaki Tateishi <ttate@jaist.ac.jp>
|
762
|
+
* version 0.1 released
|