Initialize Struct from Hash951 (4/28/2011 5:00:24 PM) comp.lang.ruby I just want to check I've not missed something here. Is there a built-in way to initialize a Struct from a hash of key/value pairs? That is, can I shorten the following? K1 = Struct.new :foo, :bar module Fix... Brian
GSS_C_NO_NAME for desired_name?038 (12/31/2010 11:32:39 AM) comp.protocols.kerberos My understanding from previous postings is that a modern Kerberos app should just try decrypting the ticket with every key in its keytab until it finds one which works. On the openldap-technical mailing list, ... Brian
"Missing parameters in krb5.conf" for kadmin037 (12/30/2010 10:55:59 AM) comp.protocols.kerberos I'm using mit 1.8.1 under Ubuntu 10.04.1 server, and I have a very minimal krb5.conf: [libdefaults] default_realm = WS.NSRC.ORG dns_lookup_realm = true dns_lookup_kdc = true I have intentionally left ... Brian
Question about keytabs and ktutil021 (12/23/2010 6:53:50 PM) comp.protocols.kerberos Could someone please explain to me why there needs to be a separate entry in the keytab for each encryption type which might be encountered? Is the key somehow partially-processed before it is stored? In some... Brian
ruby-forum truncating threads?156 (10/14/2010 8:50:02 AM) comp.lang.ruby If you look at the forum index at http://www.ruby-forum.com/forum/ruby you'll see a thread titled "Camping or Merb", and it says the last post was 8 hrs ago by Mark T However if you follow the link to the thre... Brian
Using ksu/sudo with Kerberos039 (10/4/2010 3:45:04 PM) comp.protocols.kerberos I am wondering, what are people using instead of sudo in an Kerberized environment? So far I can see the following options: (1) create separate principals for each user who should have root access, e.g. ... Brian
What are the issues with dns_lookup_realm ?021 (10/4/2010 11:01:41 AM) comp.protocols.kerberos In the admin guide at http://web.mit.edu/Kerberos/krb5-1.6/krb5-1.6.3/doc/krb5-admin.html#Mapping-Hostnames-onto-Kerberos-Realms it says: "The second mechanism [for mapping hostnames onto Kerberos realms] work... Brian
Copying keys from one KDC to another?022 (9/30/2010 2:24:09 PM) comp.protocols.kerberos I have cross-realm authentication working, and one step of this required me to do the following on both KDCs: # kadmin.local addprinc krbtgt/BAR.EXAMPLE.COM@FOO.EXAMPLE.COM and then type the same (long and ... Brian
Documentation of auth_to_local048 (9/30/2010 11:16:52 AM) comp.protocols.kerberos I have been trying out Kerberos under CentOS 5.5, which claims to include MIT kerberos version 1.6.1: # rpm -qi krb5-server Name : krb5-server Relocations: (not relocatable) Version ... Brian
ruby-forum broken?457 (3/11/2010 9:23:46 AM) comp.lang.ruby www.ruby-forum.com is showing me "Application error", even for the home page. Anybody here know how to fix it? Thanks - Brian. $ curl -v http://www.ruby-forum.com/ * About to connect() to www.ruby-forum.com po... Brian
canonical/syntax-diagrams representation.1849 (5/16/2011 10:37:48 AM) comp.lang.ruby I started investigating ruby. It's very informal, which is NOT suitable for computing. The chatty syntax introduction that: IF can come before or after, as you like, and arguments can be bracketed or not, as yo... no.top.post(346)
Linux utility with reverse index facility?1562 (5/16/2011 10:38:00 AM) comp.os.linux.misc awk &stuff can "give me the the Nth element", but, without writing your own search-loop, what can "give me the index of the 'element' which is " ? I think it's called 'reverse indexing' ? == TIA. ... no.top.post(346)
Generating Functions in Ruby2738 (5/18/2011 1:44:36 PM) comp.lang.ruby Hi! I'm looking for a construction in Ruby to generate a (big) set of functions. I need these functions to be class methods and called by unique names since they are called via an external API. As an example,... andreas.lundgren.x(7)
Gambit REPL app for iPhone/iPod touch/iPad466 (5/19/2011 12:54:13 PM) comp.lang.ruby A version of the Gambit Scheme system for iPhone/iPod touch/iPad is now available on the Apple App Store: http://itunes.apple.com/us/app/gambit-repl/id434534076?mt=8&ls=1 "Gambit REPL" is a complete versio... feeley619(51)
replace lines in a file using hash key-value pairs356 (5/20/2011 7:12:12 AM) comp.lang.ruby I want to replace matching lines in a file (config.ini) based on a hash keys. The hash is returned by a yaml file here. Following is a code snippet that I have written. For each key-value pair in hash I want to... jmartiee(2)
Array.index with utf-8451 (5/21/2011 7:44:54 PM) comp.lang.ruby Hi. I have a problem. Windows7 I have an array with russian symbols. Then I want to find something element in it by Array.index(elem). In NetBeans 6.9.1 (it settings with utf-8) it works(write index in FixNu... b1368810(5)
Method that mutates object2241 (5/25/2011 7:22:46 PM) comp.lang.ruby Say we want to write a String method called clear that takes a given string and modifies that string to be equal to "". Ex. str = "string" we call str.clear and we get back "", not just "" printed to the scr... solomon.jas(12)
Net::Telnet into Net::SSH485 (5/26/2011 4:34:21 AM) comp.lang.ruby Hi, Does anyone know if there is way to run a NET::TELNET object in a NET::SSH session? I have a secure jump server that I want to have ruby ssh into then run a group of NET::Telnet object. For grabbing runni... djotter(4)
Hash .each and different action for each key753 (5/27/2011 7:44:20 PM) comp.lang.ruby Hello - I have a hash table of several items. What I would like to do is loop through the hash and do a different action based on each unique key. my_hash_table.each_pair do |k, v| # Call a method if a hash... storm8000(6)