[Main Page]

replace then dologin() function in /etc/chilli/www/config.sh, not the complete file with

dologin() {
 chilli_query /var/run/chilli.sock list | awk -F" " '{print $6}' > /tmp/loged_users.txt
 if grep ${FORM_username} /tmp/loged_users.txt > 2; then echo "Your Username is allready in use!"
 else
   response=$(/usr/sbin/chilli_response "$FORM_challenge" "$uamsecret"  
"$FORM_password")
   cat <<ENDHTML
<html><head>
<meta http-equiv="refresh" content="0;url=http://${FORM_uamip}:${FORM_uamport}/login?username=${FORM_username}&response=${response}&userurl=${FORM_userurl}">
</head></html>
<!--
<WISPAccessGatewayParam
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:noNamespaceSchemaLocation="http://www.acmewisp.com/WISPAccessGatewayParam.xsd">
<AuthenticationReply>
<MessageType>120</MessageType>
<ResponseCode>201</ResponseCode>
<LoginResultsURL>http://${FORM_uamip}:${FORM_uamport}/login?username=${FORM_username}&response=${response}&userurl=${FORM_userurl}</LoginResultsURL>
</AuthenticationReply>
</WISPAccessGatewayParam>
-->
ENDHTML
fi
}

Search >>

This page has been accessed 806 times. This page was last modified 17:15, 2 July 2007.