Search Results: "ean"

10 May 2006

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.

Jesus Climent: Permission to complain

On friday the 5th I started my trip to MX. I am assisting to Debconf 6 from the very first day, so that I can help the local team (at least with translations and such). I arrived to the airport early, so that I didnt have to suffer last minute stress if I see that the line is way too long and I have too little time to catch the plane. It all started fine (well, I forgot my keys at home when taking the dog for a walk, but I managed to reach my girlfriend and she came back to open the door for me). I must be the worst traveler in the world, since I seem to be causing only problems. Or maybe is that I question too many things that are the status quo and seem reasonable for other people. From the begining. It was check-in time, and the lady ask me about my hand luggage. I mentioned that since my friends were going to be waiting for me at the airport for almost 2 hours, I had prepared all my stuff so that I was not carrying anything dangerous in my two backpacks. Heck, I even left behind the regular tools that I carry with me, including the nail scissors,... The lady said it was not possible. "Sir, you can only carry 8 kilos of hand luggage". I looked around and saw people with lighter bags, but bulkier than mine. "Sorry, but, what is the reason? My luggage is smaller that the regular luggage, and I just need to get out asap". "Security reasons, sir". "Could you describe those reasons?". "... ... (surprise face) Security, sir. I would like to travel with my 20 kilos os luggage with me, sir". Yeah, sure. I am happy about that. I dont recall going away for such an extended period with such an small amount of things. When did all this madness start? Well, she did not manage to give me any reason why I could not take my things with me, but she got her sweet revenge. She put me on the back of the plane, with a guy who had at least 50k more on than I, although we both paid the same price for the ticket. I wonder where the security reasons are then, for those 50k... (Mental note: add to the travel checklist not to EVER forget deodorant and to take a shower before leaving home. Two showers. I had enough torture with the guy beside me...) The nice part of the flight was that for the first time i traveled on a Jet. Boy, is nice. Landed in Germany. The plane went to park on the backyard of the airport. We had a long 10min trip back to the terminal. The check-in for the plane to MX was a full hour set in advance, so that the HUGE amount of people that fits on one of those 747 had the time to show (for the 10th time) the passport. But looking aroung one wonders again where those security reasons not to let me carry my 8 kilos of luggage are: people around me had bought nearly their year salary on duty free stuff that wights more than 15k. Oh, boy, now I am confused. Is it so that someone has decided to add a rule in the name of security at some point after 11/9 and they forgot why? What difference does it make to get the luggage with 8 kilos from outside the terminal than from inside? As a side note, one can see that mexicans still keep much of the Spanish attitude. The speaker goes on, a man speaks in German and explains that people with children will board before anyone else. Nobody has understood anything, but they are already piling before the boarding gate. Once the man speaks in English, only the ones who dont understand English still await impatientily at the gate, mostly disturbing the check-in procedure for the flight, which will probably be delayed because of that. The second part of the trip was a bit more relaxed... I will skip the story about the looks-like-it-is-not-her-day flight attendant who could not understand a shit, and will only mention that when she served me a light coke and I handed her the empty can for dispossal, she gave me another full can with a face of "take-this-and-shut-up,dont-you-see-i-am-not-having-a-good-day?". I did not know Mexico was in the south hemisphere. At least that was the reason given for the satellite-linked internet only working the first three hours, although we were flying through Greenland, Canada, USA and Mexico's gulf for the 12h of flight, and Mexico IS on the (using the lonstanding critizised convention of not putting the map upside-down and say that is the right possition) north side. After landing it was a bit of rush, until I had to wait for my luggage, which of course came after waiting for almost 40min (Revenge of the Check-in Lady, take three... hi, if you read me). The people who create those inmigration forms MUST have short names. They have a big horizontal box with small vertical lines on the boxes to put your data trying to force you to put every character of your name in one small designated area. So there you go: "J E S U S _ D A N I E L _ C L I M E" That's right. Not even my first surname fits. Forget the second. This are the times that a friend of mine comes to mind: Enrique Garcia-Villarubia Gomez-Limon (Hi, if you read me). After all this I went out to find Amaya and h01ger waiting for me. We met Ganneff, Stockholm, Sam and Jeroen, and Damog, along with Agi, were coming right after picking up the van. We put Ganneff and Stockholm on a taxi and sent them to Oaxtepec, and left the airport for some dinner. Mexico is BIG, BIG, BIG. After driving for more than half an hour we got to a bridge from where you could see the city lights. And still, they were covering the horizon. HUGE. That realization is something I have not digested yet. Some local beers and tacos made the end of the night and we headed to Hector's place, where we were going to spend the night. From a not so negative point of view, the whole experience has been positive, and enlightening, to say it mildly. The food is mostly spicy. It could burn hell. Amaya is trying to get use to it by eating an insane amount of hot stuff but I refuse to do so. For the scared (hi, helix) I have not managed to get anything from the tap water. So nobody is dead, yet, although rumor has it that some are in comas. The net is here, although the roundtrip values are not very exciting. Mao has visited already the place, and said it is here to stay. Summary for the ones to come: this is HOT. I mean, really HOT. Forget your long jeans and bring shorts, even if you dont like to show your legs, sun screen cream, t-shirts, deodorant, swimming suit, and keep a bottle of water all the time with you. Food is served at a more sensible time than in Finland: 02:00h and 20:00h. See you in MX.

