Re: [Mageia-dev] Error message while trying checkout a package?with mgarepo

2012-02-13 Thread Dimitrios Glentadakis
Στις 13 Φεβρουαρίου 2012 1:00 μ.μ., ο χρήστης Buchan Milne <
bgmi...@staff.telkomsa.net> έγραψε:

> On Saturday, 11 February 2012 16:22:52 Dimitrios Glentadakis wrote:
> > Στις Σάββατο 11 Φεβρουάριος 2012 15:00:42 nicolas vigier γράψατε:
> > > On Sat, 11 Feb 2012, Dimitrios Glentadakis wrote:
> > > > Στις Σάββατο 11 Φεβρουάριος 2012 14:41:59 nicolas vigier γράψατε:
> > > > > On Sat, 11 Feb 2012, Dimitrios Glentadakis wrote:
> > > > > > What could be wrong ?
> > > > >
> > > > > Did you try to do a checkout on packages svn repository without
> > > > > mgarepo to see if that works ?
> > > > >
> > > > > svn co svn+ssh://svn.mageia.org/svn/packages/cauldron/null/current
> > > >
> > > > it works, it gave me this:
> > > >
> > > > [dglent@localhost mgarepo]$ svn co
> > > > svn+ssh://svn.mageia.org/svn/packages/cauldron/null/currentPassword:
> > >
> > > > Password:
> > > It shouldn't ask you for password if you uploaded your ssh key on
> > > https://identity.mageia.org/
> >
> > in https://identity.mageia.org/ i choose sshPublicKey i add my key , i
> clic
> > ok but there is no field added
>
> Hmm, works for me on my unprivileged test account.
>
> Was any error message displayed?
>
> > - (also i did it a second time and i did
> > nt see that was the field Mobile, and i added in the mobile field. Now
> > impossible to delete it. I have the message page not fount) -
>
> The sshPublicKey attribute is currently present, with this value:
> ssh-dss
>
> B3NzaC1kc3MAAACBALDU48OvlZuu+bgoFkNFrFX9IFm/4NfS2ykhjSYzcqOjPICmPBA8E6ilNqin11Hr5S/YdN74W9VhqLU2GQMRIwj9lnPnjUkmsDZPTvGrqB7EDGPuEGJ49z/ftCaIlUxO9nRa+6A4CViMpFVK+XppDfwyDFYT6F4/E10kHw3wAg5bFQCCJ3+u8ioy2BqJoljV9OhzcCctKwAAAIBuxwSP+CUZrzMSe1LN5Bd2W1Jlam0ctCn8Bti8XNelyXCkaFUhqz1m3f/NLMYhldQVICGYeeRPELb/9HWLHLIihXODta4xTgVauSokJduusBQxfZ5S7jJC53eQmfs/98QbGAuWfWJO0Y4BnHc3rSpmL/E8lbVMJ6gTlECA3F9fqIBzR5dMT+v1znesQasj7t4XpB7gFUVSZOO17Fm225i40Bj0viDl3m+q9oMXhxOw3lbuGClKAaD1CnGjR+mGRG+/blUI6yusmVkBn+P0zONGInSftwwzi3HMjGoacbgVXGa5qvEXQcfLlXTRii74Xzna8Xx54TdG2rygi2efzDPmBw==
> dglent@localhost
>
> I have deleted the 'mobile' attribute on your account.
>
> I tested with my unprivileged test account, and I could add and remove
> 'mobile' without problems. However, I could not remove an existing
> sshPublicKey, in which case I get the 'Page not found' message. But I could
> change the value of the existing sshPublicKey value.
>
> > i tried again to see if the key was applied somehow in the background of
> > the identity.mageia.org but it asks me always for a password
>
> You may want to provide output of ssh-add -l, and 'ssh -v svn.mageia.org'
> ?
>
> Regards,
> Buchan
>


After the modification that Michael did, my key was accepted
And the mobile field issue is ok now, after used the update button instead
of add/delete

* i think you did nt have a previous message which i said that the both
fields issues are solved



-- 
Dimitrios Glentadakis


Re: [Mageia-dev] Error message while trying checkout a package?with mgarepo

2012-02-13 Thread Guillaume Rousse

Le 13/02/2012 13:00, Buchan Milne a écrit :

You may want to provide output of ssh-add -l, and 'ssh -v svn.mageia.org' ?
Which ought to be given as first debugging advice: as long as direct ssh 
access to svn.mageia.org doesn't result in an explicit 'you are not 
allowed to log in' message, ssh authentication doesn't work. Testing 
through another software layer, such as subversion or mgarepo, is 
perfectly useless in this case.


And if the goal is to make sure key-based authentication is used, 
password authentication could perfectly get disabled server-side.

--
BOFH excuse #89:

Electromagnetic energy loss


Re: [Mageia-dev] Error message while trying checkout a package?with mgarepo

