On Jun 26, 2012, at 5:50 PM, Bruno Guarienti de Oliveira wrote:

> Sorry to bother you this much, I'm getting this error:
> 
> connect 127.0.0.1:6663: Connection refused
> cosign_choose_conn: all servers returned ERROR
> 
> There's no other apache errors. Don't know if it's a problem concerning 
> apache or cosign.
> Any tips?

Looks like cosignd's not running. It listens on port 6663. Your cgi problem was 
due to a bad configuration line. It seems likely cosignd refused to for the 
same reason.

Please send you replies to the list for the benefit of other users. Thanks!

andrew


> 
> Bruno.
> 
> -----Mensagem Original----- From: Andrew Mortensen
> Sent: Tuesday, June 26, 2012 6:11 PM
> To: Bruno Guarienti de Oliveira
> Subject: Re: [Cosign-discuss] Setting up factors
> 
> 
> On Jun 26, 2012, at 5:08 PM, Bruno Guarienti de Oliveira wrote:
> 
>> Thank you for answering this fast. This is what it is outputting:
>> 
>> [error] Premature end of script headers: cosign.cgi
>> invalid keyword line 32:cookie
> 
> You have a bad line in your cosign.conf. The "cookie" keyword is not valid in 
> cosign 3.x.
> 
> andrew
> 
> 
>> 
>> However i didn't even touched this file.
>> Have you encountered this error before?
>> 
>> Bruno
>> 
>> -----Mensagem Original----- From: Andrew Mortensen
>> Sent: Tuesday, June 26, 2012 5:49 PM
>> To: Bruno Guarienti de Oliveira
>> Cc: [email protected]
>> Subject: Re: [Cosign-discuss] Setting up factors
>> 
>> 
>> On Jun 26, 2012, at 4:44 PM, Bruno Guarienti de Oliveira wrote:
>> 
>>> Hi, I’m trying to set up a simple factor, however I’m not being successful. 
>>> Here’s what I did:
>>> 
>>> -created the factor at usr/lib/cosign/factor/test
>>> -added “factor /usr/lib/cosign/factor/test login password” to the 
>>> cosign.conf file
>>> 
>>> However it doesn`t authenticate the test login when I input the login and 
>>> password on the web interface.
>> 
>> Did you remember to make the script executable? Is it owned by the web 
>> server user? Can the web server user read the contents of 
>> /usr/lib/cosign/factor?
>> 
>> The cgi should put errors from any external factors in the apache error log. 
>> Look there first.
>> 
>> andrew
>> 
>> 
>>> 
>>> The code for the factor follows:
>>> 
>>> #!/bin/bash
>>> # Read login and password
>>> read login
>>> read pass
>>> # Check login and password
>>> if [ $login = 'admin' -a $pass = 'admin' ]; then
>>> # Return factor name:
>>> echo "ldap"
>>> else
>>> # The login form will print this error message:
>>> echo "Wrong username or password"
>>> exit 1
>>> fi
>>> 
>>> Any tips will be greatly appreciated.
>>> Thanks,
>>> Bruno Oliveira.
>>> ------------------------------------------------------------------------------
>>> Live Security Virtual Conference
>>> Exclusive live event will cover all the ways today's security and
>>> threat landscape has changed and how IT managers can respond. Discussions
>>> will include endpoint security, mobile security and the latest in malware
>>> threats. 
>>> http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/_______________________________________________
>>> Cosign-discuss mailing list
>>> [email protected]
>>> https://lists.sourceforge.net/lists/listinfo/cosign-discuss
>> 
> 


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Cosign-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cosign-discuss

Reply via email to