Search Results: "spa"

15 May 2006

Martin F. Krafft: Google foreign cookies

If I search for e.g. "AT&T" with Google, why in the world does Firefox ask me whether I want to store a cookie for the domain www.att.com? Update: James Andrewartha and Lionel Elie Mamane both told me about prefetching. That explains it. One day I'll figure out how to get Firefox to display the page source.

Martin F. Krafft: e2fs fun

When Biella came to me today with a Grub error 2 (disk not found), I really thought that the problem would be solved within a little bit, even though we couldn't boot from USB (the verbose "Boot error") and had no CD drive available. Joey Hess fortunately had a netboot setup, so we ended up with a shell before too long. ... but that was only the beginning of the fun. To make a long story short, we're now sitting and watching e2fsck reporting "page after page after page" of error messages (quote Micah), consisting mainly of error messages listing thousands (literally) of block numbers claimed by multiple inodes on a single line. We have not figured out what actually happened, but it's somewhere between a motherboard problem and filesystem corruption accumulating over several weeks (Biella said the machine has been acting flakey lately). We'll consider sending the image to Theodore for analysis. Reading this and seeing her root partition go from working to something probably no longer resembling a filesystem really settle the issue for me. Never ever will I touch ext2 or ext3 again; XFS forever!

14 May 2006

Gunnar Wolf: Thanks!

Debcamp was really stressing - It seemed we would not be able to get things to work for Debconf. And it would suck. I was quite down when I last wrote a blog entry - Not in mine, but in Debconf's. Things looked quite hellish, and I was _very_ annoyed - Well, I must say: Thanks to you all for the support. Mooch's request has been honored extensively, and it does help. Really.
Yesterday we had the Debian Day. About 50 Mexicans showed up, after we had to jump through some hoops with the Oaxtepec management people (thank you, thank you, you are great! Real dedication to your job, to make us feel welcome and important). The talks were interesting and well presented, and the people left happy - and some of them, left quite late. We had presence from at least one national newspaper (La Jornada and a magazine, Software Guru. Good.
Then, during the night, we were flooded by arriving foreigners. Boy, the hacklab was packed! Good thing we now will have both hacklabs running.
I have to thank most than to anybody else to my wife, Gaby a.k.a. Nadezhda - She has done all the ugly paperwork... Without her, we would all not be here. And later, I would probably be sitting in jail or something ;-)
Seems that the bugs are ironed out. Now I'll try to attend the "Sun and Debian: can we be friends?" round table.

Christian Perrier: Debconf - day 0

At least for my personal schedule, this is day 0 of Debconf. After being driven to Paris Orly airport by Elizabeth (my wife, dudes), I easily met with M. Adn ne Trojette and Nicolas Fran ois. A very quiet flight with about 30 people in a 200-seat plane lead us to Madrid Barajas (the flight was less quiet for Adn ne who has to suffer my constant babbling...."talks too much" as says my friend Konstantinos). This Barajas airport deserves a special mention, indeed. Its terminal 4 is incredibly H.U.G.E. More precisely it appears as huge because the two terminals are long straight buildings about 1.5 km long. As minutes were passing we easily met with Riku Voipio, Petr Rockai and Rapha l Hertzog. A few beers (for Riku, Nicolas and I) helped spending the couple hours of waiting time friendly and the French Mini-Cabal was even able to speak English (well, Frenglish...anyway). Nicolas and I then have been the local attraction but doing some hacking seated on the floor in the toilets (for caballeros, though) which is the only place with power sockets. Then we boarded in a huge A340 completely filled with people who, what a surprise, all speak Spanish. We finally met with Guido G nther whose flight had been delayed. So, finally, we will be 7 of us landng in that flight. That will make a really packed SUV cab. We're now seated, flying over Portugal and Galicia, the 4 of us French geeks hacking on our laptops (seems to me that other passengers are a bit staring at us...). Time to sleep and....see you in MEX for bubulle's blog of Debconf - day 1.

Aigars Mahinovs: Debconf6 day 0: Debian Day

While most DD's continued hacking in the hacklab, some of the Spanish speaking Debian people joined in with approximately 50-70 Mexican people for a set of Spanish language presentations about something. I have no idea what they were about as I do not speak Spanish (except manyana). The Debian Day was also the first thing that was webcasted live. The video team tested the software, tested the equipment and judging from the IRC responses at in the #debconf channel everything worked just fine. The video team also had a BOF session in the evening talking about how to improve the experience even better both for people watching the webcast and for people watching (and making) the recordings. I especially loved the exhibition from the pixelchica - wonderful pictures. A lot more people arrived today - many new faces, lots of social interaction happening even when the Internet is here. In the evening several crates of beer were acquired by the shadow beer team and the celebrations continued well into the night.