9 May 2006

Ross Burton: JhAutoBuild

Thanks to the excellent JhAutoBuild, I discovered a problem in my recent Sound Juicer refactoring that even a make distcheck didn't detect, causing a build failure. It's now confirmed to be fixed, as another machine has just done a clean build. Sweet. As thanks I'm contributing possibly the slowest build machine in the world: my LinkStation NAS box. It's a PowerPC running at about 100MHz, with 64MB of RAM. I hope I've got enough of the dependencies installed, you can follow it's rather slow progress here. 25 minutes in and it's still building the first module, libxml2. Go Melchett go! NP: Protection, Massive Attack

Matthew Garrett: 9 May 2006

The Apple Public Source License is a GPL-incompatible file-level copyleft license. That's mostly irrelevant - what actually matters is that both the FSF and OSI regard it as free or open source. So no problem, right? Except that the APSL hasn't really caught on. Freshmean lists two whole pieces of APSL software. Both of them are derived from Apple code released under the APSL. That is, nobody other than Apple has chosen to start a project based on APSL code. It's actually worse than that. Section 12.1(c) of the license automatically terminates your right to use or distribute the software if you sue Apple for patent infringement. Any patent infringement. Apple have infringed your new chip process patent? Better hope you don't rely on any APSL code. Apple's new TFT design copies yours? Better work on a replacement for Howl. Apple have stolen your entire motherboard design? Bad luck - using this code made it awkward for you to defend your IP. As a result of this, the only significant APSL project (Howl) has effectively been entirely replaced by Avahi. Both Gnome and KDE adopted Avahi once it became stable. In other words, the only community projects using APSL code rejected it the moment there was an alternative - and the reason for developing Avahi in the first place was that several projects refused to ship APSLed code. It's hard to claim that the APSL is regarded as an adequately free or open source license if almost nobody is willing to depend on code under it. In other words, the community has rejected the idea that it's really an open source license. But both OSI and the FSF lack any obvious mechanism of discussing decisions they've made. Both OSI and the FSF have claims to representing the community. How does the community let them know that their views are at odds with it?

Ross Burton: UKIP U-Turn

Amusing news yesterday, as it's revealed that Roger Knapman, the leader of UKIP (a single-issue party who dislikes the EU, and basically wants to reduce, or remove, immigration), hires Polish builders to work on his country mansion. The bonus punchline: the builders are hired through a Polish-registered company that specialises in hiring eastern Europeans to work in Britian, which is run by Mr Knapman's son.
Mr Knapman, an MEP and the UKIP's leader since 2002, recruited the workers through his son, whose company specialises in bringing foreign labour to Britain. The men have been at Mr Knapman's grade-II listed home in the village of Coryton, west Devon, for 11 months. They sleep dormitory-style in the attic. The company run by Mr Knapman's son claims that the imported labour costs up to 50 per cent less than British workers would. Mr Knapman, speaking to an undercover reporter from The Sunday Times, praised the men as "they work so much harder".
(from The Independent) NP: Boards of Pays-Bas, Poxfil

Robert Collins: 8 May 2006

Should Mock Objects be considered harmful? As an optimisation for test suites they are convenient, but they mean you are not testing against the something which can be verified to behave as the concrete interface is meant to, which can lead to Interface Skew.

Gerfried Fuchs: Arrived in Oaxtepec

