[#86984] Attempted roadmap of future instance variables.... — "David A. Black" <dblack@...>

Hi --

81 messages 2003/12/02
[#86998] Re: Attempted roadmap of future instance variables.... — Steve Tuckner <STUCKNER@...> 2003/12/02

So what is the relationship between @_ vars and @vars that are defined in a

[#87001] Re: Attempted roadmap of future instance variables.... — "David A. Black" <dblack@...> 2003/12/02

Hi --

[#87006] Re: Attempted roadmap of future instance variables.... — Steve Tuckner <STUCKNER@...> 2003/12/02

Maybe I am being dense, so bear with me...

[#87011] Re: Attempted roadmap of future instance variables.... — Lyle Johnson <lyle@...> 2003/12/02

Steve Tuckner wrote:

[#87013] Re: Attempted roadmap of future instance variables.... — Steve Tuckner <STUCKNER@...> 2003/12/02

OK so the jist of it is that @_var variables are stored with the class of

[#87095] Re: Attempted roadmap of future instance variables.... — "Robert Klemme" <bob.news@...> 2003/12/03

[#87098] Re: Attempted roadmap of future instance variables.... — "David A. Black" <dblack@...> 2003/12/03

Hi --

[#87102] Re: Attempted roadmap of future instance variables.... — ts <decoux@...> 2003/12/03

>>>>> "D" == David A Black <dblack@wobblini.net> writes:

[#87244] Re: Attempted roadmap of future instance variables.... — "Christoph" <chr_mail@...> 2003/12/05

ts wrote:

[#87275] Re: Attempted roadmap of future instance variables.... — ts <decoux@...> 2003/12/05

>>>>> "C" == Christoph <chr_mail@gmx.net> writes:

[#87286] Re: Attempted roadmap of future instance variables.... — "Christoph" <chr_mail@...> 2003/12/05

ts wrote:

[#87290] Re: Attempted roadmap of future instance variables.... — "David A. Black" <dblack@...> 2003/12/05

Hi --

[#87308] Re: Attempted roadmap of future instance variables.... — Austin Ziegler <austin@...> 2003/12/05

On Fri, 5 Dec 2003 22:56:41 +0900, David A. Black wrote:

[#87310] Re: Attempted roadmap of future instance variables.... — "Christoph" <chr_mail@...> 2003/12/05

Austin Ziegler wrote:

[#87314] Re: Attempted roadmap of future instance variables.... — "T. Onoma" <transami@...> 2003/12/05

On Friday 05 December 2003 05:40 pm, Christoph wrote:

[#87318] Re: Attempted roadmap of future instance variables.... — matz@... (Yukihiro Matsumoto) 2003/12/05

Hi,

[#87335] Re: Attempted roadmap of future instance variables.... — Nathaniel Talbott <nathaniel@...> 2003/12/05

On Dec 5, 2003, at 12:15, Yukihiro Matsumoto wrote:

[#87320] Re: Attempted roadmap of future instance variables.... — Austin Ziegler <austin@...> 2003/12/05

On Sat, 6 Dec 2003 01:40:42 +0900, Christoph wrote:

[#87322] Re: Attempted roadmap of future instance variables.... — "T. Onoma" <transami@...> 2003/12/05

On Friday 05 December 2003 06:41 pm, Austin Ziegler wrote:

[#87066] What's the best way to create methods dealing with an object of a certain class? — Leif K-Brooks <eurleif@...>

I want to add a method to be run on Strings. Currently, I'm just adding

14 messages 2003/12/03
[#87072] Re: What's the best way to create methods dealing with an object of a certain class? — Lyle Johnson <lyle@...> 2003/12/03

Leif K-Brooks wrote:

[#87083] Some Regexp — orlovdn@... (Dmitry N Orlov)

I want to get array from file like this:

20 messages 2003/12/03

[#87203] sorting — vanjac12@... (Van Jacques)

I'm not sure where to post about this problem, so

18 messages 2003/12/04

[#87233] Generalized break? — Hal Fulton <hal9000@...>

I hate to bring up possible language changes, since there is

14 messages 2003/12/04

[#87255] WeakRef and Object#hash — Samuel Tesla <samuel@...>

I'm trying to implement a weak key hash to use for generic objects.

37 messages 2003/12/05
[#87259] Dumb question to which I ought to know the answer by now — "Mark J. Reed" <markjreed@...> 2003/12/05

Is there an assignment version of Hash#values_at, so I can assign

[#87266] Re: Dumb question to which I ought to know the answer by now — Austin Ziegler <austin@...> 2003/12/05

On Fri, 5 Dec 2003 12:42:05 +0900, Mark J. Reed wrote:

[#87333] Re: Attempted roadmap of future instance variables.... — "Weirich, James" <James.Weirich@...>

From: David A. Black [mailto:dblack@wobblini.net]

18 messages 2003/12/05
[#87337] Re: Attempted roadmap of future instance variables.... — Chris Thomas <chris@...> 2003/12/05

[#87402] Re: Attempted roadmap of future instance variables.... — matz@... (Yukihiro Matsumoto) 2003/12/06

Hi,

[#87382] Idea: Linux PIM in Ruby — Hal Fulton <hal9000@...>

On my wishlist of top 20 things I'd like to do: A PIM for Linux.

30 messages 2003/12/06
[#87407] Re: Idea: Linux PIM in Ruby — Lyle Johnson <lyle@...> 2003/12/06

Hal Fulton wrote:

[#87409] rbbr-0.5.0 — Masao Mutoh <mutoh@...>

Hi,

18 messages 2003/12/06

[#87430] Ideas for replacing $0==__FILE__ — Hal Fulton <hal9000@...>

I've accepted now that my "generalized break" was a bad idea. In

26 messages 2003/12/06
[#87720] Re: Ideas for replacing $0==__FILE__ — Eric Hodel <drbrain@...7.net> 2003/12/10

Hal Fulton (hal9000@hypermetrics.com) wrote:

[#87723] Re: Ideas for replacing $0==__FILE__ — Hal Fulton <hal9000@...> 2003/12/10

Eric Hodel wrote:

[#87726] Re: Ideas for replacing $0==__FILE__ — Eric Hodel <drbrain@...7.net> 2003/12/10

Hal Fulton (hal9000@hypermetrics.com) wrote:

[#87459] Trying to create a Ruby daemon — Samuel Kvarnbrink <samuel.kvarnbrink@...>

Hi,

11 messages 2003/12/07

[#87553] format money — saggmannen@... (saggmannen)

Hello, is there a way to format "Money"-style floats in ruby. E.g:

25 messages 2003/12/08

[#87587] Adjusting the Scope of Blocks — Mark Cox <mark_cox@...>

Hi,

22 messages 2003/12/09
[#87606] Re: Adjusting the Scope of Blocks — "Robert Klemme" <bob.news@...> 2003/12/09

[#87620] Re: Adjusting the Scope of Blocks — "David A. Black" <dblack@...> 2003/12/09

Hi --

[#87626] ANN: REXML 2.7.2 — ser@... (Sean Russell)

Hi,

18 messages 2003/12/09

[#87638] Inheriting variables, super, and "not super"? — Hugh Sasse Staff Elec Eng <hgs@...>

Is there a way in a method to say

11 messages 2003/12/09

[#87706] Docs for Socket, OpenSSL, etc — "James F. Hranicky" <jfh@...>

Are there any plans to add docs for modules like Socket and OpenSSL, etc to

23 messages 2003/12/10
[#87766] Re: Docs for Socket, OpenSSL, etc — Simon Strandgaard <neoneye@...> 2003/12/11

On Wed, 10 Dec 2003 23:20:21 +0900, James F. Hranicky wrote:

[#87769] Re: Docs for Socket, OpenSSL, etc — "James F. Hranicky" <jfh@...> 2003/12/11

On Thu, 11 Dec 2003 20:57:00 +0900

[#87780] Re: Docs for Socket, OpenSSL, etc — Dave Thomas <dave@...> 2003/12/11

[#87781] Re: Docs for Socket, OpenSSL, etc — "James F. Hranicky" <jfh@...> 2003/12/11

On Fri, 12 Dec 2003 00:07:28 +0900

[#87775] prog for g.c.d. of 2 integers — vanjac12@... (Van Jacques)

Topics from mathematics make good practice programs, IMO.

13 messages 2003/12/11

[#87783] problems with racc: $end token — "Luke A. Kanies" <luke@...>

Hello,

14 messages 2003/12/11
[#87789] Re: problems with racc: $end token — Jim Freeze <jim@...> 2003/12/11

On Friday, 12 December 2003 at 0:42:30 +0900, Luke A. Kanies wrote:

[#87819] Ruby-Talk Subject Matters — "T. Onoma" <transami@...>

Out of curiosity, how do others feel about "suggestive" threads? Do you feel

15 messages 2003/12/11

[#87856] Simple issue giving problems — Brad <coish@...>

Hello all,

17 messages 2003/12/11

[#88031] inplace assignment — "T. Onoma" <transami@...>

is there anyway, anyway at all, ugly hacks accepted, of doing inplace

40 messages 2003/12/14
[#88032] Re: inplace assignment — Hal Fulton <hal9000@...> 2003/12/14

T. Onoma wrote:

[#88034] Re: inplace assignment — "T. Onoma" <transami@...> 2003/12/14

On Sunday 14 December 2003 05:51 am, Hal Fulton wrote:

[#88037] Re: inplace assignment — Hal Fulton <hal9000@...> 2003/12/14

T. Onoma wrote:

[#88041] Re: inplace assignment — "T. Onoma" <transami@...> 2003/12/14

On Sunday 14 December 2003 07:49 am, Hal Fulton wrote:

[#88056] Re: inplace assignment — "David A. Black" <dblack@...> 2003/12/14

On Sun, 14 Dec 2003, T. Onoma wrote:

[#88059] Re: inplace assignment — "T. Onoma" <transami@...> 2003/12/14

On Sunday 14 December 2003 03:59 pm, David A. Black wrote:

[#88064] Re: inplace assignment — "David A. Black" <dblack@...> 2003/12/14

On Mon, 15 Dec 2003, T. Onoma wrote:

[#88077] All there is to know about Duck Typing (was: inplace assignment) — "T. Onoma" <transami@...> 2003/12/14

Alright, a number of things related to Duck Tpying have been popping up and I

[#88081] Re: All there is to know about Duck Typing (was: inplace assignment) — "David Naseby" <david.naseby@...> 2003/12/14

> -----Original Message-----

[#88147] extremely strange segfault — "Luke A. Kanies" <luke@...>

Hi all,

14 messages 2003/12/15

[#88150] UnboundMethods Useless? — "T. Onoma" <transami@...>

Urrrr.....

34 messages 2003/12/15
[#88239] Re: UnboundMethods Useless? — Dan Doel <djd15@...> 2003/12/16

You can do stuff like this:

[#88309] Re: UnboundMethods Useless? — "T. Onoma" <transami@...> 2003/12/17

On Tuesday 16 December 2003 08:54 pm, Dan Doel wrote:

[#88322] Re: UnboundMethods Useless? — Chad Fowler <chad@...> 2003/12/17

On Wed, 17 Dec 2003, T. Onoma wrote:

[#88323] Re: UnboundMethods Useless? — ts <decoux@...> 2003/12/17

>>>>> "C" == Chad Fowler <chad@chadfowler.com> writes:

[#88327] Re: UnboundMethods Useless? — "T. Onoma" <transami@...> 2003/12/17

On Wednesday 17 December 2003 01:21 pm, ts wrote:

[#88328] Re: UnboundMethods Useless? — ts <decoux@...> 2003/12/17

>>>>> "T" == T Onoma <transami@runbox.com> writes:

[#88332] Re: UnboundMethods Useless? — "T. Onoma" <transami@...> 2003/12/17

On Wednesday 17 December 2003 01:59 pm, ts wrote:

[#88333] Re: UnboundMethods Useless? — "David A. Black" <dblack@...> 2003/12/17

On Wed, 17 Dec 2003, T. Onoma wrote:

[#88336] Re: UnboundMethods Useless? — Peter <Peter.Vanbroekhoven@...> 2003/12/17

> I don't know what you mean by (ir)reversible, but the point is that

[#88337] Re: UnboundMethods Useless? — ts <decoux@...> 2003/12/17

>>>>> "P" == Peter <Peter.Vanbroekhoven@cs.kuleuven.ac.be> writes:

[#88159] Re: Extracting multiple lines from a file — "Berger, Daniel" <djberge@...>

> -----Original Message-----

18 messages 2003/12/15
[#88161] Re: Extracting multiple lines from a file — "Ron Coutts" <rcoutts@...> 2003/12/15

[#88166] Re: Extracting multiple lines from a file — "Mark J. Reed" <markjreed@...> 2003/12/15

On Tue, Dec 16, 2003 at 07:16:23AM +0900, Ron Coutts wrote:

[#88199] Re: Extracting multiple lines from a file — Derek Lewis <lewisd@...00f.net> 2003/12/16

On Tue, 16 Dec 2003, Mark J. Reed wrote:

[#88172] Copying methods from one class to another — "T. Onoma" <transami@...>

Is there any way to copy a method from one class to another?

22 messages 2003/12/16
[#88174] Re: Copying methods from one class to another — Jamis Buck <jgb3@...> 2003/12/16

T. Onoma wrote:

[#88183] Re: Copying methods from one class to another — "T. Onoma" <transami@...> 2003/12/16

On Tuesday 16 December 2003 05:23 am, Jamis Buck wrote:

[#88189] Re: Copying methods from one class to another — "David A. Black" <dblack@...> 2003/12/16

On Tue, 16 Dec 2003, T. Onoma wrote:

[#88191] Re: Copying methods from one class to another — "T. Onoma" <transami@...> 2003/12/16

On Tuesday 16 December 2003 02:51 pm, David A. Black wrote:

[#88195] Re: Copying methods from one class to another — Hacksaw <hacksaw@...> 2003/12/16

Sorry to step into the middle of a conversation, but what does this mean:

[#88211] Newbie questions — jfrapper@... (Jim Frapper)

I was wondering what the equivalent tools were to perldoc(ri is not)

44 messages 2003/12/16
[#88259] Re: Newbie questions — Chad Fowler <chad@...> 2003/12/16

On Wed, 17 Dec 2003, Jim Frapper wrote:

[#88266] Re: Newbie questions — Gavin Sinclair <gsinclair@...> 2003/12/16

On Wednesday, December 17, 2003, 8:10:19 AM, Chad wrote:

[#88270] Re: Newbie questions — Daniel Carrera <dcarrera@...> 2003/12/16

>

[#88271] Re: Newbie questions — "Luke A. Kanies" <luke@...> 2003/12/16

On Wed, 17 Dec 2003, Daniel Carrera wrote:

[#88272] Re: Newbie questions — Daniel Carrera <dcarrera@...> 2003/12/16

On Wed, Dec 17, 2003 at 07:07:45AM +0900, Luke A. Kanies wrote:

[#88280] Re: Newbie questions — "Luke A. Kanies" <luke@...> 2003/12/16

On Wed, 17 Dec 2003, Daniel Carrera wrote:

[#88370] Re: Newbie questions — Derek Lewis <lewisd@...00f.net> 2003/12/17

[#88220] Re: Newbie questions — "Berger, Daniel" <djberge@...>

> -----Original Message-----

31 messages 2003/12/16
[#88224] Re: Newbie questions — Hal Fulton <hal9000@...> 2003/12/16

Berger, Daniel wrote:

[#88227] Re: Newbie questions — Thomas Adam <thomas_adam16@...> 2003/12/16

--- Hal Fulton <hal9000@hypermetrics.com> wrote:

[#88228] Re: Newbie questions — Hal Fulton <hal9000@...> 2003/12/16

Thomas Adam wrote:

[#88289] Very odd IO problem — Brad <coish@...>

All:

18 messages 2003/12/17

[#88414] Yukihiro - Please ensure backwards compatibility — jobeicus@... (Joseph Benik)

having recently migrated one of my machines from a 1.6 flavor to the

14 messages 2003/12/18

[#88494] How to return more than one result from a method? — Tim Hunter <cyclists@...>

I'm trying to code a method that has two result values. The values are

14 messages 2003/12/19

[#88581] replacing two EOL chars by one — xah@... (Xah Lee)

i have a bunch of java files that has spaced-out formatting that i

23 messages 2003/12/20

[#88643] Ruby 1.8.1 preview4 — matz@... (Yukihiro Matsumoto)

Hi,

32 messages 2003/12/22

[#88731] RubyGems and dependencies — sera@... (Francis Hwang)

Two RubyGems questions about dependencies:

16 messages 2003/12/23

[#88781] TkText freezes — quillion <me@...>

Hello all,

21 messages 2003/12/24

[#88814] ruby 1.8.1 — matz@... (Yukihiro Matsumoto)

Merry Christmas,

25 messages 2003/12/24

[#88936] Inconsistent value of uninitialized variable — Gavin Sinclair <gsinclair@...>

The following statement, free of all context, generates an error:

10 messages 2003/12/28

[#88954] An addition to Array (or Enumerable)? — Harry Ohlsen <harryo@...>

Yesterday, I wanted to get the output from "ls -l some_file" and pull out just the file size and the file name. As I start writing this, I realise, of course, that I'd have been better off just using the File#size method, but I still think the issue I hit is interesting.

12 messages 2003/12/28

[#89015] ruby-dev summary 22273-22434 — "Takaaki Tateishi" <ttate@...>

Hello,

16 messages 2003/12/30
[#89016] Re: ruby-dev summary 22273-22434 — Austin Ziegler <austin@...> 2003/12/30

On Wed, 31 Dec 2003 00:45:11 +0900, Takaaki Tateishi wrote:

libnet-ldap binary transfers

From: Bedo Sandor <bsanyi@...>
Date: 2003-12-19 09:37:26 UTC
List: ruby-talk #88520
  Hi,

I think there's a bug in libldap-ruby.  I want to copy my CA CRL
entry from one a master ldap server to a slave, but ";binary"
attributes fails to add at the first "\000" characters.


This entry was read from the master ldap server: (converted to hash)

entry  =  {
		"authorityRevocationList;binary"=>[""],
		"cn"=>["Wallalat Hitelesito Kozpont (CA)"],
		"cACertificate;binary"=>["0\202\004+0\202\003\023\240\003\002\001\002\002\001\0010\r\006\t*\206H\206\367\r\001\001\004\005\0000\201\2341\v0\t\006\003U\004\006\023\002HU1\0210\017\006\003U\004\010\023\010Budapest1\0210\017\006\003U\004\a\023\010Budapest1\0220\020\006\003U\004\n\023\tWallalat Rt.1+0)\006\003U\004\v\023\"Biztonsagi Szolgaltato Igazgatosag1&0$\006\003U\004\003\023\035Wallalat Hitelesito Kozpont (CA)0\036\027\r030605230000Z\027\r130606225959Z0\201\2341\v0\t\006\003U\004\006\023\002HU1\0210\017\006\003U\004\010\023\010Budapest1\0210\017\006\003U\004\a\023\010Budapest1\0220\020\006\003U\004\n\023\tWallalat Rt.1+0)\006\003U\004\v\023\"Biztonsagi Szolgaltato Igazgatosag1&0$\006\003U\004\003\023\035Wallalat Hitelesito Kozpont (CA)0\202\001\"0\r\006\t*\206H\206\367\r\001\001\001\005\000\003\202\001\017\0000\202\001\n\002\202\001\001\000\266x\034\264\271\v\3447\365\336\002'\234\270Wq\223\324\351tw\210~\354NjD\210?)f\323\030\237\025\343\370\305\271\201\302'\241\274\034f\e\212z\024\036\323\a\213\240a\311\207\203o\247$\035;\221\312p\0003\310\037\006\030\t\235\177\337\200ZP<F(q\252\202\226\352)j\310\275\230\377\212%\236U\e\231\254g@`h\233\225\f\025\36316.\23145\217\v\221\r8g\314\250\324\2047Vj\305\331\257x\202v\224\321\252\276uP\242.3'\333X0\232Q\363\344\241\341B\240\316\263\301\203\001\023\230\274\345<QV\236\372&%\325\245M\236\353j\001c\372(\211\345\247\227c\005\322m\356\212\037\205\272w\365G\022eM\231_a\217\203\246{\354\347\240\030S\226\252\226e\031\216\237\025k\330]\320g\317\300\231\252\377\f\336p\327\243\216v\223q\371\306t\337/[\254\206(\260\337\215#\251\202\341\002\003\001\000\001\243v0t0\021\006\t`\206H\001\206\370B\001\001\004\004\003\002\000\a0\017\006\003U\035\023\001\001\377\004\0050\003\001\001\3770\035\006\003U\035\016\004\026\004\024\t\313\t!\005\037\241\327\202M<\177\323\204\337\326\333^v\3560\037\006\003U\035#\004\0300\026\200\024\t\313\t!\005\037\241\327\202M<\177\323\204\337\326\333^v\3560\016\006\003U\035\017\001\001\377\004\004\003\002\001\2060\r\006\t*\206H\206\367\r\001\001\004\005\000\003\202\001\001\000cxR\360[\317\336\250\004uuD\365\355\220\326\010\252\274\0013 n\251rt\267\352\221.*h\222\263\333r\002C\234\210\232=\204\237\031\231&\302\021\356\370\226-p\263\207\332\206w\272M?\002\250\273\373\222\322\265\r\224\20765Y\0308\351\235~\231\231q\255K\242\2444\227\211n\341'\327\310\241\216\205r\342\246j0\010;\240\355\261\360\177\215g\010}\320\374\246\a\273{\262\214\321W\305\a\324\006\005\356\a\313\370\026\220E\"\036\0376.\377\2176\357\216\371?lZd'\261'!\277\245-\344\333\363-9Mpe\273\036\215yF|\344\233\341FI\315\311\276Z\232\315\034\361@\021m`IP\220\354\e\303\211\301\177\"gu$D\331\323\334\322E[B\275bX\261b\334\020\025\002i\333\222\317\252\3257\253Z^tb6B\323\345_\024\311)z\323F\001Z_5\002Z\264\246,X\352\265\005)"],
		"sn"=>["Wallalat Hitelesito Kozpont (CA)"],
		"objectClass"=>["top", "person", "organizationalPerson", "inetOrgPerson", "certificationAuthority"],
		"certificateRevocationList;binary"=>["0\202\003G0\202\002/0\r\006\t*\206H\206\367\r\001\001\005\005\0000\201\2341\v0\t\006\003U\004\006\023\002HU1\0210\017\006\003U\004\010\023\010Budapest1\0210\017\006\003U\004\a\023\010Budapest1\0220\020\006\003U\004\n\023\tWallalat Rt.1+0)\006\003U\004\v\023\"Biztonsagi Szolgaltato Igazgatosag1&0$\006\003U\004\003\023\035Wallalat Hitelesito Kozpont (CA)\027\r031217132400Z\027\r031224132400Z0\202\001_0\022\002\001,\027\r031127133549Z0\022\002\001+\027\r031127133549Z0\023\002\002\000\340\027\r031110121009Z0\023\002\002\000\256\027\r030704091518Z0\023\002\002\000\362\027\r031216110128Z0\023\002\002\000\255\027\r030704091550Z0\023\002\002\000\361\027\r031216110128Z0\023\002\002\0014\027\r031216110229Z0\023\002\002\0013\027\r031216110229Z0\023\002\002\002\272\027\r031213140726Z0\023\002\002\000\222\027\r030703084632Z0\023\002\002\003q\027\r031217132359Z0\022\002\001a\027\r030710092644Z0\023\002\002\001]\027\r031110120643Z0\022\002\001`\027\r030710092630Z0\022\002\001\030\027\r030903115136Z0\022\002\001\027\027\r030610135654Z0\r\006\t*\206H\206\367\r\001\001\005\005\000\003\202\001\001\000J\a\343g6\006-\354:Fr\037\023of3yg\272\363\361\027\002m>\2356*j\0363\221',\e\232=:\006\035(<i\002q\377|\366u\240%t\346\214\205\267\207S\264\360Z\314\344\231<\367H_\323,\343Hj\220o\27407\236n\215\316\231v\031\307<\233\t\341\346\212\002G5.\003\333\3645\222\017\232|\340\200\207i\246\233w\207\003\270\340\026FCf\232\221\373\361*\306H\312p\234\006\177\305FA\351:jT\306\305>O\3613\350\263I2\340\2337\300qn#\nR\324\205[\263nI0t\204\255\242>\273q\017\346Te\362\262|x \340[\373]\354k\316\260IZ\265\200\231\321\276\240\230\3667\010tic\036\211\354\256\265t2\251/\a=\325\010\207=\027\255z71*\020O\225v5\212\343|\360+\223\216'\351m\272'\t*\226\314\220\206?*\346[\217\320\213\245\202"]
	}



The method I added the enry is derived from libnet-ldap examples:

	class LDAP_connector
		def []=(dn, entry)
			 entry = entry.to_hash
	                 @ldap = LDAP::Conn.new(@host, @port)
	                 @ldap.set_option(LDAP::LDAP_OPT_PROTOCOL_VERSION, @proto)
	                 @ldap.bind(@binddn, @passwd)
	                 entry.delete('dn')
	                 @ldap.add(dn, entry)
	                 @ldap.unbind
		end
	end
	
	xxx = LDAP_connector.new("host", 389, "user_dn", "password", ...)
	xxx["cn=Wallalat Hitelesito Kozpont (CA),o=Wallalat"] = entry



After the above ldap-add, this can be read from the slave ldap server:

slave_entry  =  {
		"cn"=>["Wallalat Hitelesito Kozpont (CA)"],
		"authorityRevocationList;binary"=>[""],
		"cACertificate;binary"=>["0\202\004+0\202\003\023\240\003\002\001\002\002\001\0010\r\006\t*\206H\206\367\r\001\001\004\005"],
		"sn"=>["Wallalat Hitelesito Kozpont (CA)"],
		"objectClass"=>["top", "person", "organizationalPerson", "inetOrgPerson", "certificationAuthority"],
		"certificateRevocationList;binary"=>["0\202\003G0\202\002/0\r\006\t*\206H\206\367\r\001\001\005\005"],
		"dn"=>["cn=Wallalat Hitelesito Kozpont (CA),o=Wallalat"]
	}



It is clear, that the "\000" cuts the string:

cACertificate;binary
		slave:  "0\202\004+0\202\003\023\240\003\002\001\002\002\001\0010\r\006\t*\206H\206\367\r\001\001\004\005"
		master: "0\202\004+0\202\003\023\240\003\002\001\002\002\001\0010\r\006\t*\206H\206\367\r\001\001\004\005\0000\201\2341\v0\t\006\003U\004\006\023\002HU1\0210\017\006\003U\004\010\023\010Budapest1\0210\017\006\003U\004\a\023\010Budapest1\0220\020\006\003U\004\n\023\tWallalat Rt.1+0)\006\003U\004\v\023\"Biztonsagi Szolgaltato Igazgatosag1&0$\006\003U\004\003\023\035Wallalat Hitelesito Kozpont (CA)0\036\027\r030605230000Z\027\r130606225959Z0\201\2341\v0\t\006\003U\004\006\023\002HU1\0210\017\006\003U\004\010\023\010Budapest1\0210\017\006\003U\004\a\023\010Budapest1\0220\020\006\003U\004\n\023\tWallalat Rt.1+0)\006\003U\004\v\023\"Biztonsagi Szolgaltato Igazgatosag1&0$\006\003U\004\003\023\035Wallalat Hitelesito Kozpont (CA)0\202\001\"0\r\006\t*\206H\206\367\r\001\001\001\005\000\003\202\001\017\0000\202\001\n\002\202\001\001\000\266x\034\264\271\v\3447\365\336\002'\234\270Wq\223\324\351tw\210~\354NjD\210?)f\323\030\237\025\343\370\305\271\201\302'\241\274\034f\e\212z\024\036\323\a\213\240a\311\207\203o\247$\035;\221\312p\0003\310\037\006\030\t\235\177\337\200ZP<F(q\252\202\226\352)j\310\275\230\377\212%\236U\e\231\254g@`h\233\225\f\025\36316.\23145\217\v\221\r8g\314\250\324\2047Vj\305\331\257x\202v\224\321\252\276uP\242.3'\333X0\232Q\363\344\241\341B\240\316\263\301\203\001\023\230\274\345<QV\236\372&%\325\245M\236\353j\001c\372(\211\345\247\227c\005\322m\356\212\037\205\272w\365G\022eM\231_a\217\203\246{\354\347\240\030S\226\252\226e\031\216\237\025k\330]\320g\317\300\231\252\377\f\336p\327\243\216v\223q\371\306t\337/[\254\206(\260\337\215#\251\202\341\002\003\001\000\001\243v0t0\021\006\t`\206H\001\206\370B\001\001\004\004\003\002\000\a0\017\006\003U\035\023\001\001\377\004\0050\003\001\001\3770\035\006\003U\035\016\004\026\004\024\t\313\t!\005\037\241\327\202M<\177\323\204\337\326\333^v\3560\037\006\003U\035#\004\0300\026\200\024\t\313\t!\005\037\241\327\202M<\177\323\204\337\326\333^v\3560\016\006\003U\035\017\001\001\377\004\004\003\002\001\2060\r\006\t*\206H\206\367\r\001\001\004\005\000\003\202\001\001\000cxR\360[\317\336\250\004uuD\365\355\220\326\010\252\274\0013 n\251rt\267\352\221.*h\222\263\333r\002C\234\210\232=\204\237\031\231&\302\021\356\370\226-p\263\207\332\206w\272M?\002\250\273\373\222\322\265\r\224\20765Y\0308\351\235~\231\231q\255K\242\2444\227\211n\341'\327\310\241\216\205r\342\246j0\010;\240\355\261\360\177\215g\010}\320\374\246\a\273{\262\214\321W\305\a\324\006\005\356\a\313\370\026\220E\"\036\0376.\377\2176\357\216\371?lZd'\261'!\277\245-\344\333\363-9Mpe\273\036\215yF|\344\233\341FI\315\311\276Z\232\315\034\361@\021m`IP\220\354\e\303\211\301\177\"gu$D\331\323\334\322E[B\275bX\261b\334\020\025\002i\333\222\317\252\3257\253Z^tb6B\323\345_\024\311)z\323F\001Z_5\002Z\264\246,X\352\265\005)"

certificateRevocationList;binary
		slave:  "0\202\003G0\202\002/0\r\006\t*\206H\206\367\r\001\001\005\005"
		master: "0\202\003G0\202\002/0\r\006\t*\206H\206\367\r\001\001\005\005\0000\201\2341\v0\t\006\003U\004\006\023\002HU1\0210\017\006\003U\004\010\023\010Budapest1\0210\017\006\003U\004\a\023\010Budapest1\0220\020\006\003U\004\n\023\tWallalat Rt.1+0)\006\003U\004\v\023\"Biztonsagi Szolgaltato Igazgatosag1&0$\006\003U\004\003\023\035Wallalat Hitelesito Kozpont (CA)\027\r031217132400Z\027\r031224132400Z0\202\001_0\022\002\001,\027\r031127133549Z0\022\002\001+\027\r031127133549Z0\023\002\002\000\340\027\r031110121009Z0\023\002\002\000\256\027\r030704091518Z0\023\002\002\000\362\027\r031216110128Z0\023\002\002\000\255\027\r030704091550Z0\023\002\002\000\361\027\r031216110128Z0\023\002\002\0014\027\r031216110229Z0\023\002\002\0013\027\r031216110229Z0\023\002\002\002\272\027\r031213140726Z0\023\002\002\000\222\027\r030703084632Z0\023\002\002\003q\027\r031217132359Z0\022\002\001a\027\r030710092644Z0\023\002\002\001]\027\r031110120643Z0\022\002\001`\027\r030710092630Z0\022\002\001\030\027\r030903115136Z0\022\002\001\027\027\r030610135654Z0\r\006\t*\206H\206\367\r\001\001\005\005\000\003\202\001\001\000J\a\343g6\006-\354:Fr\037\023of3yg\272\363\361\027\002m>\2356*j\0363\221',\e\232=:\006\035(<i\002q\377|\366u\240%t\346\214\205\267\207S\264\360Z\314\344\231<\367H_\323,\343Hj\220o\27407\236n\215\316\231v\031\307<\233\t\341\346\212\002G5.\003\333\3645\222\017\232|\340\200\207i\246\233w\207\003\270\340\026FCf\232\221\373\361*\306H\312p\234\006\177\305FA\351:jT\306\305>O\3613\350\263I2\340\2337\300qn#\nR\324\205[\263nI0t\204\255\242>\273q\017\346Te\362\262|x \340[\373]\354k\316\260IZ\265\200\231\321\276\240\230\3667\010tic\036\211\354\256\265t2\251/\a=\325\010\207=\027\255z71*\020O\225v5\212\343|\360+\223\216'\351m\272'\t*\226\314\220\206?*\346[\217\320\213\245\202"


What can I do?  Is it a bug or is there any other method to
ldap-add binary entries?


$ ruby -v
ruby 1.8.0 (2003-10-05) [i386-linux]
$ uname -a
Linux newage 2.4.22 #5 Sat Oct 18 07:00:13 UTC 2003 i686 GNU/Linux
$ dpkg -l libldap-ruby1.8 libldap2
ii  libldap-ruby1.8     0.8.0+20030912-1    OpenLDAP library binding for Ruby 1.8
ii  libldap2            2.1.22-1            OpenLDAP libraries
$ _

-- 
bSanyI


In This Thread

Prev Next