Adam Rosi-Kessel: Comcast: Human or Automaton?

I’m not the first person with a story about the sad state of Comcast. Since I’m certain I’m never actually going to get a True Human to read my email at Comcast, I’ll just post my brief exchange regarding Comcast’s SMTP servers here. Maybe some future archaeologist of the Internet will point to this exchange as early evidence of the End of Email: I posted the following to Comcast’s website feedback form — apparently there is no publicly advertised email address for communicating with Comcast:
Please forward this email to an engineer responsible for Comcast’s SMTP service. I run an ISP. Email to @comcast.net addresses often bounces with a “556 null byte in data” rejection connecting to gateway-s.comcast. I use postfix from Debian Sarge. This is not a problem on my end. There are numerous reports of this problem in newsgroups (just google ‘556 null byte in data’ ‘comcast’). The problem is independent of mail user agent and ISP. Note that this is *not* an issue of my users attempting to connect to the Comcast SMTP server themselves—I understand there is some issue where Comcast only accepts SMTP/SSL/TLS now for its users. This is a *delivery* problem. I have seen some speculation that Comcast’s SMTP servers are rejecting email with this error because of either large attachments or attachments with long filenames. I have seen the problem occur where the attachments are very small (on the order of 10K), but I haven’t ruled out the latter explanation. Please let me know if there is anything I can do to fix this problem. My users would like to be able to email Comcast customers.
Comcast’s response:
Dear Adam KESSEL, Thank you for taking the time to write us. Comcast is aggressive about protecting its’ subscribers from unwanted and unauthorized emails. In keeping with industry standards and best practices some recent changes to our filters have been made.If you are attempting to send emails to legitimate recipients in the Comcast.net domain, and receive an error message there are 3 likely reasons: 1. Your mail server has been identified as a source of Spam. Our mail filters have been updated to reject all mail from your server until the administrator of your mail server contacts us to request the server be removed. 2. The source of your message has a dynamic email address. Anyone attempting to email into the Comcast domain directly from a Dynamic IP address will receive the following error message: Comcast does not support the direct connection to its mail servers from residential IPs. Your mail should be sent to comcast.net users through your ISP. Please contact your ISP or mail administrator for more information. 3. Your mail server has an invalid rDNS value. What this means is that our mail filters authenticate each message by checking the rDNS value to ensure its’ a legitimate domain and yours wasnot. The error or “bounce” message you receive will indicate which reason the message was rejected. Youwill either be given the address to request Blacklist removal or you will be directed to our rDNS FAQpage. If a domain administrator feels that their IP range has been blocked in error or they would like information on required steps to be removed from our black list, they can contact us at: blacklist_comcastnet@cable.comcast.com If you need assistance setting up email through your ISP?s mail servers please visit their support pages or contact their support group. If you need information on the rDNS block, please visit: http://www.comcast.net/help/faq/index.jsp?faq=Email118405 Thank you for the opportunity to assist you. If you need further assistance with any of your Comcast services please reply to this email and we will be happy to assist you. Thank you again for choosing Comcast we appreciate your business. To visit our local support page including links to contact us via Live Chat, as well as many downloadable forms,and FAQ pages, please visit: http://www.comcast.com/nesupport/ Did you know that Comcast offers its customers a variety of free benefits? These include McAfee Antivirus, Firewall and Privacy software as well the Comcast tool bar that lets you take Comcast.net with you while you surf, and the Desktop Doctor to help you restore lost settings…plus much more, please visit http://www.comcast.net/downloads/ to see all of the extras that we provide. Sincerely,
Irene Comcast Electronic Customer Care - New England You can email us anytime by replying to this email or by clicking the “Contact Comcast” link found on the bottom of all www.Comcast.net and www.Comcast.com webpages. Our Electronic Customer Support teams are available to assist you 24 hours a day 7 days a week. **************************************************
The response contained in this message is intended for the addressee only and may vary from other ponses depending on geography, promotional campaigns or other factors. If you are not the intended recipient of this response, please delete this message. Any unauthorized use or dissemination of the information contained in this message is prohibited.
**************************************************
The last bit about “unauthorized use” is a nice touch. My follow-up:
The 556 null byte SMTP error is *not* a spam or blocking related rejection. My mail server is (1) not a source of spam (2) does not have a dynamic IP address (I assume below whenyou wrote “dynamic email address” you meant “dynamic IP address”); it is not a residential IP but rather a commercial ISP that I run; and (3) the mail server has a valid reverse DNS lookup. To clarify: not every email is being rejected from the ISP’s IP address. In fact, the same sender can send from my ISP multiple times to a Comcast subscriber, and most messages will get through. There appears to be a bug in your SMTP delivery server whereby certain triggering events cause a 556 null byte error. There is at least some evidence that one such triggering event is an email with an attachment with a long filename. This is not a spam filter issue. This is a Comcast SMTP configuration issue. As you will see if you google “‘556 null byte in data’ comcast” this is awidespread problem that is entirely unrelated to Comcast’s zealous efforts to block unsolicited email. Please forward my email to an engineer or technician. Thanks,
Adam
Finally, Comcast’s witty retort:
Dear Adam Rosi-Kessel, Thank you for taking the time to write us. Commercial Email Accounts We have to apologize, but at this time you must contact our Commercial Business support team by calling one of the following toll free numbers 888-824-8105 or 888-824-8155, 1-888-737-8361 Thank you for the opportunity to assist you. If you need further assistance with any of your Comcastservices please reply to this email and we will be happy to assist you. Thank you again for choosingComcast we appreciate your business. To visit our local support page including links to contact us via Live Chat, as well as many downloadable forms,and FAQ pages, please visit: http://www.comcast.com/nesupport/ Did you know that Comcast offers its customers a variety of free benefits? These include McAfee Antivirus, Firewall and Privacy software as well the Comcast tool bar that lets you take Comcast.net with you while you surf, and the Desktop Doctor to help you restore lost settings…plus much more, please visit http://www.comcast.net/downloads/ to see all of the extras that we provide. Sincerely,
Ivonne Comcast Electronic Customer Care - New England You can email us anytime by replying to this email or by clicking the “Contact Comcast” link found onthe bottom of all www.Comcast.net and www.Comcast.com webpages. Our Electronic Customer Support teams are available to assist you 24 hours a day 7 days a week. **************************************************
The response contained in this message is intended for the addressee only and may vary from other responses depending on geography, promotional campaigns or other factors. If you are not the intended recipient of this response, please delete this message. Any unauthorized use or dissemination of the information contained in this message is prohibited.
**************************************************
If anyone has interesting ideas about how to get past Comcast’s front lines, I would like to know.