... and already liking it. Though, first things first, some notes about the trip so far: The plane from vienna took off 50 minutes late due to weather reasons. It was quite nice, though, and I hope that some of the night pictures of town lightnings are usable. At least the delay reduced my waiting time at the madrid airport quite a bit. Which brings me to that airport. It's... HUGE! I mean... erm, it has signs telling people that it will take 25 minutes to the gate that the plane to mexico will be leaving. And that is including the trip on some underground train they have that it doesn't take you much longer than that... But appart from that, I arrived on the gate area before midnight so I was able to order some drink at the starbucks. At least some shop that knows how to let people enjoy the waiting time. :) The plane to mexico left on schedule at 1:50, so it was completely dark outside when we started. And almost the whole trip, up until about the last 20 minutes or so of the 13 hour flight, it was completely dark outside, because we were travelling ahead of the sun. So it wasn't too bad, being able to get some good sleep, at least as good as possible on a plane. Having arrived in mexio airport with a short delay and waiting a bit for my suitcase I finally met up with Frans Pop, because I was too scared of getting lost without any sense for the spanish language yet. We took one of the prepaid official taxis to the bus that will take us the rest of the trip. The taxi drive was really... well, interesting. It was the fastest trip I've ever seen in any car in city area, but the bad thing: I can't even tell you how fast we were at times because the speedometer was b0rked and displayed only zero all of the time. I guess taxi drivers are most the same all around the world, but this one definitely mastered the art. The bustrip wasn't anything notable, besides a bit tiresome due to the air in the bus, the partly monotonous vegetation outside and that I was sure to not be able to watch the movie to the end, besides that the sound was too silent. :) Finally arrived at Oaxtepec, which turned out that our hotel seems to be in some sort of recreation area, maybe even a bit of themepark... At least it has some rollercoasters, at least they showed them on the video. We'll see. I at least tried out the pool already, it's not even feeling cold for me. Not have met all the people yet that are rumoured to be around already, but I guess it might happen at lunch, which is expected soonish. Due to network not working though this blog post will have to wait until afterwards.

8 May 2006

Jacobo Tarr&#237;o Barreiro: The DFSG, a promise to our users

Every once in a while, there is an argument in the debian-legal mailing list: a particular package was rejected because its license didn’t comply with the DFSG, and someone asks for Debian to relax its interpretation of the DFSG. This package, they say, is very important and useful, and the Social Contract states that users are our priority, and, after all, the DFSG are only guidelines and can be skipped every once in a while. I don’t subscribe to this line of thinking. The DFSG are not only a set of “features” the license of a work must have to consider that work “free”: they are a list of promises to our users about what they will be able to do with everything they receive from us. For example, when DFSG#2 says that “the license must allow modifications and derived works, and must allow them to be distributed under the same terms as the license of the original software”, this means to our users: “everything you get from Debian you’ll be authorized to modify, and then give your modified copy to anyone under the same terms as when you received your copy”. That’s why when someone says “the DFSG are just guidelines, we can bypass them just for this very useful package” it would not be proper to actually do it, as we would not be living up to our own promises. This post was not triggered by any particular event; I just wanted to write something not containing a doctored photo or a joke :-)

7 May 2006

Brett Parker: Finally...

After much messing about - I've worked out how to use the MoinMoin parser in other python programs... this means that later (after I've slept) I can write a django template tag to unwiki things nicely, using MoinMoin's parser and so not invent another wiki parsing engine (hoorah!). All that I need to do now is reimplement the text_html formatter from MoinMoin in to something slightly more useable in other apps, then we'll be there. Yay! And indeed, hoopla! I could, of course, use the text_xml formatter instead and then just do an xslt transformation on it in python... actually, that might not be such a bad idea... hmmm. I'll have to think about it :)

6 May 2006

Martin F. Krafft: How they do it

Previously, I wondered how the Myanmar government blocks SSH on port 443. Sean Furey took the time to point out to me that sshd sends a banner when a client connects, before the SSL session is started. I forgot that. The Myanmar government, or rather Bagan Cybertech, which owns the Internet monopoly in the country (and is run by the government), uses Squid as a cache and content filter for port 80, so I thought they also use it on port 443 (as a CONNECT-proxy). But I cannot find of a way to make Squid prevent SSH-over-port-443, so they seem to be using some other content filter, which wouldn't be hard to write, after all. Sean proposes to tunnel SSH over SSL, using stunnel (or the like), and this seems like a cleaner approach than his other suggestion, which is to delay the banner. In both cases, however, client support is needed, and I cannot see how PuTTY (the traveller's friend) can do it. Update: of course, the delay approach does not need client support. Ryan Lovett pointed me to AjaxTerm and AnyTerm, which both establish SSH connections from the webserver, and use Ajax to push the session to the web browser, where it can be interactively used. I'll have to try that the next time! And I should finally get the DNS tunnel working again!

