<div dir="ltr">Thanks Ward. <div>I did the following:</div><div><br></div><div>$ slurmrestd unix:/var/run/slurmrestd.socket -a rest_auth/local -s v0.0.36 -vvv<br></div><div><br></div><div>and to test the response:</div><div><br></div><div>$ curl --unix-socket /var/run/slurmrestd.socket localhost/slurm/v0.0.36/ping     (here "localhost" can be whatever character, need to check --unix-socket curl option!)<br></div><div>$ echo -e "GET /slurm/v0.0.36/ping HTTP/1.1\r\n" | socat unix-connect:/var/run/slurmrestd.socket STDIO</div><div>$ echo -e "GET /slurm/v0.0.36/ping HTTP/1.0\r\n" | nc -U /var/run/slurmrestd.socket</div><div><br></div><div>All of them are working.</div><div>So in this case the only requirement for a user is having the read/write permission on the socket? </div><div>My goal at the end would be to let a Dockerized client application communicate with Slurmrestd server (running on the host). Guess I need to mount the socket in the container but haven't tried yet.    </div><div><br></div><div>Thanks,</div><div><br></div><div>Simone</div><div><br clear="all"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr">****************************************************************<div>Simone Riggi, PhD<br><div><div>INAF, Osservatorio Astrofisico di Catania<br>Via S. Sofia 78<br>95123, Catania - Italy<br>phone:  +39 095 7332 extension 282 (or 310)<br>e-mail: <a href="mailto:simone.riggi@gmail.com" target="_blank">simone.riggi@gmail.com</a>,<div>            <a href="mailto:sriggi@oact.inaf.it" target="_blank">sriggi@inaf.it</a>,<br>            <a href="mailto:simone.riggi@ct.infn.it" target="_blank">sriggi@pec.it</a><br>skype: simone.riggi<br>****************************************************************<br></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, 9 Apr 2021 at 14:26, Ward Poelmans <<a href="mailto:ward.poelmans@vub.be">ward.poelmans@vub.be</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Simone,<br>
<br>
On 8/04/2021 23:23, Simone Riggi wrote:<br>
> $ scontrol token lifespan=7200 username=riggi<br>
> <br>
> How can I configure and test the other auth method (local)? I am using<br>
> jwt at the moment.<br>
> I would like a user to be always authorized to use the rest API. <br>
<br>
local means socket (so you don't need a token). Start it with:<br>
slurmrestd unix:/var/run/slurmrestd.socket<br>
<br>
Ward<br>
<br>
</blockquote></div>