Monday, July 23, 2007

More Kerberos Puzzlers

Ok so when trying to kerberos enable another machine for ssh connections things were almost working (getting offered kerberos for authentication by sshd) but connections were always failing with the following error message in the logs:
Jul 17 12:33:46 machine sshd[5020]: debug1: An invalid name was supplied\nHostn
ame cannot be canonicalized\n
Now after looking through pages of google it seemed to be that there was something wrong with the hostname but looking on other machines they had very similar setups and were working correctly. The reason for this message was that I think that kerberos was using the hostname for kerberos and couldn't find an entry for the hostname in DNS. The reason it couldn't find a hostname was the there wasn't a search entry in /etc/resolv.conf specifying the domain to look in, adding search oucs.ox.ac.uk to /etc/resolv.conf fixed the problem and everything worked fine.

Hopefully this post might help someone else from scratching hole in their head. But it would have been much easier to debug if the invalid hostname was logged in the message.

Wednesday, July 18, 2007

svn_load_dirs.pl and Ubuntu

I need to do some vendor drops with Subversion and the documentation seems to point to svn_load_dirs.pl as being the best place to start. So I install subversion and subversion-tools onto my Ubuntu system only to find that I don't seem to have a svn_load_dirs.pl installed. After a little bit of digging it seems that svn_load_dirs.pl was removed from the Debian package (which the Ubuntu one is based) due to licensing concerns although this isn't very clear as the changelog doesn't explain that this was one of the affected files. So it looks like I need to get myself a copy of the source distribution.