Christian Perrier: Poland turning right hardly

So, the right-wing Polish Prime Minister has nominated ultra-nationalists and anti-european ministers. One of these ministers has even sustained the actions of the Belarusian dictator, who is currently keeping his country as the last dictatorship in Europe. It seems that such issues are to be faced by most of the new members of the EU. Nationalism and fear of the unknown are pretty common issues around. Even us French people who are so good at giving lessons to others are constantly tempted with such close-minded attitude (remember last year's vote about the Constitution....most Debian friends know about my own opinion about our NO vote, even if it mostly came from supposedly left-wing minded people). I already fear what will happen for our presidential election in 2007. The ideas from the "Front National" are still creeping out and the right wing parties are still tempted to integrate them in their program. I hope that all my friends from the recent EU member countries won't lose hope. We will succeed in building a great european community and I'm confident we will go over these nationalist feelings. It will maybe need another generation but I know my kids will, some day, live in a federal country named Europe. PS: I do not post often on political issues. I posted on that one probably because it has unexpectedly hit my quite hard. I really *hate* all those ultra-nationalist (and ultra-catholic, in the polish case) people.

Pierre Habouzit: Bts-link gets Trac support

Trac support Thanks to the preliminary work from Sanghyeon Seo (aka sanxiyn) bts-link has now a Trac support[1]. Sadly, there is no way in Trac to follow Duplicates like I do for bugzilla. I think I'll try to develop some heuristics to guess it, but it's for later. A lot of improvements have been made since my post on d-d-a@: I want to polish some bits of the code, but that should be done soon, and contributions to create new backends will be welcome. Also note that any mail bts-link send, or receive from debbugs is archived on the bts-link-upstream list on alioth. What's next ? Edit : Bts-link has now Savane (Savannah bug trackers) and IssuZilla (openoffice and a couple of projects) support. Bts-link now supports sourceforge trackers.
Notes [1] meaning that Maintainers forwarding bugs to some tracs will suffer from the boostraping of bts-link on their bugs, but that does not hurt a lot ;) [2] why did they felt the compulsive need to apply s/bug/issue/g to the DTD of the bug xml output ???

5 May 2006

Norbert Tretkowski: I never wanted to do this

Usually I'll wait for an updated package in testing/unstable to fix bugs which also affects packages on backports.org. Now the time has come, where this is no longer possible for a package: xorg-x11. Why? We have 6.9 in testing (and on backports.org), and 7.0 in unstable. We'll see no more updates for the packages in testing, and backporting xorg-x11 7.0 to sarge is a pain in the ass. So we need to stick with 6.9 at least for a while, which primary means we can't just take a newer package from testing/unstable to fix (security related) bugs. Yesterday I uploaded xorg-x11 6.9.0.dfsg.1-5bpo2, which fixes CVE-2006-1526, a problem which led to a buffer overflow. A local attacker could exploit this to crash the X server or even execute arbitrary code with root privileges. The patch was taken from Ubuntu's security update.

4 May 2006

Jonathan McDowell: Xinit considered harmful.