Andree Leidenfrost: Mondo Rescue RAID Support at Last

CeBIT Australia ate substantial amounts of my time for the last two weeks (and almost killed both my feet and my voice but was still interesting and fun), so things took a little longer in Mondo Rescue land. But at last, here it is: mindi-1.07-3 and mondo-2.07-2 are in incoming and add the much overdue RAID support for Debian!

What it does (from the shiny new NEWS.Debian file):
This is the first release supporting RAID via mdadm. It is supposed to work with all RAID levels/varieties supported by mdadm and the kernel.

The following limitations and oddities apply:
  • All information about existing RAID arrays is drawn from /proc/mdstat, the contents of an mdadm.conf file is ignored.
  • Using RAID for the boot device is currently untested. The system will likely be unbootable after a restore.
  • Using LVM in conjunction with RAID is currently untested. Restore will likely fail.
  • Building a RAID5 array may appear to hang the system because of extended screen inactivity. However, disk activity should be high and eventually the restore will continue.
  • The synchronisation progress bar and the formatting progress bar may overwrite each other leaving the screen somewhat garbled. Not nice but harmless.
I have intensely tested this with various RAID levels, chunk sizes, parity algorithms, with and without spare disks and so forth. In particular, I've done successful full archive and restore runs using NFS as storage media for the following:
  • amd64, RAID1, kernel 2.6.16-1-amd64-k8 (2.6.16-12)
  • amd64, RAID5, kernel 2.6.16-1-amd64-k8 (2.6.16-12)
  • amd64, RAID10, kernel 2.6.16-1-amd64-k8 (2.6.16-12)
  • i386, no RAID, kernel 2.6.16-1-k7-smp (2.6.16-10)
I'll post the patch to #325877 for reference purposes and will also commit to upstream SVN shortly. Bruno was kind enough to review that patch and likes it, so there shouldn't be a problem (other than some fiddling because I have worked off the Debian 2.07-1 package and not tracked upstream).

Apart from fixing issues with the above, I plan the next steps to be:
  • support for RAID boot partitions
  • getting LVM to work
