Need help with client authentication.

Dec 4, 2012 at 7:29 AM
Edited Dec 4, 2012 at 2:54 PM

Somehow I must be doing something wrong. :-( My Windows 7 x64 clients can't connect to Rserve (on a Linux box) using RServeCLI with authentication. Using plaintext, I get the same RServe response.

Can anyone help?

Edit #1: Looks like ERR_auth_failed:

#define ERR_auth_failed      0x41 /* auth.failed or auth.requested but no
                     login came. in case of authentification
                     failure due to name/pwd mismatch,
                     server may send CMD_accessDenied instead
                  */

But why? Username/Password is send.

 

Edit #2: RServe default Java-Client did not work and gives the same error code. So it might be related to R or Rserve. Meanwhile I installed RServe 1.7, but this didn't change anything.

 

Edit #3: Switched to R 2.11.1, but still the same. Now I'm really clueless. I fear that it is something really stupid, like a typo in user/password. But I've checked that many times.

Here is my debug-dump:

$ R CMD Rserve.dbg
Rserve 0.6-8 (338) (C)Copyright 2002-2011 Simon Urbanek
$Id: Rserv.c 338 2012-02-11 20:52:25Z urbanek $

Loading config file /etc/Rserv.conf
conf> command="remote", parameter="enable"
conf> command="auth", parameter="required"
conf> command="pwdfile", parameter="Rserve_user"
conf> command="plaintext", parameter="disable"
conf> command="su", parameter="client"
conf> command="cachepwd", parameter="yes"
Loaded config file /etc/Rserv.conf

R version 2.15.2 (2012-10-26) -- "Trick or Treat"
Copyright (C) 2012 The R Foundation for Statistical Computing
ISBN 3-900051-07-0
Platform: x86_64-pc-linux-gnu (64-bit)
...

Rserve: Ok, ready to answer queries.
connection accepted.
sending ID string.

header read result: 16
DUMP [16]: 01 00 00 00 18 00 00 00 00 00 00 00 00 00 00 00
loading buffer (awaiting 24 bytes)
parsing parameters (buf=0x23389c0, len=24)
DUMP [24]: 04 14 00 00 6d 79 75 73 65 72 0a 75 4b 39 7a 6c 39 62 65 4d 32 53 35 4d
PAR[0]: 00000018 (PAR_LEN=20, PAR_TYPE=4, large=no, c=0x23389c0, ptr=0x23389c4)
CMD=00000001, pars=1
Authentication attempt (login='myuser',pwd='uK9zl9beM2S5M',pwdfile='Rserve_user')
OUT.sendResp(void data)
DUMP [16]: 02 00 01 41 00 00 00 00 00 00 00 00 00 00 00 00