Last year Black Cat decided they wanted to be more organised about offering dedicated servers. We already had a rackful but they were all in use. So we looked around for a suitable supplier. Originally Dell were the front runner; although they have a bad reputation we already had a bunch of machines from them and they'd been reasonable reliable, did serial BIOS properly and were competitively priced. Dom pointed out that having hotswap drive bays would be a really good plan; we'd already specced the machines with dual drives to enable RAID1, but if they were hotswap then we could easily move drives into a spare chassis in the event something went wrong, meaning the customer could be back up and running again quickly while we investigated the old machine. Good plan. This started to push Dell into ridiculous pricing, so we had a look around. We had some machines from Xinit, which again we hadn't had issues with. They were able to give us a price that wasn't that different to the non hotswap Dells, so we decided to go ahead with them. Bad move. On September 6th I informed them we wanted to go ahead. They'd quoted us a 10-14 working day lead time. As we didn't have a credit account already set up with them and it was likely to take a while to sort out we said we'd pay up front in the interest of getting things moving as quickly as possible. By September 22nd we still hadn't heard anything from them, like even confirmation that payment had been received and an ETA for delivery. So I contacted them, received confirmation they'd received full payment by September 13th and was told we should see systems by September 30th or October 3rd at worst. On September 26th they emailed to say there was a problem with their shipment and we'd be receiving a part shipment with the rest to follow. 4 servers were delivered on October 12th. It turned out none of them had been configured as requested (serial console, 9600 8n1, all set to auto power on after power failure), so I ended up having to plug a monitor and keyboard into each machine before connecting it up to the serial console server and power cycler. I chased Xinit again on 24th October. They'd claimed a 5th server was to be delivered before that and still hadn't told me anything about the remaining 15. I was not impressed. A new contact got back in touch and made all manner of apologies and promises about keeping in better contact and keeping me up to date with what was happening. Suffice to say this didn't happen, and calls to the main Xinit number were of no use as no one could help, and the mobile number I'd been given for this contact was unanswered more often than not. On 1st November we received another 11 machines. These were at least configured as requested, but during our testing we discovered they had been misassembled. 5 machines had CPU heatsinks put on incorrectly; visually misaligned and such that any load caused a machine crash. Very unimpressive from a company who supposedly does full burn in tests on machines before shipping them (and indeed used this as an excuse for not shipping us machines sooner on occasion). Further chasing didn't have much effect, but we eventually received the remaining servers on December 5th. Nearly 3 months after we initially placed the order. While Xinit have happily provided many platitudes they have failed to address the numerous failings in their organisation. They are appalling at responding to phone calls or email. They continuously fail to make good on any of the promises they make. They can't provide realistic delivery dates and don't have the decency to get in contact and let you know when they're going to miss them. They have proved unable to assembly machines to any level of competence; most of what they do is buy in chassis and fit parts to them - this is not complicated and yet they managed to get it wrong on several of the machines we ordered. We were promised a machine or two in compensation, but of course these never arrived. In addition, they're so badly organised that in the middle of March we received a spam from one of their sales people who was completely unaware we'd been customers of them! I cannot stress how much you should never consider using this company. I've spoken to others who've bought machines from them or had dealings with them and I know I'm not alone in this. Really. Don't do it. You'll regret it. I suspect it would have taken less of my time and energy to buy all the parts and assemble the machines myself. I wish I'd done so instead. This does leave me lacking a hardware supplier however. We're in the position of needing more machines, but given recent power pricing increases Xeon LVs (the new Sossaman cores) look like the way forward. Except no one appears to have any stock. And even if they do, how do I know I won't get my fingers burned again?

Kai Hendry: Back in Seoul

Springed Seoul Spring Seoul is looking much better than earlier. I am happy to be back from my travels in Beijing. The air is so much cleaner here in Seoul! I’ve just corrected some spelling mistakes and added some links to some appropriate pictures to my blog posts of my 10 days in Beijing, China. I’ve had my post-travel disaster, by washing a 2USD towel I had to buy because it’s cheaper to buy a new towel in China than actually wash it, with the rest of my clothes! AARRGGGHHHH! Wash separately I’m not sure how to fix this. I am just washing the clothes again and taking up prayer. Argh, it hasn’t helped. Since my last post I discovered Beef Noodles! They are so incredibly delicious. I had them in a pleasant artsy area just south of Tienanmen square by bike of course. Beef Noodles Last Tuesday I visited the Sina offices and gave a impromptu webpy presentation for the Beijing Python User Group. It went well and they asked me also to talk about Debian, as they were unfamiliar with it (to my surprise). Nice bunch of guys. Afterwards we went out for Taiwanese cuisine where you cook fresh food in a hot broth. Very good. They were all impressed I could drink three large bottles of beer in such a short space of time. I’ve been practicing and my throat was so dry from the air pollution in Beijing. DSCF1159.JPG I’ve also uploaded some videos of China I took with my sister’s camera. This is my favourite video with me riding along the top of Tiananmen.

3 May 2006

Matt Brown: Local Loop Unbundling