2012-02-13 Thread Buchan Milne
On Saturday, 11 February 2012 16:22:52 Dimitrios Glentadakis wrote:
> Στις Σάββατο 11 Φεβρουάριος 2012 15:00:42 nicolas vigier γράψατε:
> > On Sat, 11 Feb 2012, Dimitrios Glentadakis wrote:
> > > Στις Σάββατο 11 Φεβρουάριος 2012 14:41:59 nicolas vigier γράψατε:
> > > > On Sat, 11 Feb 2012, Dimitrios Glentadakis wrote:
> > > > > What could be wrong ?
> > > > 
> > > > Did you try to do a checkout on packages svn repository without
> > > > mgarepo to see if that works ?
> > > > 
> > > > svn co svn+ssh://svn.mageia.org/svn/packages/cauldron/null/current
> > > 
> > > it works, it gave me this:
> > > 
> > > [dglent@localhost mgarepo]$ svn co
> > > svn+ssh://svn.mageia.org/svn/packages/cauldron/null/current Password:
> > 
> > > Password:
> > It shouldn't ask you for password if you uploaded your ssh key on
> > https://identity.mageia.org/
> 
> in https://identity.mageia.org/ i choose sshPublicKey i add my key , i clic
> ok but there is no field added

Hmm, works for me on my unprivileged test account.

Was any error message displayed?

> - (also i did it a second time and i did
> nt see that was the field Mobile, and i added in the mobile field. Now
> impossible to delete it. I have the message page not fount) -

The sshPublicKey attribute is currently present, with this value:
ssh-dss 
B3NzaC1kc3MAAACBALDU48OvlZuu+bgoFkNFrFX9IFm/4NfS2ykhjSYzcqOjPICmPBA8E6ilNqin11Hr5S/YdN74W9VhqLU2GQMRIwj9lnPnjUkmsDZPTvGrqB7EDGPuEGJ49z/ftCaIlUxO9nRa+6A4CViMpFVK+XppDfwyDFYT6F4/E10kHw3wAg5bFQCCJ3+u8ioy2BqJoljV9OhzcCctKwAAAIBuxwSP+CUZrzMSe1LN5Bd2W1Jlam0ctCn8Bti8XNelyXCkaFUhqz1m3f/NLMYhldQVICGYeeRPELb/9HWLHLIihXODta4xTgVauSokJduusBQxfZ5S7jJC53eQmfs/98QbGAuWfWJO0Y4BnHc3rSpmL/E8lbVMJ6gTlECA3F9fqIBzR5dMT+v1znesQasj7t4XpB7gFUVSZOO17Fm225i40Bj0viDl3m+q9oMXhxOw3lbuGClKAaD1CnGjR+mGRG+/blUI6yusmVkBn+P0zONGInSftwwzi3HMjGoacbgVXGa5qvEXQcfLlXTRii74Xzna8Xx54TdG2rygi2efzDPmBw==
 
dglent@localhost

I have deleted the 'mobile' attribute on your account.

I tested with my unprivileged test account, and I could add and remove 
'mobile' without problems. However, I could not remove an existing 
sshPublicKey, in which case I get the 'Page not found' message. But I could 
change the value of the existing sshPublicKey value.

> i tried again to see if the key was applied somehow in the background of
> the identity.mageia.org but it asks me always for a password

You may want to provide output of ssh-add -l, and 'ssh -v svn.mageia.org' ?

Regards,
Buchan


Re: [Mageia-dev] Error message while trying checkout a package?with mgarepo

2012-02-12 Thread Dimitrios Glentadakis
Στις Κυριακή 12 Φεβρουάριος 2012 13:09:53 Michael Scherer γράψατε:
> > Something that i did before too but as it did nt work i tried multiple 
> > times (also once i tried to added from 
> > AAAxx and this is what you saw in the logs probably ) and once i forgot to 
> > change the filed label and i added 
> > to the mobile filed. Actually i cannot delete this field (mobile) either, i 
> > have the error message "page not found"
> 
> I will remove it from ldap.

It is ok now (i click on update, - instead of "add" , "delete" buttons - , 
after having modify the field )

-- 
Dimitrios Glentadakis


Re: [Mageia-dev] Error message while trying checkout a package?with mgarepo

2012-02-12 Thread Dimitrios Glentadakis
Στις Κυριακή 12 Φεβρουάριος 2012 13:09:53 Michael Scherer γράψατε:
> Le dimanche 12 février 2012 à 12:55 +0100, Dimitrios Glentadakis a
> écrit :
> > Στις Κυριακή 12 Φεβρουάριος 2012 12:47:00 Michael Scherer γράψατε:
> > > Le dimanche 12 février 2012 à 11:38 +0100, Dimitrios Glentadakis a
> > > écrit :
> >>
> > > > 
> > > > i tried it again without success.  
> > > 
> > > What did you tried exactly ?
> > > 
> > > ( cause I see that something looking like a ssh key ended in the mobile
> > > ldap field, but I also see the same constraint violation on sshKey that
> > > I save earlier, but i am rather sure to have tested the change and seen
> > > people able to upload keys before )
> > > 
> > > 
> > 
> > i added the complete line of the file ~/.ssh/id_dsa.pub
> > it starts with : ssh-dss B3NzaC1kc3MAAACBALDU4.ygi2efzDPmBw== 
> > dglent@localhost
> 
> Ok, so openssh use ssh-dss for dsa key, and ssh-rsa for rsa keys ( how
> intuitive ). The regexp I used to validate key was wrong, can you try
> again a few minute, just the time that I fix this ?

