X-Original-To: alpine-devel@lists.alpinelinux.org Delivered-To: alpine-devel@mail.alpinelinux.org Received: from nm13-vm0.bullet.mail.bf1.yahoo.com (nm13-vm0.bullet.mail.bf1.yahoo.com [98.139.213.79]) by mail.alpinelinux.org (Postfix) with SMTP id 0FE22DC01D8 for ; Wed, 10 Apr 2013 14:43:41 +0000 (UTC) Received: from [98.139.212.150] by nm13.bullet.mail.bf1.yahoo.com with NNFMP; 10 Apr 2013 14:43:41 -0000 Received: from [98.139.215.250] by tm7.bullet.mail.bf1.yahoo.com with NNFMP; 10 Apr 2013 14:43:41 -0000 Received: from [127.0.0.1] by omp1063.mail.bf1.yahoo.com with NNFMP; 10 Apr 2013 14:43:41 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 560540.96157.bm@omp1063.mail.bf1.yahoo.com Received: (qmail 74161 invoked by uid 60001); 10 Apr 2013 14:43:41 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1365605021; bh=1Oxa140DP7UbUFiCkdda49gCweJQ324izV7FuuqUAfs=; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=puSdLQ0LN/Sw/IiWWs+MSpWUEqeTNyA2KueZ/vmdJH77v37BCeYeahuMf8Cz/LNstwMY19op/2sbRa8fMyA6LIptpfBgswLf2jmmLOYk0l2SfVUwaqiykwDF9qU6VKafUrgRa04MseAM0o0RiYVsvZxKQpqTOBgjhebOV5EwrMM= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=NGECF1/6f3BafkmuSC8D0ok+Wni0Dih/nWKEvya9VFHaAtmZZOVHOKU5wvEVsZuYpiV1Ejvq9cBj79aXAL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YWxsb3cgaHR0cCBiYXNpYyBhdXRoZW50aWNhdGlvbiwgSSB3b3VsZCBiZSBva2F5IHdpdGggYXBwbHlpbmcgaXQuwqBUaGFua3MgZm9yIHlvdXIgaW50ZXJlc3QBMAEBAQE- X-Mailer: YahooMailWebService/0.8.140.532 References: Message-ID: <1365605021.67433.YahooMailNeo@web162802.mail.bf1.yahoo.com> Date: Wed, 10 Apr 2013 07:43:41 -0700 (PDT) From: Ted Trask Reply-To: Ted Trask Subject: Re: [alpine-devel] using acf as a rest API To: "alpine-devel@lists.alpinelinux.org" In-Reply-To: X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="1893461944-192667481-1365605021=:67433" --1893461944-192667481-1365605021=:67433 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable If you are trying to remotely access ACF, yes, you must manage the cookie r= ight now. (There are command-line or programmable options if you are on the= device) If you would like to submit a patch to allow http basic authentica= tion, I would be okay with applying it.=A0Thanks for your interest in ACF. = If you need assistance in creating the patch, please let me know.=0A=0ATed= =0A=0A=0A________________________________=0A From: Jaime Melis =0ATo: alpine-devel@lists.alpinelinux.org =0ASent: Monday, April= 8, 2013 7:36 PM=0ASubject: [alpine-devel] using acf as a rest API=0A =0A= =0AHi guys,=0A=0AI'm an OpenNebula developer and I had a chat today with Ro= ger and he told me=0Aabout this project. As far as I've seen, it looks like= a perfect match for many=0Athings we want to do in our project.=0A=0AOne o= f these thing is to provide our users with a virtual router that=0Aautoconf= igures itself matching the OpenNebula configuration and does things=0Alike:= dns server, dhcp server, etc...=0A=0ASo, my question here is, I'd like to = call some acf funcionalities from inside a=0Apogram (namely reconfigure dns= masq and restart the service), so far I've seen=0Athe only way to do this p= rogrammatically is to log-in with curl for instance,=0Aget the cookie, and = pass it along to the following requests.=0A=0AIs there any alternative? sho= uld I do this in a different way? would you=0Aconsider applying a patch dev= eloped by me that enables http basic authentication=0Ain /etc/acf/acf.conf = so I can simply do the equivalent of curl -X POST -u=0A: ht= tps://... without the need of handling cookies?=0A=0Acheers,=0AJaime=0A=0A-= -=A0=0AJaime Melis=0AProject Engineer=0AOpenNebula - The Open Source Toolki= t for Cloud Computing=0Awww.OpenNebula.org | jmelis@opennebula.org --1893461944-192667481-1365605021=:67433 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable
If you are trying to = remotely access ACF, yes, you must manage the cookie right now. (There are = command-line or programmable options if you are on the device) If you would= like to submit a patch to allow http basic authentication, I would be okay= with applying it. Thanks for = your interest in ACF. If you need assistance in creating the patch, please = let me know.

Ted

=
From: Jai= me Melis <jmelis@opennebula.org>
To: alpine-devel@lists.alpinelinux.org
Sent: Monday, April 8, 2013 7:36 PM
= Subject: [alpine-devel] us= ing acf as a rest API

Hi guys,

I'm an Op= enNebula developer and I had a chat today with Roger and he told me
about this project. As far as I've seen, it looks like a perfect match f= or many
=0A=0A
things we want to do in our project.

=
One of these thing is to provide our users with a virtual router= that
autoconfigures itself matching the OpenNebula configuration= and does things
=0A=0A
like: dns server, dhcp server, etc...

So, my question here is, I'd like to call some acf fun= cionalities from inside a
pogram (namely reconfigure dnsmasq and = restart the service), so far I've seen
=0A=0A
the only way to do t= his programmatically is to log-in with curl for instance,
get the= cookie, and pass it along to the following requests.

<= div>Is there any alternative? should I do this in a different way? would yo= u
=0A=0A
consider applying a patch developed by me that enables ht= tp basic authentication
in /etc/acf/acf.conf so I can simply do t= he equivalent of curl -X POST -u
<username>:<pass> ht= tps://... without the need of handling cookies?
=0A=0A

<= div>cheers,
Jaime

-- 
Jai= me Melis
Project Engineer
OpenNebula - The Open Source = Toolkit for Cloud Computing
=0A=0A
=0A


--1893461944-192667481-1365605021=:67433-- --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---