Wow! It’s out. The government has finally gained the courage to force Telecom to unbundle the local loop. Possibly the most interesting part of the whole announcement is the circumstances of it. Cabinet signed off on it this morning, by midday it had been leaked to Telecom and the Government was forced to scramble to announce it to everyone to avoid regulatory problems from the Sharemarket. No doubt whoever leaked it is feeling very very worried about their job security right now! The Cabinet briefing paper and minutes that accompanied the original press release are a bad quality scan and have obviously been prepared very quickly with hand written corrections to the page
numbers in the latter half of the document. The document has now been removed from the website, which I guess means that it is being touched up. Email me if you want a copy. [Update 1am: It’s now back, but has had information redacted presumably because it is meant to be commercially sensitive!] If you want the hard facts the following are good sources: So, is this a good a thing? I think it is in the long term, but the best part of today’s announcement is what goes alongside the LLU decision, not the LLU itself. More on that in a minute. The Cabinet paper (60 pages) appears to be a very thorough summary of the detailed analysis that has obviously been performed over the previous months. What I think is a fairly reasonable argument is made for why the action is needed and why the chosen course of action is the best option. I’m very impressed with David Cunliffe’s handling of the portfolio and I hope that he continues to work to the high standard that he’s set himself in the few short months since the election. He’s certainly going to face some opposition now! One thing to keep in mind in reading the paper and analysing the information available is that the Government’s hand was forced and there is probably a lot of implementation detail that they would have planned to release with the offical announcement on the 18th. So theres not much point in nit-picking details at this stage. The meat of the announcement is that the Government has chosen a two-stage approach to increase the regulation in the sector. The two stages are basically short and long term actions designed to be complementary. The long term action is the LLU itself and promotion of investment in alternative infrastructure. Because this will not be completed and ready to use in any shape or form until 2008 at the earliest there are also a series of measures to beef up the current wholesale offerings to tide us over and improve the market in the interim. What we get in the short-term: With prices and access terms for all these services to be set by the Commerce Commision, which is directed to ensure that the pricing is applied to protect investment incentives. There are a few juicy paragraphs that suggest the Government has considered opposition and is ready for it, such as 113 that warns that is Telecom does not invest quickly enough then full structural separation will be considered. However there are also suggestions (para 113) that Telecom is going to be thrown a bone in the form of a recalculated TSO that will provide higher levels of compensation to support the necessary network upgrades in rural areas. Rodney Hide and no doubt other right-wing groups are already bleating about the “stolen” property rights. But as I see it thats not the case. Telecom still owns the local loop. ISPs do not get to use the copper for free! They must pay Telecom a market rent. LLU is about regulating that price and forcing Telecom to offer the service where there is no incentive for Telecom to do otherwise given their vertically integrated monopoly. Secondly, Telecom was given a chance to avoid this scenario with the 2003 decision not to unbundle. At that point Telecom and its shareholders were warned that if they didn’t invest appropriately and provide a competitive wholesale market the situation would be reviewed. These warnings increased in frequency over the past year. Telecom cannot say that they were not warned. They may have massively misjudged the government, but they were warned. The simple fact is that over the last three years Telecom has played games and stalled as much as possible. In many ways I feel they are the authors of their own misfortune. Overall, I’m very happy and excited. Its a great time to be involved in the Internet industry in New Zealand. The government has churned out an excellent paper that shows that they have carefully analysed the issues and decide on a course of action that I think has an excellent chance of improving the state of broadband in New Zealand. LLU is not viewed as a magic bullet, other measures have been put in place to ease its introduction and investment incentives to build the next generation of access infrastructure are mentioned and regarded as important. The big risk to watch is how the Government goes with the implementation. It is a hugely complex peice of policy to implement, with lots of potential for mistake and they are fighting against a well resourced company with lots to loose. No doubt this will not be my last post on the issue.

Martin F. Krafft: Eventful times in Yangon