However, I think I'll do a fresh install of Sid AMD64 before that, to ensure that d-i created systems work with Mondo Rescue.
.

Also, I am experiencing a strange behaviour with busybox on AMD64 in that I get the following message on virtual terminals (and no prompt):

./sh: Cannot set tty process group (Operation not permitted)

when I run:

./openvt 8 ./sh

(where ./openvt and ./sh are both links to ./busybox)

This happens with 1.00 as well but in either case only on amd64, i386 is fine. Also, it only happens if NFS support is enabled for busybox mount.

13 May 2006

Ben Hutchings: Debconf video streaming: the details

You'll need to refer to the schedules for Debian Day (en espa ol) and the main conference. (Local time is GMT-5.) Point your media player at http://video.debconf.org:8000/tower.ogg or http://video.debconf.org:8000/hacklab.ogg depending on the session venue. We have multiple servers; use us.video.debconf.org or eu.video.debconf.org to select one nearer to you.

Scott James Remnant: Re: Gloomy outlook... not

Of course, the fact that he’s never let the fact that he’s not actually allowed into that lovely garden STOP HIM going into that garden is yet another matter altogether.

12 May 2006

MJ Ray: Road to Scheme

At the SPA CLisp talk today, Nick Levine mentioned the number of "road to lisp" posts out there. So, I'm writing this on the train home to describe why I'm a schemer. I started [continued...]

11 May 2006

Aigars Mahinovs: Debconf6 day -3: Lower you MTU and your expectations

Nothing much happened today, except:
  • Internet working _barely_ if you lower your MTU to 500 or something like that. The speed is around 250 bytes per second and the delay is over 3 seconds. Luckily we have a separate IP-over-a-man-with-a-USB-key for uploads to incoming;
  • The restaurant for the food has been changed to one closer to the hacklab and to the pool. They scared us a bit by having two starters before the actual main dish, which sparked exchanges like: "Do you want another main dish?" - "No, I want _a_ main dish!";
  • I got a bunch of blurry photos of a collibri eating a mango. It was just too jumpy. There are several wild mango trees in the area and they are a strong magnets for local birds;
  • There was a heroic guy climbing a huge mast without any safety to put an antenna there hoping to improve the Internet situation. It looked scary as the antenna mast itself is on top of a building which is on top of a hill, but it did not help;
  • Last minute dash of DD's to the pool just before it was closing at 18:00;
  • Lots of cutting, folding, laminating and sorting of all the conference stuff;
  • Some more Mao and a bit of watching of "The IT crowd".
Note: the Internet is up and looks stable as of noon of May 11th. Yay!

Jeff Bailey: Body Jam

I went to my first BodyJam class yesterday. Like all Les Mills programs, the first time totally sucks because you haven't a clue what's going on and know that you look like an idiot surrounded by people who've been coming for a couple years. Then you remember that if any of them have time to notice you looking like an idiot, then they're not working hard enough and get back to learning the choreography. [info]auzure_skies is a group fitness instructor, so I've done alot of these type of classes. BodyJam is a bit different than most in that the moves are pre-set, but *how* you move is not. If your spirit is taken over by Saturday Night Fever then your welcome to strut. If you're a standard aerobics baby, then there's no problem if you're just plodding through the moves.

Given the problems I'm having in my upper back, it'll probably be a couple weeks before I go back. I had a great time, but I'm a bit too sore this morning.

Jordi Mallach: The difference between Oaxtepec and Seville

So, I'm not going to Debconf. I suspected this long ago, when the dates were changed to early May, but you never know. During the last month, I've been finding daily pink notification alerts on my irssi window, with different people asking me to start swimming to Mexico, to book a last minute flight, to work overhours so I can justify leaving office for a whole week. In short, to POP THE TRUNK. But unfortunately, it doesn't look like I'll make it, being Thursday, and when I was planning a hypothetical departure on Saturday in the same flight as other Spanish Debian people. So, I've spent some time reading the blog entries that start flooding Planet Debian from people who are already attending Debcamp. NO NO NO! I can't believe there are even 10m diving platforms. There's talk at the office about me maybe having to go to some conference in Seville. jacobo and ana had an opinion on that.
12:06 < ana> jordi: dude, mexico es mucho mas interesante que sevilla
12:07 < jacobo> en vez de decirte "quillo" te dicen "cuate"
I still have 1 and a half days to take some wild decision and get there by surprise. That would be fair with azeem. :)

Ben Hutchings: Screaming video