ok, 'i ve just done a successful checkout with mgarepo

Thanks


> 
> > 
> > Something that i did before too but as it did nt work i tried multiple 
> > times (also once i tried to added from 
> > AAAxx and this is what you saw in the logs probably ) and once i forgot to 
> > change the filed label and i added 
> > to the mobile filed. Actually i cannot delete this field (mobile) either, i 
> > have the error message "page not found"
> 
> I will remove it from ldap.
> 

-- 
Dimitrios Glentadakis


Re: [Mageia-dev] Error message while trying checkout a package?with mgarepo

2012-02-12 Thread Michael Scherer
Le dimanche 12 février 2012 à 12:55 +0100, Dimitrios Glentadakis a
écrit :
> Στις Κυριακή 12 Φεβρουάριος 2012 12:47:00 Michael Scherer γράψατε:
> > Le dimanche 12 février 2012 à 11:38 +0100, Dimitrios Glentadakis a
> > écrit :
>>
> > > 
> > > i tried it again without success.  
> > 
> > What did you tried exactly ?
> > 
> > ( cause I see that something looking like a ssh key ended in the mobile
> > ldap field, but I also see the same constraint violation on sshKey that
> > I save earlier, but i am rather sure to have tested the change and seen
> > people able to upload keys before )
> > 
> > 
> 
> i added the complete line of the file ~/.ssh/id_dsa.pub
> it starts with : ssh-dss B3NzaC1kc3MAAACBALDU4.ygi2efzDPmBw== 
> dglent@localhost

Ok, so openssh use ssh-dss for dsa key, and ssh-rsa for rsa keys ( how
intuitive ). The regexp I used to validate key was wrong, can you try
again a few minute, just the time that I fix this ?

> 
> Something that i did before too but as it did nt work i tried multiple times 
> (also once i tried to added from 
> AAAxx and this is what you saw in the logs probably ) and once i forgot to 
> change the filed label and i added 
> to the mobile filed. Actually i cannot delete this field (mobile) either, i 
> have the error message "page not found"

I will remove it from ldap.
-- 
Michael Scherer



Re: [Mageia-dev] Error message while trying checkout a package?with mgarepo

2012-02-12 Thread Dimitrios Glentadakis
Στις Κυριακή 12 Φεβρουάριος 2012 12:47:00 Michael Scherer γράψατε:
> Le dimanche 12 février 2012 à 11:38 +0100, Dimitrios Glentadakis a
> écrit :
> > Στις Κυριακή 12 Φεβρουάριος 2012 11:16:26 Michael Scherer γράψατε:
> > > Le samedi 11 février 2012 à 15:22 +0100, Dimitrios Glentadakis a écrit :
> > > > Στις Σάββατο 11 Φεβρουάριος 2012 15:00:42 nicolas vigier γράψατε:
> > > > > On Sat, 11 Feb 2012, Dimitrios Glentadakis wrote:
> > > > > 
> > > > > > Στις Σάββατο 11 Φεβρουάριος 2012 14:41:59 nicolas vigier γράψατε:
> > > > > > > On Sat, 11 Feb 2012, Dimitrios Glentadakis wrote:
> > > > > > > 
> > > > > > > > 
> > > > > > > > What could be wrong ?
> > > > > > > 
> > > > > > > Did you try to do a checkout on packages svn repository without 
> > > > > > > mgarepo
> > > > > > > to see if that works ?
> > > > > > > 
> > > > > > > svn co svn+ssh://svn.mageia.org/svn/packages/cauldron/null/current
> > > > > > > 
> > > > > > > 
> > > > > > 
> > > > > > 
> > > > > > it works, it gave me this:
> > > > > > 
> > > > > > [dglent@localhost mgarepo]$ svn co 
> > > > > > svn+ssh://svn.mageia.org/svn/packages/cauldron/null/current
> > > > > > Password:
> > > > > > Password:
> > > > > 
> > > > > It shouldn't ask you for password if you uploaded your ssh key on
> > > > > https://identity.mageia.org/
> > > > > 
> > > > > 
> > > > 
> > > > in https://identity.mageia.org/ i choose sshPublicKey i add my key , i 
> > > > clic ok but there is no field added  - (also i did it a second time and 
> > > > i did nt see that was the field Mobile, and i added in the mobile 
> > > > field. Now impossible to delete it. I have the message page not fount) 
> > > > - 
> > > 
> > > >From ldap.log :
> > > 
> > > Feb 11 15:03:50 valstar slapd[2240]: conn=1159066 op=3 MOD
> > > dn="uid=dglent,ou=People,dc=mageia,dc=org"
> > > Feb 11 15:03:50 valstar slapd[2240]: conn=1159066 op=3 MOD
> > > attr=sshPublicKey
> > > Feb 11 15:03:50 valstar slapd[2240]: conn=1159066 op=3 RESULT tag=103
> > > err=19 text=modify breaks constraint on sshPublicKey
> > > 
> > > Are you sure that you used the complete 
> > > It seems that the key that was uploaded was not in the good format. Can
> > > you make sure that you used the complete ssh key, ie the whole line, not
> > > just the binary encoded blurb in the middle. Without the beginning,
> > > ( ie ssh-rsa/ssh-dsa ), there is no way it would work, since openssh
> > > cannot guess the format and the algo to use.
> > > 
> > > So try again by using the complete line : 
> > > ssh-rsa XXXx f...@example.org
> > > 
> > > And if this solve the problem, could mentors please ensure that newer
> > > packagers actually really understand how ssh is supposed to work before
> > > directing them to sysadmin for diagnosing the same problem over and
> > > over?
> > > 
> > > ( alternative version : code proper error reporting in identity )
> > > ( 2nd alternative version : add a foolproof mgarepo command to create
> > > and upload keys into our ldap )
> > > 
> > 
> > 
> > i tried it again without success.  
> 
> What did you tried exactly ?
> 
> ( cause I see that something looking like a ssh key ended in the mobile
> ldap field, but I also see the same constraint violation on sshKey that
> I save earlier, but i am rather sure to have tested the change and seen
> people able to upload keys before )
> 
> 

