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.

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

Reply via email to