At Debconf we'll be having talks in the Parliamentary Tower and some other sessions in a room by the hacklab. In each of these rooms there will be one small quiet computer capturing video from the camera over Firewire, connected by Ethernet to a second computer (preferably outside the room) with more disk space and processor power, which will record, transcode and stream the video to the outside world. On the first of these we just need to pipe dvgrab into netcat. On the second we need to netcat to a file and simultaneously feed that file into the transcoding and streaming software (ffmpeg2theora and oggfwd). Since our link to the Internet may not be reliable (and certainly isn't now) we expect that streaming may lag behind; that's where dvtail (which I mentioned previously) comes in. Having identified the various pieces of the video puzzle, last night I actually wrote the scripts to do this. I didn't have a chance to test them properly, so they didn't actually work. Today I packaged them, fixed various silly bugs, and tried them on some of the computers we plan to use. This was stalled for a stupidly long time by the lack of Internet access, since Ganneff had planned to create users on an LDAP server elsewhere and then use a local LDAP cache, rather than create them entirely locally. Eventually we ended up with user accounts created on each machine. Next problem: we attached a camera to a Powerbook G4 and got nothing but errors from the Firewire driver and dvgrab. We tried changing cameras, cables, kernel versions, but with no success. Changing the kernel itself was a problem without access to backports. I was cursing the air blue and banging my head against the wall in frustration. Finally we tried using different computers, and suddenly everything worked. I had missed one option to ffmpeg2theora, but once I added that we were able to stream across the LAN. Of course, that won't be of much use if we don't get the Internet connection working much better soon.

Ben Hutchings: Useful phrases in Latin American Spanish

Courtesy of my phrasebook:
EnglishSpanish
I'd like to get Internet accessQuisiera usar el Internet
brokenroto
tomorrowma ana
I noticed this morning that the book has a section on romance, going from "asking someone out" through "sex" to "problems". Suddenly this book became more interesting to my breakfast companions.
EnglishSpanish
I can't get it up - sorryLo siento, no puedo levantarla

10 May 2006

Ben Hutchings: DebCamp!

Nattie ([info]tea_cantata) and I arrived safely in Mexico and have been fairly busy since then, while not blocked by lack of network access. The Debian archive mirror prepared by Steve made it here safely and is now attached to our main server. Yay for USB2. Video team preparations are a bit behind schedule but we are just about to do a smoke test with cameras and computers (but no audio mixer yet). I have backported Icecast 2.3 and Ffmpeg2Theora to sarge, and written a "dvtail" program to read the DV recordings for streaming, so that problems with our Internet link won't break recording or result in a huge lag in the streams. I have also had to make and lay out a 100m power extension cable for a switch in the middle of a 200m stretch of network cable. This requiring fixing the crappy extension socket shut with a hammer, jumping^Wclimbing from rooftop to rooftop with cable, and then untangling it under a baking sun. I'm loving the spicy food here, though I think I can do without jelly as a "vegetarian" dessert (I think this mistake will not be repeated) and may have to ask for refritos sin queso (without cheese). The heat is bearable and my hat and sun cream have so far protected me from sun burn. The insects are horribly noisy, but one eventually tunes them out, like the noise of fans.

Jesus Climent: Please, flush your toilets.

