savannah-hackers-public
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Savannah-hackers-public] mercurial ssh access issues


From: Sylvain Beucler
Subject: Re: [Savannah-hackers-public] mercurial ssh access issues
Date: Tue, 22 Apr 2008 09:14:13 +0200
User-agent: Mutt/1.5.17+20080114 (2008-01-14)

Hi,

> >  In what cases did it happen, though? Initialy, in the disk image, user
> >  'admin' is member of 'siteadmin' (so he's entitled for a user account)
> >  and has no registered SSH key, so this should trigger the
> >  authorized_keys bug you reported, but AFAICS ~admin/.ssh/ did not
> >  contain a 'authorized_keys' file.
> 
> The problem was that the variable $authroized_keys was 0 (I guess
> because NULL was interpreted as 0, but I am not sure), which is
> different than '', so the check inside UserAddSSHKeys failed and a 0
> was added to authorized_keys file.

No, I mean, in what user context did this happen? How do you reproduce
the bug?

> If I am not wrong, checking for ($authorized_keys) instead of
> ($authorized_keys ne '') solves the problem with 0 and ''.

Yes, but it shouldn't be 0 in the first place; that's what I fixed.

> The problem is that hg-ssh uses the mercurial api, and I will not be
> able to do that in perl, so right now I don't really see how to solve
> this.

I hadn't noticed a first glance. What is 'dispatch' meant for?

Cheers,

-- 
Sylvain




reply via email to

[Prev in Thread] Current Thread [Next in Thread]