1. Michael Granger
  2. ruby-ldap

Commits

Michael Granger  committed c315afa

Snapshot commit

  • Participants
  • Parent commits 951c96c
  • Branches default

Comments (0)

Files changed (5)

File conn.c

View file
 			  &referrals, &serverctrls, 0);
   Check_LDAP_Result (rc);
   Check_LDAP_Result (err);
-
   if (referrals)
     {
       for (i = 0; referrals[i]; i++)

File example/pr_ctl

View file
   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 )

File mod.c

View file
       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)

File rbldap.h

View file
 
 #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) ); \
   } \
 }
 

File ruby-ldap.gemspec

View file
 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.