Commits

Michael Granger committed c315afa

Snapshot commit

Comments (0)

Files changed (5)

 			  &referrals, &serverctrls, 0);
   Check_LDAP_Result (rc);
   Check_LDAP_Result (err);
-
   if (referrals)
     {
       for (i = 0; referrals[i]; i++)
   control = LDAP::Control.new( LDAP::LDAP_CONTROL_PAGEDRESULTS,
 			       ber_string,
 			       critical )
-  conn.set_option( LDAP::LDAP_OPT_SERVER_CONTROLS, [control] )
+  # conn.set_option( LDAP::LDAP_OPT_SERVER_CONTROLS, [control] )
 
-  this_page = conn.search2( 'dc=google, dc=com',
+  this_page = conn.search_ext2( 'dc=google, dc=com',
 			    LDAP::LDAP_SCOPE_SUBTREE,
-			    '(objectclass=*)', ['cn'] )
+			    '(objectclass=*)', ['cn'], false, [control] )
 
   printf( "Page %d has %d entries.\n", search += 1, this_page.size )
   printf( "That's %d entries in total.\n", total += this_page.size )
       char **svals;
       int i;
 
+      xfree(data->mod->mod_type);
       if (data->mod->mod_op & LDAP_MOD_BVALUES)
 	{
 	  bvals = data->mod->mod_vals.modv_bvals;
     return Qnil;
 
   mod_op = NUM2INT (op);
-  mod_type = StringValueCStr (type);
+  RB_LDAP_SET_STR (mod_type, type);
   Check_Type (vals, T_ARRAY);
 
   if (mod_op & LDAP_MOD_BVALUES)
 
 #define Check_LDAP_Result(err) { \
   if( err != LDAP_SUCCESS && err != LDAP_SIZELIMIT_EXCEEDED ){ \
-    rb_raise(rb_eLDAP_ResultError, ldap_err2string(err)); \
+	rb_warn( "Result code %d was considered an error: %s.", err, ldap_err2string(err) ); \
   } \
 }
 

ruby-ldap.gemspec

 Gem::Specification.new do |s|
   s.platform = Gem::Platform::RUBY
   s.name = 'ruby-ldap'
-  s.version = "0.9.9"
+  s.version = "0.9.10.p248"
   s.summary = 'Ruby/LDAP is an extension module for Ruby'
   s.description = <<-EOF
 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.