X-Original-To: alpine-devel@lists.alpinelinux.org Delivered-To: alpine-devel@mail.alpinelinux.org Received: from homiemail-a38.g.dreamhost.com (caiajhbdcbhh.dreamhost.com [208.97.132.177]) by mail.alpinelinux.org (Postfix) with ESMTP id 0FB75DC0202 for ; Mon, 8 Apr 2013 23:36:56 +0000 (UTC) Received: from homiemail-a38.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a38.g.dreamhost.com (Postfix) with ESMTP id 1003A10AFB0 for ; Mon, 8 Apr 2013 16:36:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=opennebula.org; h= mime-version:from:date:message-id:subject:to:content-type; s= opennebula.org; bh=lyRbBIQ4jl+GQiBfU1jb6cc1OeM=; b=aFgVG+H5uylFb psNAEZ5cNPFFVN/aSkK8Id/5XW0yzs3AQgtLu3/IGT3rXYkRfGh4JdhMU1F+j4Ab gQIfMuRI/zem79+l9+CDsgk8IckIzIMvDP9E0Rey/Cy7Z75PbGuEoZZRx5QU7hx/ eRie2YgqINgj9sPLHZGUEfV9Tiue14= Received: from mail-wi0-f182.google.com (mail-wi0-f182.google.com [209.85.212.182]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: jmelis@opennebula.org) by homiemail-a38.g.dreamhost.com (Postfix) with ESMTPSA id AD3C610AFA5 for ; Mon, 8 Apr 2013 16:36:55 -0700 (PDT) Received: by mail-wi0-f182.google.com with SMTP id hi18so3106883wib.15 for ; Mon, 08 Apr 2013 16:36:54 -0700 (PDT) X-Received: by 10.194.104.168 with SMTP id gf8mr34167735wjb.58.1365464214040; Mon, 08 Apr 2013 16:36:54 -0700 (PDT) X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 Received: by 10.194.88.161 with HTTP; Mon, 8 Apr 2013 16:36:33 -0700 (PDT) From: Jaime Melis Date: Tue, 9 Apr 2013 01:36:33 +0200 Message-ID: Subject: [alpine-devel] using acf as a rest API To: alpine-devel@lists.alpinelinux.org Content-Type: multipart/alternative; boundary=089e0102ee066e7c2704d9e1e913 --089e0102ee066e7c2704d9e1e913 Content-Type: text/plain; charset=ISO-8859-1 Hi guys, I'm an OpenNebula 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 for many 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 like: dns server, dhcp server, etc... So, my question here is, I'd like to call some acf funcionalities from inside a pogram (namely reconfigure dnsmasq and restart the service), so far I've seen the only way to do this programmatically is to log-in with curl for instance, get the cookie, and pass it along to the following requests. Is there any alternative? should I do this in a different way? would you consider applying a patch developed by me that enables http basic authentication in /etc/acf/acf.conf so I can simply do the equivalent of curl -X POST -u : https://... without the need of handling cookies? cheers, Jaime -- Jaime Melis Project Engineer OpenNebula - The Open Source Toolkit for Cloud Computing www.OpenNebula.org | jmelis@opennebula.org --089e0102ee066e7c2704d9e1e913 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hi guys,

I'm = an OpenNebula 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 perfec= t match for many
things we want to do in our project.

One of t= hese thing is to provide our users with a virtual router that
aut= oconfigures itself matching the OpenNebula configuration and does things
like: dns server, dhcp server, etc...

So, my = question here is, I'd like to call some acf funcionalities from inside = a
pogram (namely reconfigure dnsmasq and restart the service), so= far I've seen
the only way to do this programmatically is to log-in with curl for in= stance,
get the cookie, and pass it along to the following reques= ts.

Is there any alternative? should I do this in = a different way? would you
consider applying a patch developed by me that enables http basic auth= entication
in /etc/acf/acf.conf so I can simply do the equivalent= of curl -X POST -u
<username>:<pass> https://... wit= hout the need of handling cookies?

cheers,
Jaime

--=A0<= /div>
Jaime Melis
Project Engineer
OpenNebula - The= Open Source Toolkit for Cloud Computing
--089e0102ee066e7c2704d9e1e913-- --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---