The last 18 hours have been quite eventful, including a mugging, an accident involving first aid, two more confrontations with the military, a visit to the university, and a monk drowning a fly. Fortunately, the heat has gone down quite a bit, the thermometre at the pharmacy now measuring 44 degrees in the shade. When I left the Internet cafe yesterday in the early afternoon, thick clouds covered the sky and it was starting to become quite bearable. Thus, I decided to visit Shwedagon Paya that afternoon, but not before getting a massage (for $3), which was duly necessary after the two hours of almost continuous typing during the hottest hours. I reached the pagoda sometime around 16:00 and almost got into a fight with the ticket office. Admission is $5, and since I am keeping my dollars until all the Kyats are spent, I was asked to pay 8000 Kyats. The current exchange rate (which fluctuates +/- 50 Kyats per day, it's very unstable) is 1450 Kyats to one dollar (it was 850 just one month ago), so I'd have to pay a little more than half a dollar more if I paid in local currency. The lady tried to tell me that she's paying 1550 or 1600 for $1, so I tried to tell her that she better find some other exchange place because she's being ripped off. After ten minutes of a heated discussion, I turned around to leave and she finally settled for 7500 Kyats. You may wonder why I make such a fuzz about 500 Kyats, but the reason is simply that the money goes to the government, which I don't want to support unless I have to. The pagoda itself is quite impressive, rising 100 metres into the sky from atop a sixty metre high. In as such, you can see this pagoda from many places in the city, unless enclosed by tall buildings that usually line the streets. It's said to contain the hairs of Buddha, from when he shaved his head to go and contemplate under the tree in the forest for six years at the age of 29 years, while in Bagan I was told that Buddha threw his hair into the sky, where it hovered and bring luck as long as it remains up there. I suppose he had to shave more than once, so the theories can both hold. I had a guide show me around, but I ended up knowing more about Myanmar history and Buddhism than him, so it was kind of a joke when he asked me for $5 afterwards. I gave him a lecture that he needs to announce his price beforehand and gave him $3, then left him protesting. Again, I am not here to rip people off, but I also won't pay $5 for a half hour tour, when the guide should instead be at home and reading books about the stuff he told. Still, I found the pagoda quite impressive, even though the overcast sky prevented me from seeing the sunset, for which it is famous among tourists. I would come back again at night to watch the supposedly beautiful lighting after dusk, and headed back to the city, with a number of detours thanks mostly to hopping on the wrong busses. As I mentioned before, "yes" apparently means "no" and "yes" and "I don't understand" and "thank you" and almost anything else, if used as a response by a not-so-fluent Burmese. For dinner, I treated myself to a somewhat expensive Sushi dinner, came back to the pagoda to watch the evening life of families and couples strolling clockwise around the stupa (resembling a little the evening family strolls in small Italian cities), found the lighting too bright and still boring, and made my way to the hotel, on foot because I only had a $20 note on me, which is useless when trying to pay for a taxi. ... and then I was mugged; not by some evil Burmese or one of the many muslims living in the city, but by two American rednecks, who apparently ran out of money (and it's very hard to get more without going across the Thai border) and were desperate enough to threaten me with a knife. I really didn't feel like a hero and prepared to hand over the $20 bill, when I saw a military truck drive up the road behind their backs, and remembered the Burmese call for help ("Keh-ba!"), which I shouted just as they were about to pass. The rednecks tried to make a run but had no chance (the military did not even think about using guns, they just called out to a police man at the end of the street, in the direction the rednecks were running). There was not much discussion, the two were loaded onto the truck, and the police officer then explained to me that those guys will be held in prison for two weeks before handed over to their embassy for further prosecution in the US. He asked me if I wanted to press charges against them, in which case they could get sentenced to up to ten years in prison in Myanmar for use of a weapon against civilians (with no right to a lawyer or help from the embassy), but I declined. Curiously, just in the morning, I had read a bit in a doctorate thesis on Myanmar prison life in the bookstore on Merchant Street at the corner of 38th, and it was obvious that the next two weeks for them were going to be hell on earth and enough of a punishment for their misdeed. While handing over my passport, I was assured that the "prisoners" were not going to find out my identity (and I doubt they'll find this blog), and with still somewhat shaky legs and a slight feeling of guilt, I climbed in the back of a police truck to take me to the hotel, wondering a little about how friendly and cool the police were towards foreigners. The next morning, I rose early to confirm my flight reservation and make some arrangements for tomorrow's departure, then headed off to the university by public bus in the hope to talk to the folks at the computer science department about Linux, and to hand over some of the Ubuntu CDs I have left. In Mandalay, it was not possible for me to set foot on the campus, and here in Yangon it would not have been much different, had I not met a zoology professor on the bus, who took me to the campus and refuted everyone's claim that I could not enter. Instead, she called the computer science head professor, who then explained to the officials that she had been waiting for me and would come and pick me up. While waiting, I witnessed a Burmese student just falling to the ground and ran over to help -- nobody else did. With the military folks chasing me (I had not thought about that), I didn't actually have to explain a lot when I knelt down next to the guy, obviously trying to help. The officials just stood close by and watched my every move, as I scrambled to remember my first aid training, diagnosed the guy with a heat stroke, or something in that direction (no sweat, very hot forehead, rapid pulse, white face, mild seizures, uncontrolled movement of the eyes, and delirious lulling), and gave orders to the bystanders to help me carry him to the shade, get water (I had some electrolyte rehydrating solution left), sugar, to have someone fan his head, and someone else call a doctor. Nobody understood anything of what I said until another student with very good English skills translated. Nevertheless, noone wanted to get a doctor because it was too expensive, so I offered to pay the charges and off they went, and I handed over 10'000 Kyats (more than enough) to the translating student with instructions. In the meantime, the computer science professor had arrived, and took me to her office, where I found out that the university is already using Red Hat to teach some of their courses, that she's the vice president of the Myanmar Computer Professionals Association, and that she's also a member of the Myanmar Linux Users' Group. She set up a meeting for me with the founder of this group tomorrow morning, and I proceeded to show off Ubuntu's Live CD to her, and to explain the benefits of Debian over Red Hat, which she understood very well and seemed delighted, because "dependency hell" has been a major problem for them in the past. I left her with half a dozen CDs and information on how she could obtain more, then had lunch with two of the teachers (where I witnessed a monk drowning a fly into his soup while laughing! Imagine that!), who wouldn't let me pay no matter how hard I tried. Upon leaving the campus for the city centre an hour or two later, I was informed that the guy had recovered and was okay, and the officials gave me 3000 Kyats, which I suppose must be the return money from the doctor. Another instance of honesty. I'll spend the afternoon strolling over the market to spend some of my excess Kyats (the rest of which will go to an orphanage), probably get another massage, and finally take in my last Burmese dinner, together with the Burmese white wine I had picked up at the vineyard on the way to Taunggyi, possibly accompanied by the Portuguese traveller I had met before in Bagan and Inle, who's now in Yangon as well... ... which is good, because I found a new argument pro beggars the other day, as I was resting at a street tea shop: I witnessed plenty of Burmese people handing money to a bunch of beggars on the other side of the street. One benefactor then came over to the tea shop, sat down at the table next to me, and answered my question as to why he just gave them money with a simple "because I have some at the moment, and they do not." To me, it could not have been more convincing, and by now, the only argument against supporting beggars is the one raised by the Portuguese: if begging is lucrative, people will give up their self-sufficieny in the countryside and come to live on the streets in the city, in the hope for more money. I'll be looking forward to tonight's discussion. Tomorrow's my day of departure (after meeting the Linux Users' Group founder at the MICT park on the way to the airport), and I'll be in Bangkok for 24 hours before going home. And already the thought of Bangkok makes me sad, because it surely was a great trip in this lovely country, even though I wasn't always happy with how it turned out. I'll be back.

Joshua Kwan: Broke the freaking LCD..

Dear Lazyweb, I (probably) created a huge hairline crack in my ThinkPad’s SXGA+ LCD. It is still functional but pixels are dying around the crack and it is bound to get worse. So I’ve been thinking about what to do. Two obvious ideas: Yes, I am ready to spend $350. But what’s going to work out best? Since lots of DDs have ThinkPads, I figure that this is one of the best forums to ask about it. At this point I’m leaning towards replacing the LCD and being done with it, since I lurves my T42.

Dirk Eddelbuettel: Beancounter minor bug fix release 0.8.7

Two contributed patches in this update: Jesse Chu noticed that split-adjustments did not cover close prices, and Doug Laidlaw provided an updated rpm.spec file. Version 0.8.7 is currently in Debian's incoming area, uploaded to CPAN and onto the beancounter page here, an announcement should appear on Freshmeat shortly.

Alexander Schmehl: I really LOVE it, this happens!

Right now I'm sitting in a train. Again. This morning I traveled from my home near Frankfurt main to Munich, where the office of my employer is. My train was delayed gain by a Personenschaden (translation would be something personal injury; non polite versions of that phrase would be someone kissed a train). I could stay about 3 hours in the office, which means I'll need to do a lot of work tomorrow, so I should be there early in the morning. But I'm not on my way to my favourite hotel in Munich or to aba (who's a nearly perfect host; his house just misses meals containing meat ;) I'm sitting in a train back to Frankfurt. And I can choose to either take a train back to Munich at 0:30 (or something similar), which will arrive between 05:00 and 06:00 AM (about 2 hours to early), or get up at 5:30 and take the first train back, and be at the office at around 10:00 (about two hours to late). Either way this won't be a funny night. And that it's my own fault doesn't make me feel any better. But I'm feeling okay. Because someone just recognized the logos on my notebook and my t-shirt and we had a nice conversation about open source. As you might imagine: I love it, if complete strange person recognize our project :)

Next.

Previous.