This is a message sent to debconf-announce, pretending to be a small introduction of how you are to behave in MX, to avoid problems interacting with other people. The hacklab closes at 9:00 during debcamp and at 00:00 during debconf (although it might change now that food is served in the restaurant close to the hacklab). After that the only places that can be occupied are the pool area during the week and the backyard of the hotel buildings, where the backet fields are. Swimming after 6 is absolutelly forbidden, so dont even try to do it naked (you face being expelled from the whole debconf by the hotel). This place being a vacacional centre is occupied by families during the weekends (mostly) so we have to interact with non-geeks and non-grownups. Avoiding the just-learnt swear word in Spanish while having lunch has a bonus glass of water for breakfast. Talking about breakfast... Is not included in the food, so everybody has to find its way out. The same restaurant offers a set of 4 combinations which include juice, cafe, fried mashed beans and a selection of 4 differenf dishes on each (scrambled eggs mexican style; fried tortilla chips with tomato sauce, cream and chicken; ... The restaurant also permits ordering a la carte things. Please, ask a Spanish speaking person to help you if in trouble. For the more adventurous, there is a small market outside the Oaxtepec complex where you can have an incredible breakfast with local food and delicacies for some 40/50 pesos (3euro). Keep in mind that they use local ingredients and ways to prepare the food, which includes the use of tap water to wash the dishes, and frying the tortillas and gorditas in the same "plancha" (heated metal plate) where they cook the beef and other animal meat. Avoid getting into arguments about those details with the locals, since it cannot be changed. After few bad experiences we have been informed by the hotel staff that the toilet paper has to be dispossed in the plastic bins you will find beside the toilet bowls. Otherwise they will get stuck and you dont want 6 people on a room not to have a toilet to use, do you? It is hot and sunny, so do NOT forget sun protection creams. We have few cases of skin burns. Finally, remember that waiters expect and live of tips, so dont forget to leave a 10% of the total cost on the table when you leave.

Norbert Tretkowski: Telcel sucks

Telcel is one of the local mobile phone providers here in Mexico. When I called my parents after I arrived at Mexico City airport, everything worked fine. This morning I tried to call a colleague in Germany, but it didn't work. Instead a voice told me something in spanish. And only in spanish. Guess what... I don't speak spanish. Isn't it possible to detect that I'm using roaming and that my original mobile phone provider isn't from a spanish speaking country? Update: Amaya just told me at dinner that the problem is the "+" in the dialed number. The solution is to use "00" instead "+" for the country part of the number, e.g. "0049" instead "+49" when you want to call to germany. But this is not clear from the spanish message, even if you understsand spanish. It's just saying "bad number" or something.

Uwe Hermann: Debian packages release names - Reloaded

Upon popular request (my post was even featured on Debian Weekly News), I re-ran my previous query on the changelog files in Debian packages. This time, however, I didn't only retrieve 40 random package release names, but "all" of them, for unknown values of "all". I didn't analyze some of the files (missing permissions), and maybe I missed one or two because my query sucked, but I think I've got most of them. I ran a slightly more complicated query than last time, using the data from gluck:/org/lintian.debian.org/laboratory/. I have not the slightest idea how old the files in that archive are, but there's ca. 10.000 packages in there — more than enough, if you ask me. The results (78 KB) this time are in alphabetical order, and include the package names where the strings were found. There's a total of 1408 strings. Here are 20 randomly chosen strings, for some more fun:
gdb: * The "Ahhhhhhhhhhhhhhhhhh!" Release.
glibc: * The "Fuck Me Harder" release.
abiword: * The "Foolin' Myself" release.
opensc: * The "RTFM" release.
directory-administrator: * The "On Train" release
xchat: * The "Merry Christmas, mine beloved Xchat users!" release.
apache: * The "Yes, we know there is a new upstream release" upload.
mmm-mode: * The "But I'm Not Dead Yet!" Release
mozilla-firefox: * The "becoming more and more an iceweasel" release.
nano: * The "Marbella, ciudad hermanada con Benidorm" release.
thy: * The Empty Spaces' release.
glibc: * The "Chainsaw Psycho" release.
sam: * The Minime' release.
xchat: * The "Binary only" release.
tellico: * The "pbuider and buildds are not the same" package release
pingus: * The "All you pingus are belong to blendi" release
xchat: * The "Ok, wrong patch, excuse me guys :)" release.
cappuccino: * The "It's time for the upload" release
abiword: * The "Got A Good Thing Goin'" release.
firefox: * The "what he taketh, he giveth back" release.
I also created a small statistic this time. Here's the Top-20 packages (the ones with the most release names):
64 abiword
62 thy
41 xchat
35 glibc
31 shadow
31 abcde
28 menu
18 reportbug
18 firefox
17 fetchmail
15 ccze
14 tama
14 mozilla-firefox
12 nano
12 apache2
11 gaim
10 debconf
9 mailutils
9 lirc
9 geneweb
Feel free to grab the whole results file for more reading fun during boring hours of the day.
If you do any further processing or analysis of any kind with the data, please post a comment and let us all know ;-)

Wouter Verhelst: Kerberos II

So about two weeks ago I started playing with Kerberos. And I'm still not finished with it, kerberizing one service after the other. Really fun, that. Kerberizing a network protocol involves somehow sending the Kerberos ticket in-band with the rest of the conversation. This is not entirely defined by the Kerberos protocol, and indeed, different network protocols have come up with different ways of sending the Kerberos ticket to the service. So far, I've encountered SPNEGO for HTTP, GSSAPI for IMAP and SSH, and SASL for LDAP. It sounds like a complex mess, but it really isn't; in general, kerberizing a service involves three steps:
  1. Installing the Kerberos plugin (if any) for both the server and the client;
  2. Generating the service principal, and adding it to a/the keytab;
  3. Configuring the service so that it knows it can do Kerberos, and so that it knows how to act when a Kerberos request is sent