i added the complete line of the file ~/.ssh/id_dsa.pub
it starts with : ssh-dss B3NzaC1kc3MAAACBALDU4.ygi2efzDPmBw== 
dglent@localhost



Something that i did before too but as it did nt work i tried multiple times 
(also once i tried to added from AAAxx and this is what you saw in the logs 
probably ) and once i forgot to change the filed label and i added to the 
mobile filed. Actually i cannot delete this field (mobile) either, i have the 
error message "page not found"

-- 
Dimitrios Glentadakis


Re: [Mageia-dev] Error message while trying checkout a package?with mgarepo

2012-02-12 Thread Michael Scherer
Le dimanche 12 février 2012 à 11:38 +0100, Dimitrios Glentadakis a
écrit :
> Στις Κυριακή 12 Φεβρουάριος 2012 11:16:26 Michael Scherer γράψατε:
> > Le samedi 11 février 2012 à 15:22 +0100, Dimitrios Glentadakis a écrit :
> > > Στις Σάββατο 11 Φεβρουάριος 2012 15:00:42 nicolas vigier γράψατε:
> > > > On Sat, 11 Feb 2012, Dimitrios Glentadakis wrote:
> > > > 
> > > > > Στις Σάββατο 11 Φεβρουάριος 2012 14:41:59 nicolas vigier γράψατε:
> > > > > > On Sat, 11 Feb 2012, Dimitrios Glentadakis wrote:
> > > > > > 
> > > > > > > 
> > > > > > > What could be wrong ?
> > > > > > 
> > > > > > Did you try to do a checkout on packages svn repository without 
> > > > > > mgarepo
> > > > > > to see if that works ?
> > > > > > 
> > > > > > svn co svn+ssh://svn.mageia.org/svn/packages/cauldron/null/current
> > > > > > 
> > > > > > 
> > > > > 
> > > > > 
> > > > > it works, it gave me this:
> > > > > 
> > > > > [dglent@localhost mgarepo]$ svn co 
> > > > > svn+ssh://svn.mageia.org/svn/packages/cauldron/null/current
> > > > > Password:
> > > > > Password:
> > > > 
> > > > It shouldn't ask you for password if you uploaded your ssh key on
> > > > https://identity.mageia.org/
> > > > 
> > > > 
> > > 
> > > in https://identity.mageia.org/ i choose sshPublicKey i add my key , i 
> > > clic ok but there is no field added  - (also i did it a second time and i 
> > > did nt see that was the field Mobile, and i added in the mobile field. 
> > > Now impossible to delete it. I have the message page not fount) - 
> > 
> > >From ldap.log :
> > 
> > Feb 11 15:03:50 valstar slapd[2240]: conn=1159066 op=3 MOD
> > dn="uid=dglent,ou=People,dc=mageia,dc=org"
> > Feb 11 15:03:50 valstar slapd[2240]: conn=1159066 op=3 MOD
> > attr=sshPublicKey
> > Feb 11 15:03:50 valstar slapd[2240]: conn=1159066 op=3 RESULT tag=103
> > err=19 text=modify breaks constraint on sshPublicKey
> > 
> > Are you sure that you used the complete 
> > It seems that the key that was uploaded was not in the good format. Can
> > you make sure that you used the complete ssh key, ie the whole line, not
> > just the binary encoded blurb in the middle. Without the beginning,
> > ( ie ssh-rsa/ssh-dsa ), there is no way it would work, since openssh
> > cannot guess the format and the algo to use.
> > 
> > So try again by using the complete line : 
> > ssh-rsa XXXx f...@example.org
> > 
> > And if this solve the problem, could mentors please ensure that newer
> > packagers actually really understand how ssh is supposed to work before
> > directing them to sysadmin for diagnosing the same problem over and
> > over?
> > 
> > ( alternative version : code proper error reporting in identity )
> > ( 2nd alternative version : add a foolproof mgarepo command to create
> > and upload keys into our ldap )
> > 
> 
> 
> i tried it again without success.  

