From de8c5fd93c75b8611cba5530b255a3dcfd97db41 Mon Sep 17 00:00:00 2001 From: John Hodge Date: Tue, 27 Dec 2011 18:20:29 +0800 Subject: [PATCH] Debugging authident, adding new config file --- dispsrv.conf | 14 ++++++++++++++ src/server/server.c | 1 + 2 files changed, 15 insertions(+) create mode 100644 dispsrv.conf 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 ; } -- 2.20.1