ruby-ldap 0.9.9 → 0.9.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (6) hide show
  1. data/ChangeLog +6 -0
  2. data/NOTES +8 -0
  3. data/README +1 -0
  4. data/conn.c +12 -0
  5. data/rbldap.h +2 -2
  6. metadata +27 -27
data/ChangeLog CHANGED
@@ -1,3 +1,9 @@
1
+ Fri Jan 29 07:50:30 UTC 2010 Alexey Chebotar <alexey.chebotar@gmail.com>
2
+ * Version 0.9.10
3
+ * Added controls and referral extraction to #search_ext and
4
+ #search_ext2. Thanks to Michael Granger.
5
+
6
+
1
7
  Thu Jun 11 06:51:30 UTC 2009 Alexey Chebotar <alexey.chebotar@gmail.com>
2
8
  * Version 0.9.9
3
9
  * Fixed LDAP::VERSION. Thanks to Kouhei Sutou
data/NOTES CHANGED
@@ -1,11 +1,19 @@
1
1
  $Id: NOTES,v 1.4 2006/08/09 11:22:25 ianmacd Exp $
2
2
 
3
+ 0.9.10
4
+ -----
5
+
6
+ Added controls and referral extraction to #search_ext and #search_ext2.
7
+ Thanks to Michael Granger.
8
+
9
+
3
10
  0.9.9
4
11
  -----
5
12
 
6
13
  Supported OpenLDAP 2.4.15 and higher. Thanks to Milos Jakubicek.
7
14
  Gem Packaging Support. Thanks to S. Potter [mbbx6spp].
8
15
 
16
+
9
17
  0.9.8
10
18
  -----
11
19
 
data/README CHANGED
@@ -264,3 +264,4 @@ This list maybe not correct. If you notice mistakes of this list, please point o
264
264
  * Milos Jakubicek: Patch.
265
265
  * S. Potter [mbbx6spp]: Gem Packaging Support
266
266
  * Kouhei Sutou
267
+ * Michael Granger: Patch.
data/conn.c CHANGED
@@ -1270,6 +1270,7 @@ rb_ldap_conn_search_ext_s (int argc, VALUE argv[], VALUE self)
1270
1270
  RB_LDAP_DATA *ldapdata;
1271
1271
  LDAPMessage *cmsg;
1272
1272
  LDAP *cldap;
1273
+ VALUE rc_ary = Qnil;
1273
1274
 
1274
1275
  rb_ldap_conn_search_ext_i (argc, argv, self, &ldapdata, &cmsg);
1275
1276
  cldap = ldapdata->ldap;
@@ -1278,6 +1279,11 @@ rb_ldap_conn_search_ext_s (int argc, VALUE argv[], VALUE self)
1278
1279
  || ldapdata->err == LDAP_SIZELIMIT_EXCEEDED)
1279
1280
  {
1280
1281
  void *pass_data[] = { (void *) cldap, (void *) cmsg };
1282
+
1283
+ rc_ary = rb_ldap_parse_result (cldap, cmsg);
1284
+ rb_iv_set (self, "@referrals", rb_ary_shift (rc_ary));
1285
+ rb_iv_set (self, "@controls", rb_ary_shift (rc_ary));
1286
+
1281
1287
  rb_ensure (rb_ldap_conn_search_b, (VALUE) pass_data,
1282
1288
  rb_ldap_msgfree, (VALUE) cmsg);
1283
1289
  };
@@ -1327,6 +1333,7 @@ rb_ldap_conn_search_ext2_s (int argc, VALUE argv[], VALUE self)
1327
1333
  LDAPMessage *cmsg;
1328
1334
  LDAP *cldap;
1329
1335
  VALUE ary;
1336
+ VALUE rc_ary = Qnil;
1330
1337
 
1331
1338
  rb_ldap_conn_search_ext_i (argc, argv, self, &ldapdata, &cmsg);
1332
1339
  cldap = ldapdata->ldap;
@@ -1336,6 +1343,11 @@ rb_ldap_conn_search_ext2_s (int argc, VALUE argv[], VALUE self)
1336
1343
  || ldapdata->err == LDAP_SIZELIMIT_EXCEEDED)