What did you tried exactly ?

( cause I see that something looking like a ssh key ended in the mobile
ldap field, but I also see the same constraint violation on sshKey that
I save earlier, but i am rather sure to have tested the change and seen
people able to upload keys before )

-- 
Michael Scherer



Re: [Mageia-dev] Error message while trying checkout a package?with mgarepo

2012-02-12 Thread Michael Scherer
Le dimanche 12 février 2012 à 11:30 +0100, Oliver Burger a écrit :
> Am 12.02.2012 11:16, schrieb Michael Scherer:
> > Are you sure that you used the complete
> > It seems that the key that was uploaded was not in the good format. Can
> > you make sure that you used the complete ssh key, ie the whole line, not
> > just the binary encoded blurb in the middle. Without the beginning,
> > ( ie ssh-rsa/ssh-dsa ), there is no way it would work, since openssh
> > cannot guess the format and the algo to use.
> >
> > So try again by using the complete line :
> > ssh-rsa XXXx f...@example.org
> >
> > And if this solve the problem, could mentors please ensure that newer
> > packagers actually really understand how ssh is supposed to work before
> > directing them to sysadmin for diagnosing the same problem over and
> > over?
> Guilty as charged, but actually Dimitrios was a bit faster then me and I 
> didn't have that much time yesterday to try and work this out.
> 
> > ( alternative version : code proper error reporting in identity )
> > ( 2nd alternative version : add a foolproof mgarepo command to create
> > and upload keys into our ldap )
> If any of those two should be done, including it in identity would be 
> the better way, I think.

> We have people aside from packagers with svn commit rights, e.g. the 
> i18n team commiters.

Indeed. 

But we can do both, and I think that adding a command to mgarepo would
help to enforce a better security practice ( ie, few people know that
using ssh-agent can cause issue if someone is root on the server that
you connect too, since this person can reuse your key by hijacking the
agent ).

> As an idea: instead of that input field or as an alternative provide a 
> possibility to upload the pubkey file?
> This well make sure, no half keys are uploaded.

In fact, we already make sure that no half key are uploaded ( hence the
lack of key after upload ), we just do not signal it.

And having a specific input would be slightly more complex ( but doable
), and less generic ( and I think Buchan wanted to avoid that, but maybe
I am wrong ).

-- 
Michael Scherer



Re: [Mageia-dev] Error message while trying checkout a package?with mgarepo

2012-02-12 Thread Dimitrios Glentadakis
Στις Κυριακή 12 Φεβρουάριος 2012 11:16:26 Michael Scherer γράψατε:
> Le samedi 11 février 2012 à 15:22 +0100, Dimitrios Glentadakis a écrit :
> > Στις Σάββατο 11 Φεβρουάριος 2012 15:00:42 nicolas vigier γράψατε:
> > > On Sat, 11 Feb 2012, Dimitrios Glentadakis wrote:
> > > 
> > > > Στις Σάββατο 11 Φεβρουάριος 2012 14:41:59 nicolas vigier γράψατε:
> > > > > On Sat, 11 Feb 2012, Dimitrios Glentadakis wrote:
> > > > > 
> > > > > > 
> > > > > > What could be wrong ?
> > > > > 
> > > > > Did you try to do a checkout on packages svn repository without 
> > > > > mgarepo
> > > > > to see if that works ?
> > > > > 
> > > > > svn co svn+ssh://svn.mageia.org/svn/packages/cauldron/null/current
> > > > > 
> > > > > 
> > > > 
> > > > 
> > > > it works, it gave me this:
> > > > 
> > > > [dglent@localhost mgarepo]$ svn co 
> > > > svn+ssh://svn.mageia.org/svn/packages/cauldron/null/current
> > > > Password:
> > > > Password:
> > > 
> > > It shouldn't ask you for password if you uploaded your ssh key on
> > > https://identity.mageia.org/
> > > 
> > > 
> > 
> > in https://identity.mageia.org/ i choose sshPublicKey i add my key , i clic 
> > ok but there is no field added  - (also i did it a second time and i did nt 
> > see that was the field Mobile, and i added in the mobile field. Now 
> > impossible to delete it. I have the message page not fount) - 
> 
> >From ldap.log :
> 
> Feb 11 15:03:50 valstar slapd[2240]: conn=1159066 op=3 MOD
> dn="uid=dglent,ou=People,dc=mageia,dc=org"
> Feb 11 15:03:50 valstar slapd[2240]: conn=1159066 op=3 MOD
> attr=sshPublicKey
> Feb 11 15:03:50 valstar slapd[2240]: conn=1159066 op=3 RESULT tag=103
> err=19 text=modify breaks constraint on sshPublicKey
> 
> Are you sure that you used the complete 
> It seems that the key that was uploaded was not in the good format. Can
> you make sure that you used the complete ssh key, ie the whole line, not
> just the binary encoded blurb in the middle. Without the beginning,
> ( ie ssh-rsa/ssh-dsa ), there is no way it would work, since openssh
> cannot guess the format and the algo to use.
> 
> So try again by using the complete line : 
> ssh-rsa XXXx f...@example.org
> 
> And if this solve the problem, could mentors please ensure that newer
> packagers actually really understand how ssh is supposed to work before
> directing them to sysadmin for diagnosing the same problem over and
> over?
> 
> ( alternative version : code proper error reporting in identity )
> ( 2nd alternative version : add a foolproof mgarepo command to create
> and upload keys into our ldap )
> 


