From: John Hodge Date: Tue, 27 Dec 2011 10:20:29 +0000 (+0800) Subject: Debugging authident, adding new config file X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=de8c5fd93c75b8611cba5530b255a3dcfd97db41;p=tpg%2Fopendispense2.git Debugging authident, adding new config file --- diff --git a/dispsrv.conf b/dispsrv.conf new file mode 100644 index 0000000..5039948 --- /dev/null +++ b/dispsrv.conf @@ -0,0 +1,14 @@ +# +# OpenDispense2 Server config file +# +daemonise no +server_port 11020 +cokebank_database cokebank.db +items_file items.cfg + +door_serial_port /dev/ttyS0 +coke_modbus_address 130.95.13.72 + +trusted_host 192.168.1.39 +trusted_host 192.168.1.34 +trusted_host 192.168.1.37 diff --git a/src/server/server.c b/src/server/server.c index 05ee547..2bcd8d3 100644 --- a/src/server/server.c +++ b/src/server/server.c @@ -597,6 +597,7 @@ void Server_Cmd_AUTHIDENT(tClient *Client, char *Args) // Get username via IDENT username = ident_id(Client->Socket, ident_timeout); if( !username ) { + perror("AUTHIDENT - IDENT timed out"); sendf(Client->Socket, "403 Authentication failure: IDENT auth timed out\n"); return ; }