Yes, in the cases I've seen it's really that simple. Although I'm skipping step 0 here–reading the documentation. But I've done that for you already ;-) The hardest part is the initial setup. But even that isn't very hard, because the process is very well documented. For starters, install the krb5-doc package, and read the excellent /usr/share/doc/krb5-doc/README.KDC which explains just enough of the system to get you started. The rest will be explained to you through debconf and the like; and if you want more, the krb5-doc package also contains three info files which explain concepts and usage very well. There's an alternative implentation called heimdal, which I presume works similar; but I haven't tried it, so I don't have much details on that one. The process of installing krb5 is very straightforward; the only thing I'll let you know is that you should ensure that any host you're going to kerberize should have reverse name lookups configured and working correctly; otherwise, you're going to run into a bunch of serious problems. After the initial setup, you'll have a Kerberos realm, usually your domain name in upper case (GREP.BE in my case). You'll now want to set up principals for your users and principals for your hosts. Now, let me show you how to configure Kerberos for LDAP, PAM, HTTP, IMAP, and SSH:
PAM
By installing and using the libpam-krb5 package, you'll log in to kerberos and receive your TGT immediately at login time; the alternative would be having to use kinit (in the krb5-user package) afterwards. pam_krb5.so also takes care of destroying your tickets when you log out, so that you don't have to worry about that. This is very handy, but not really required; you could just use kinit all the time. Of course, using pam_krb5.so also means you have only one password for everything—and that is a very good argument to use it.
Anyway; our three steps:
  1. Installing the plugin
  2. As you've guessed, libpam-krb5 is the package you'll need. That, or the heimdal implementation.
  3. Generating and installing the service principal
  4. In the case of any service such as PAM that will give you a shell (thus, as we'll see later on, also SSH), the principal is supposed to be host/<hostname>@<REALM>. For instance, on rock.grep.be, the principal PAM will use is host/rock.grep.be@GREP.BE. We'll create it with kadmin (which can be done on any kerberized host):
    wouter@rock:~$ sudo kadmin
    Password for root/admin@GREP.BE:
    kadmin:  addprinc -randkey host/rock.grep.be@GREP.BE
    WARNING: no policy specified for host/rock.grep.be@GREP.BE; defaulting to no policy
    Principal "host/rock.grep.be@GREP.BE" created.
    kadmin:  ktadd host/rock.grep.be@GREP.BE
    Entry for principal host/rock.grep.be@GREP.BE with kvno 3, encryption type Triple DES cbc mode with HMAC/sha1 added to keytab WRFILE:/etc/krb5.keytab.
    Entry for principal host/rock.grep.be@GREP.BE with kvno 3, encryption type DES cbc mode with CRC-32 added to keytab WRFILE:/etc/krb5.keytab.
    kadmin:  q
    
    Generating the principal can really be done as any /admin user; but as the same isn't true for writing the keytab, I'm using sudo in the above example to become root.
  5. Configuring
  6. account	required	pam_krb5.so ignore_root
    auth	sufficient	pam_krb5.so ignore_root forwardable
    password optional	pam_krb5.so ignore_root
    session	optional	pam_krb5.so ignore_root
    
    After adding the above lines to the relevant files in /etc/pam.d, you should log off, then log on again, run 'klist', and marvel. If you add the lines to your passwd file as shown above, and don't remove the pam_unix.so lines, then local passwd-based authentication will still work. This can be nice if, for example, the Kerberos server is down, or you're working on a laptop that isn't always within reach of the Kerberos server. It doesn't do any harm; the worst that can happen is that at some point you happen to be on a network where there's a firewall which drops packets on the floor rather than sending you an ICMP port unreachable; in that case, you need to wait for the Kerberos login to time out, which takes half a minute or so (I haven't timed).
SSH
  1. Installation
  2. If you're running unstable, you don't need to do anything. The OpenSSH packages in unstable are all set to understand Kerberos. If, however, you're running stable, you'll want to replace your ssh package by the ssh-krb5 package, which is the regular SSH package plus some patches to enable GSSAPI (read: Kerberos) authentication.
  3. Service principal
  4. If you've done the PAM setup above, you're all set; SSH, being a service which gives you a shell, also uses the host/ service principal.
  5. Configuration
  6. Make sure both the server and the client have the GSSAPIAuthentication option enabled. After you've done so, restart the server.
