Foreman REMOTE_USER api problem

I'm sorry for this but in a previous questions I understand that Foreman
can support REMOTE_USER authentication, but I don't found where is this API
and how it's implemented.

Can you give me a link of this API? or an answer for this problem?

> I'm sorry for this but in a previous questions I understand that Foreman
> can support REMOTE_USER authentication, but I don't found where is this API
> and how it's implemented.
>
> Can you give me a link of this API? or an answer for this problem?
>

First, to enable SSO with API you would need to enable it, make sure you
change the setting under more -> settings (search for api)

second, the api it self is documented at Foreman

Ohad

··· On Wed, Apr 17, 2013 at 11:31 AM, Euclideo wrote:


You received this message because you are subscribed to the Google Groups
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at http://groups.google.com/group/foreman-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.

Thanks for your fast response.
I have found the "authorize login delegation" in settings and I changed the
flag in true, but I don't understand how it works. After that Apache
validate the authentication in according to CAS and the REMOTE_USER
variable is set, I could doing any operation with foreman if I pass it the
username. Is this right? Is there any example?

··· Il giorno mercoledì 17 aprile 2013 10:33:25 UTC+2, ohad ha scritto: > > > > On Wed, Apr 17, 2013 at 11:31 AM, Euclideo <ivanosi...@gmail.com > > wrote: > >> I'm sorry for this but in a previous questions I understand that Foreman >> can support REMOTE_USER authentication, but I don't found where is this API >> and how it's implemented. >> >> Can you give me a link of this API? or an answer for this problem? >> > > First, to enable SSO with API you would need to enable it, make sure you > change the setting under more -> settings (search for api) > > second, the api it self is documented at http://theforeman.org/api.html > > Ohad > >> -- >> You received this message because you are subscribed to the Google Groups >> "Foreman users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to foreman-user...@googlegroups.com . >> To post to this group, send email to forema...@googlegroups.com >> . >> Visit this group at http://groups.google.com/group/foreman-users?hl=en. >> For more options, visit https://groups.google.com/groups/opt_out. >> >> >> > >

> Thanks for your fast response.
> I have found the "authorize login delegation" in settings and I changed the flag in true, but I don't understand how it works. After that Apache validate the authentication in according to CAS and the REMOTE_USER variable is set, I could doing any operation with foreman if I pass it the username. Is this right? Is there any example?
>

Normally the mod_cas will set an environment variable in the header and then you set this to REMOTE_USER. Sometimes it is actually REMOTE_USER so
there is nothing to do.

Here is an example with mod_shibd we have

SetEnvIf ADFS_LOGIN "(.*)" REMOTE_USER=$1

mod_shibd sets ADFS_LOGIN if and only if mod_shibd accepts the user.

I do not know CAS at all but a 10 second look at

https://wiki.jasig.org/display/CASC/mod_auth_cas

suggests there is nothing to do and REMOTE_LOGIN will be set for you.

··· On Apr 17, 2013, at 1:25 PM, Euclideo wrote:

Il giorno mercoledì 17 aprile 2013 10:33:25 UTC+2, ohad ha scritto:

On Wed, Apr 17, 2013 at 11:31 AM, Euclideo ivanosi...@gmail.com wrote:
I’m sorry for this but in a previous questions I understand that Foreman can support REMOTE_USER authentication, but I don’t found where is this API and how it’s implemented.

Can you give me a link of this API? or an answer for this problem?

First, to enable SSO with API you would need to enable it, make sure you change the setting under more -> settings (search for api)

second, the api it self is documented at Foreman

Ohad


You received this message because you are subscribed to the Google Groups “Foreman users” group.
To unsubscribe from this group and stop receiving emails from it, send an email to foreman-user...@googlegroups.com.
To post to this group, send email to forema...@googlegroups.com.
Visit this group at http://groups.google.com/group/foreman-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


You received this message because you are subscribed to the Google Groups “Foreman users” group.
To unsubscribe from this group and stop receiving emails from it, send an email to foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at http://groups.google.com/group/foreman-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.