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