IMAP
I'm using dovecot as my IMAP server, which has builtin support for GSSAPI authentication (at least in unstable; haven't checked stable in this regard).
  1. Installation
  2. As dovecot comes with everything compiled in, there is no need for installing extra packages.
  3. Service principal
  4. You'll need the imap/ principal (e.g., imap/rock.grep.be@GREP.BE). Note that the host name which is found by doing a reverse lookup on the ip of the server is what counts, not the name of the server as you're using it (so not, e.g., imap/imap.grep.be@GREP.BE)
  5. Configuration
  6. Edit your dovecot.conf, and find the line that starts with "mechanisms" in the auth default stanza. Make sure it contains at least the word gssapi. Restart dovecot. I haven't found a Free (as in speech) IMAP client that supports GSSAPI authentication. My client of choice, offlineimap, doesn't seem to support it; mutt doesn't either (unless I'm missing something); and while thunderbird in unstable is supposed to support it, I haven't been able to configure it correctly yet. Probably me. I have, however, been able to verify that it works by using a non-free software package. Obviously, this isn't good enough. In addition, I found that horde and imp don't like an IMAP server that has GSSAPI enabled if they don't, while enabling GSSAPI in horde requires a PHP extension that isn't packaged in Debian. So I've disabled it for the time being. Stay tuned.
LDAP
  1. Installation
  2. LDAP requires uses SASL for authentication, which doesn't have GSSAPI modules in the default package; for those, you need the libsasl2-modules-gssapi-heimdal package. Attentive readers will have noticed that this package contains the string heimdal in it, rather than krb5, and that this is not the same implementation that I've been using previously. Yes, true. But since there's no libsasl2-modules-gssapi-krb5, and since Kerberos is, after all, a well-defined protocol, this is not an issue—except in that you need a bit more diskspace for the additional libraries. Note that the modules have to be installed on both the client and the server.
  3. Service principal
  4. You need a service principal that starts with ldap/, obviously followed by the hostname and the realm.
  5. Configuration
  6. For those people whom you want to allow to authenticate themselves using Kerberos, make sure they have ' SASL <principal>' in their userPassword attribute set (e.g., I have userPassword: SASL wouter@GREP.BE). You can have that in addition to a regular encrypted password; the userPassword attribute is a multi-value attribute. Now if you use ldapsearch or anything similar, it will try to negotiate GSSAPI authentication as the SASL mechanism. If it doesn't do so, you can force it by adding -Y GSSAPI to the command line.
HTTP
  1. Installation
  2. You need the libapache-mod-auth-kerb or libapache2-mod-auth-kerb modules on the server. For the client, you need a browser which has SPNEGO support; Konqueror and Firefox are two examples of browsers that do.
  3. Service principal.
  4. The prefix here should be HTTP/. That's right, in upper case, contrary to previous examples where this wasn't the case. HTTP is also different in that apache usually isn't running as root. This is a good thing; however, it does mean that the kerberos authentication module is unable to read /etc/krb5.keytab. You'll have to write the service principal to a different keytab for apache; I've used the -k option to the ktadd command in kadmin to specify the keytab as /etc/apache2/keytab; I'll assume you do the same.
  5. Configuration
  6. Something like this, on the server:
    <Location /some/URL>
    	AuthType Kerberos
    	KrbMethodNegotiate on
    	Require valid-user
    	Krb5Keytab /etc/apache2/keytab
    </Location>
    
    This will enable SPNEGO authentication; and if SPNEGO authentication fails for some reason (for example, because the used browser doesn't support SPNEGO, or because the user isn't logged in to Kerberos), it will fall back to Basic Authentication. While the latter is usually a good idea, it's less of a good idea if you're not using SSL, since then your password would be sent over the wire in cleartext. Luckily, the basic authentication can be switched off, by using KrbMethodK5Passwd off. If you go to my webserver logs, you'll see that you'll get a 401 right away, while the HTTPS version of the same allows you to try to log in by using basic authentication. On the client side, if you're using Firefox, you need to go to about:config, and set the option network.negotiate-auth.trusted-uris to a string that will identify the servers that may do SPNEGO authentication in your realm. In my case, I've set it to grep.be. For konqueror, doing something similar is not required—it'll do SPNEGO authentication out of the box.
So, that's what I've got set up on my network currently. Next on the list: NFS4 kerberos auth (requires updated nfs utilities, which aren't in Debian yet because of issues with NFS2, IIRC), PostgreSQL (it does seem to support it), and finding out if or how I can create principals can't be used for one authentication scheme or the other. Phew, that was a long post. I'll stop now.

Next.

Previous.