i tried it again without success.  


-- 
Dimitrios Glentadakis


Re: [Mageia-dev] Error message while trying checkout a package?with mgarepo

2012-02-12 Thread Oliver Burger

Am 12.02.2012 11:16, schrieb Michael Scherer:

Are you sure that you used the complete
It seems that the key that was uploaded was not in the good format. Can
you make sure that you used the complete ssh key, ie the whole line, not
just the binary encoded blurb in the middle. Without the beginning,
( ie ssh-rsa/ssh-dsa ), there is no way it would work, since openssh
cannot guess the format and the algo to use.

So try again by using the complete line :
ssh-rsa XXXx f...@example.org

And if this solve the problem, could mentors please ensure that newer
packagers actually really understand how ssh is supposed to work before
directing them to sysadmin for diagnosing the same problem over and
over?
Guilty as charged, but actually Dimitrios was a bit faster then me and I 
didn't have that much time yesterday to try and work this out.



( alternative version : code proper error reporting in identity )
( 2nd alternative version : add a foolproof mgarepo command to create
and upload keys into our ldap )
If any of those two should be done, including it in identity would be 
the better way, I think.
We have people aside from packagers with svn commit rights, e.g. the 
i18n team commiters.
As an idea: instead of that input field or as an alternative provide a 
possibility to upload the pubkey file?

This well make sure, no half keys are uploaded.

Oliver


Re: [Mageia-dev] Error message while trying checkout a package?with mgarepo

2012-02-12 Thread Michael Scherer
Le samedi 11 février 2012 à 15:22 +0100, Dimitrios Glentadakis a écrit :
> Στις Σάββατο 11 Φεβρουάριος 2012 15:00:42 nicolas vigier γράψατε:
> > On Sat, 11 Feb 2012, Dimitrios Glentadakis wrote:
> > 
> > > Στις Σάββατο 11 Φεβρουάριος 2012 14:41:59 nicolas vigier γράψατε:
> > > > On Sat, 11 Feb 2012, Dimitrios Glentadakis wrote:
> > > > 
> > > > > 
> > > > > What could be wrong ?
> > > > 
> > > > Did you try to do a checkout on packages svn repository without mgarepo
> > > > to see if that works ?
> > > > 
> > > > svn co svn+ssh://svn.mageia.org/svn/packages/cauldron/null/current
> > > > 
> > > > 
> > > 
> > > 
> > > it works, it gave me this:
> > > 
> > > [dglent@localhost mgarepo]$ svn co 
> > > svn+ssh://svn.mageia.org/svn/packages/cauldron/null/current
> > > Password:
> > > Password:
> > 
> > It shouldn't ask you for password if you uploaded your ssh key on
> > https://identity.mageia.org/
> > 
> > 
> 
> in https://identity.mageia.org/ i choose sshPublicKey i add my key , i clic 
> ok but there is no field added  - (also i did it a second time and i did nt 
> see that was the field Mobile, and i added in the mobile field. Now 
> impossible to delete it. I have the message page not fount) - 

>From ldap.log :

Feb 11 15:03:50 valstar slapd[2240]: conn=1159066 op=3 MOD
dn="uid=dglent,ou=People,dc=mageia,dc=org"
Feb 11 15:03:50 valstar slapd[2240]: conn=1159066 op=3 MOD
attr=sshPublicKey
Feb 11 15:03:50 valstar slapd[2240]: conn=1159066 op=3 RESULT tag=103
err=19 text=modify breaks constraint on sshPublicKey

Are you sure that you used the complete 
It seems that the key that was uploaded was not in the good format. Can
you make sure that you used the complete ssh key, ie the whole line, not
just the binary encoded blurb in the middle. Without the beginning,
( ie ssh-rsa/ssh-dsa ), there is no way it would work, since openssh
cannot guess the format and the algo to use.

So try again by using the complete line : 
ssh-rsa XXXx f...@example.org

And if this solve the problem, could mentors please ensure that newer
packagers actually really understand how ssh is supposed to work before
directing them to sysadmin for diagnosing the same problem over and
over?

( alternative version : code proper error reporting in identity )
( 2nd alternative version : add a foolproof mgarepo command to create
and upload keys into our ldap )
-- 
Michael Scherer



Re: [Mageia-dev] Error message while trying checkout a package with mgarepo