1337
1344
  {
1338
1345
  void *pass_data[] = { (void *) cldap, (void *) cmsg, (void *) ary };
1346
+
1347
+ rc_ary = rb_ldap_parse_result (cldap, cmsg);
1348
+ rb_iv_set (self, "@referrals", rb_ary_shift (rc_ary));
1349
+ rb_iv_set (self, "@controls", rb_ary_shift (rc_ary));
1350
+
1339
1351
  rb_ensure (rb_ldap_conn_search2_b, (VALUE) pass_data,
1340
1352
  rb_ldap_msgfree, (VALUE) cmsg);
1341
1353
  }
data/rbldap.h CHANGED
@@ -27,8 +27,8 @@
27
27
 
28
28
  #define RB_LDAP_MAJOR_VERSION 0
29
29
  #define RB_LDAP_MINOR_VERSION 9
30
- #define RB_LDAP_PATCH_VERSION 9
31
- #define RB_LDAP_VERSION "0.9.9"
30
+ #define RB_LDAP_PATCH_VERSION 10
31
+ #define RB_LDAP_VERSION "0.9.10"
32
32
 
33
33
  #define LDAP_GET_OPT_MAX_BUFFER_SIZE (1024) /* >= sizeof(LDAPAPIInfo) */
34
34
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-ldap
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.9
4
+ version: 0.9.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexey Chebotar
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-06-11 00:00:00 +03:00
12
+ date: 2010-02-01 00:00:00 +01:00
13
13
  default_executable:
14
14
  dependencies: []
15
15
 
@@ -30,44 +30,44 @@ files:
30
30
  - NOTES
31
31
  - README
32
32
  - TODO
33
- - lib/ldap/ldif.rb
34
- - lib/ldap/schema.rb
35
- - lib/ldap/control.rb
33
+ - extconf.rb
36
34
  - test/conf.rb
37
- - test/compare.rb
35
+ - test/add3.rb
36
+ - test/search2.rb
37
+ - test/delete.rb
38
+ - test/ts_ldap.rb
39
+ - test/setup.rb
40
+ - test/bind-ldaps.rb
41
+ - test/search3.rb
38
42
  - test/tc_search.rb
39
- - test/add.rb
43
+ - test/tc_schema.rb
44
+ - test/tc_ldif.rb
45
+ - test/compare.rb
46
+ - test/search.rb
40
47
  - test/ext.rb
41
48
  - test/tc_conn.rb
42
- - test/delete.rb
43
49
  - test/add2.rb
44
- - test/add3.rb
45
- - test/modrdn.rb
46
- - test/misc1.rb
47
50
  - test/misc2.rb
48
- - test/bind-ssl.rb
49
- - test/tc_ldif.rb
50
- - test/search.rb
51
51
  - test/subschema.rb
52
- - test/search2.rb
53
- - test/search3.rb
54
- - test/setup.rb
52
+ - test/bind-ssl.rb
55
53
  - test/bind.rb
56
- - test/ts_ldap.rb
57
- - test/tc_schema.rb
58
- - test/bind-ldaps.rb
54
+ - test/misc1.rb
55
+ - test/add.rb
59
56
  - test/bind-sasl.rb
60
- - extconf.rb
61
- - win/winlber.h
57
+ - test/modrdn.rb
58
+ - lib/ldap/control.rb
59
+ - lib/ldap/schema.rb
60
+ - lib/ldap/ldif.rb
62
61
  - win/winldap.h
62
+ - win/winlber.h
63
63
  - rbldap.h
64
- - mod.c
64
+ - misc.c
65
+ - ldap.c
65
66
  - entry.c
66
- - saslconn.c
67
67
  - conn.c
68
- - ldap.c
68
+ - mod.c
69
+ - saslconn.c
69
70
  - sslconn.c
70
- - misc.c
71
71
  has_rdoc: true
72
72
  homepage: http://ruby-ldap.sourceforge.net/
73
73
  licenses: []
@@ -92,7 +92,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
92
92
  requirements: []
93
93
 
94
94
  rubyforge_project: ruby-ldap
95
- rubygems_version: 1.3.3
95
+ rubygems_version: 1.3.5
96
96
  signing_key:
97
97
  specification_version: 3
98
98
  summary: Ruby/LDAP is an extension module for Ruby