2012-02-11 Thread Dimitrios Glentadakis
Στις Σάββατο 11 Φεβρουάριος 2012 15:22:20 Pierre-Malo Deniélou γράψατε:
> Le 11/02/12 08:57,Dimitrios Glentadakis nous adresse ces quelques mots :
> > I'm trying to checkout a package with mgarepo and i have the follow error 
> > message:
> > 
> > [...]
> > 
> > What could be wrong ?
> 
> Your mgarepo config is probably not set to anonymous checkout:
> Follow the first instructions of
> https://wiki.mageia.org/en/Packagers_Howto_start
> 
> Cheers,
> 

I dont want anonymous checkout but with my key


-- 
Dimitrios Glentadakis


Re: [Mageia-dev] Error message while trying checkout a package with mgarepo

2012-02-11 Thread Pierre-Malo Deniélou
Le 11/02/12 08:57,Dimitrios Glentadakis nous adresse ces quelques mots :
> I'm trying to checkout a package with mgarepo and i have the follow error 
> message:
> 
> [...]
> 
> What could be wrong ?

Your mgarepo config is probably not set to anonymous checkout:
Follow the first instructions of
https://wiki.mageia.org/en/Packagers_Howto_start

Cheers,
-- 
Malo


Re: [Mageia-dev] Error message while trying checkout a package?with mgarepo

2012-02-11 Thread Dimitrios Glentadakis
Στις Σάββατο 11 Φεβρουάριος 2012 15:00:42 nicolas vigier γράψατε:
> On Sat, 11 Feb 2012, Dimitrios Glentadakis wrote:
> 
> > Στις Σάββατο 11 Φεβρουάριος 2012 14:41:59 nicolas vigier γράψατε:
> > > On Sat, 11 Feb 2012, Dimitrios Glentadakis wrote:
> > > 
> > > > 
> > > > What could be wrong ?
> > > 
> > > Did you try to do a checkout on packages svn repository without mgarepo
> > > to see if that works ?
> > > 
> > > svn co svn+ssh://svn.mageia.org/svn/packages/cauldron/null/current
> > > 
> > > 
> > 
> > 
> > it works, it gave me this:
> > 
> > [dglent@localhost mgarepo]$ svn co 
> > svn+ssh://svn.mageia.org/svn/packages/cauldron/null/current
> > Password:
> > Password:
> 
> It shouldn't ask you for password if you uploaded your ssh key on
> https://identity.mageia.org/
> 
> 

in https://identity.mageia.org/ i choose sshPublicKey i add my key , i clic ok 
but there is no field added  - (also i did it a second time and i did nt see 
that was the field Mobile, and i added in the mobile field. Now impossible to 
delete it. I have the message page not fount) - 

i tried again to see if the key was applied somehow in the background of the 
identity.mageia.org but it asks me always for a password







-- 
Dimitrios Glentadakis


Re: [Mageia-dev] Error message while trying checkout a package with mgarepo

2012-02-11 Thread Dimitrios Glentadakis
Στις Σάββατο 11 Φεβρουάριος 2012 10:12:09 Jani Välimaa γράψατε:
> 2012/2/11 Dimitrios Glentadakis :
> > I'm trying to checkout a package with mgarepo and i have the follow error 
> > message:
> >
> > "Permission denied (publickey,password,keyboard-interactive).
> > svn: To better debug SSH connection problems, remove the -q option from 
> > 'ssh' in the [tunnels] section of your Subversion configuration file.
> > svn: Network connection closed unexpectedly
> >
> > It seems ssh-agent or ForwardAgent are not setup or your username is wrong. 
> > See http://www.mageia.org/wiki/doku.php?id=svn-faq for more information."
> >
> > It is the first time that i try to use this tool
> >
> > [dglent@localhost mgarepo]$ ssh-add -l
> > 1024 ef:64:3c:2d:d5:a6:5e:45:74:7c:50:cf:a0:64:3b:35 
> > /home/dglent/.ssh/id_dsa (DSA)
> >
> >
> >
> > [dglent@localhost mgarepo]$ cat ~/.ssh/config
> > Host *.kde.org
> >User glentadakis
> >IdentityFile ~/.ssh/id_dsa
> >
> > Host pkgsubmit.mageia.org
> >  ForwardAgent yes
> >  User dglent
> > Host binrepo.mageia.org svn.mageia.org
> >  User dglent
> >
> 
> Try to remove binrepo and svn entry and change pkgsubmit entry to 
> *.mageia.org.
> 

i tried it without success


-- 
Dimitrios Glentadakis


Re: [Mageia-dev] Error message while trying checkout a package?with mgarepo

2012-02-11 Thread nicolas vigier
On Sat, 11 Feb 2012, Dimitrios Glentadakis wrote:

> Στις Σάββατο 11 Φεβρουάριος 2012 14:41:59 nicolas vigier γράψατε:
> > On Sat, 11 Feb 2012, Dimitrios Glentadakis wrote:
> > 
> > > 
> > > What could be wrong ?
> > 
> > Did you try to do a checkout on packages svn repository without mgarepo
> > to see if that works ?
> > 
> > svn co svn+ssh://svn.mageia.org/svn/packages/cauldron/null/current
> > 
> > 
> 
> 
> it works, it gave me this:
> 
> [dglent@localhost mgarepo]$ svn co 
> svn+ssh://svn.mageia.org/svn/packages/cauldron/null/current
> Password:
> Password:

It shouldn't ask you for password if you uploaded your ssh key on
https://identity.mageia.org/



Re: [Mageia-dev] Error message while trying checkout a package with mgarepo

2012-02-11 Thread Dimitrios Glentadakis
Στις Σάββατο 11 Φεβρουάριος 2012 14:41:59 nicolas vigier γράψατε:
> On Sat, 11 Feb 2012, Dimitrios Glentadakis wrote:
> 
> > 
> > What could be wrong ?
> 
> Did you try to do a checkout on packages svn repository without mgarepo
> to see if that works ?
> 
> svn co svn+ssh://svn.mageia.org/svn/packages/cauldron/null/current
> 
> 


it works, it gave me this:

[dglent@localhost mgarepo]$ svn co 
svn+ssh://svn.mageia.org/svn/packages/cauldron/null/current
Password:
Password:
Acurrent/SOURCES
Acurrent/SOURCES/sha1.lst
Acurrent/SPECS
Acurrent/SPECS/null.spec
 U   current
Checked out revision 207338.



-- 
Dimitrios Glentadakis


Re: [Mageia-dev] Error message while trying checkout a package with mgarepo

2012-02-11 Thread nicolas vigier
On Sat, 11 Feb 2012, Dimitrios Glentadakis wrote:

> 
> What could be wrong ?

Did you try to do a checkout on packages svn repository without mgarepo
to see if that works ?

svn co svn+ssh://svn.mageia.org/svn/packages/cauldron/null/current



Re: [Mageia-dev] Error message while trying checkout a package with mgarepo

2012-02-11 Thread Remco Rijnders
On Sat, Feb 11, 2012 at 09:57:05AM +0100, Dimitrios wrote in 
<201202110957.05673.dgl...@gmail.com>:

I'm trying to checkout a package with mgarepo and i have the follow error 
message:

"Permission denied (publickey,password,keyboard-interactive).
svn: To better debug SSH connection problems, remove the -q option from 'ssh' 
in the [tunnels] section of your Subversion configuration file.
svn: Network connection closed unexpectedly

It seems ssh-agent or ForwardAgent are not setup or your username is wrong. See 
http://www.mageia.org/wiki/doku.php?id=svn-faq for more information."


Not that this is of any help to you... but we should get that link in the 
error message fixed / updated.


signature.asc
Description: Digital signature


Re: [Mageia-dev] Error message while trying checkout a package with mgarepo

2012-02-11 Thread Jani Välimaa
2012/2/11 Dimitrios Glentadakis :
> I'm trying to checkout a package with mgarepo and i have the follow error 
> message:
>
> "Permission denied (publickey,password,keyboard-interactive).
> svn: To better debug SSH connection problems, remove the -q option from 'ssh' 
> in the [tunnels] section of your Subversion configuration file.
> svn: Network connection closed unexpectedly
>
> It seems ssh-agent or ForwardAgent are not setup or your username is wrong. 
> See http://www.mageia.org/wiki/doku.php?id=svn-faq for more information."
>
> It is the first time that i try to use this tool
>
> [dglent@localhost mgarepo]$ ssh-add -l
> 1024 ef:64:3c:2d:d5:a6:5e:45:74:7c:50:cf:a0:64:3b:35 /home/dglent/.ssh/id_dsa 
> (DSA)
>
>
>
> [dglent@localhost mgarepo]$ cat ~/.ssh/config
> Host *.kde.org
>        User glentadakis
>        IdentityFile ~/.ssh/id_dsa
>
> Host pkgsubmit.mageia.org
>      ForwardAgent yes
>      User dglent
> Host binrepo.mageia.org svn.mageia.org
>      User dglent
>

Try to remove binrepo and svn entry and change pkgsubmit entry to *.mageia.org.


[Mageia-dev] Error message while trying checkout a package with mgarepo

2012-02-11 Thread Dimitrios Glentadakis
I'm trying to checkout a package with mgarepo and i have the follow error 
message:

"Permission denied (publickey,password,keyboard-interactive).
svn: To better debug SSH connection problems, remove the -q option from 'ssh' 
in the [tunnels] section of your Subversion configuration file.
svn: Network connection closed unexpectedly

It seems ssh-agent or ForwardAgent are not setup or your username is wrong. See 
http://www.mageia.org/wiki/doku.php?id=svn-faq for more information."

It is the first time that i try to use this tool

[dglent@localhost mgarepo]$ ssh-add -l
1024 ef:64:3c:2d:d5:a6:5e:45:74:7c:50:cf:a0:64:3b:35 /home/dglent/.ssh/id_dsa 
(DSA)



[dglent@localhost mgarepo]$ cat ~/.ssh/config
Host *.kde.org
User glentadakis
IdentityFile ~/.ssh/id_dsa

Host pkgsubmit.mageia.org
  ForwardAgent yes
  User dglent
Host binrepo.mageia.org svn.mageia.org
  User dglent



I'm using Mageia 1

What could be wrong ?

Thanks



-- 
Dimitrios Glentadakis