Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

multifile auth module error: "Password file is missing" #1480

Closed
totaam opened this issue Apr 1, 2017 · 9 comments
Closed

multifile auth module error: "Password file is missing" #1480

totaam opened this issue Apr 1, 2017 · 9 comments

Comments

@totaam
Copy link
Collaborator

totaam commented Apr 1, 2017

Issue migrated from trac ticket # 1480

component: server | priority: major | resolution: fixed

2017-04-01 20:19:22: Denis01 created the issue


Hello
Centos7.3
Proxy connection
Using HTML client and code (below) to connect thru Proxy

$ cat > multifile.txt <<EOF 
ubuntu1|secretpassword1|1000|1000|:100 
ubuntu2|secretpassword2|1000|1000|tcp:127.0.0.1:10000 
EOF 
$ xpra start --start-child=/bin/gnome-calculator --bind-tcp=0.0.0.0:10000 :100 -d auth 
$ xpra proxy :13 --bind-tcp=0.0.0.0:10002  --tcp-auth=multifile:filename=multifile.txt -d auth

Tried:

  • multifile.txt
  • ./multifile.txt
  • /multifile.txt

and all the time "Error: password file is missing"
Thank you

@totaam
Copy link
Collaborator Author

totaam commented Apr 2, 2017

2017-04-02 10:50:00: antoine changed owner from antoine to Denis01

@totaam
Copy link
Collaborator Author

totaam commented Apr 2, 2017

2017-04-02 10:50:00: antoine changed component from android to server

@totaam
Copy link
Collaborator Author

totaam commented Apr 2, 2017

2017-04-02 10:50:00: antoine edited the issue description

@totaam
Copy link
Collaborator Author

totaam commented Apr 2, 2017

2017-04-02 10:50:00: antoine commented


I believe that you're being bitten by the same issue as #1264#comment:7 : you have to use absolute paths for filenames when the server daemonizes. r15488 now allows relative file paths.
(please always specify what version you are running)

Relevant excerpts from the proxy's "-d auth" log output should look like this:

init_auth(..) auth class=None, tcp auth class=('multifile', <class 'xpra.server.auth.multifile_auth.Authenticator'>, {'filename': 'multifile.txt'}), ssl auth class=('multifile', <class 'xpra.server.auth.multifile_auth.Authenticator'>, {'filename': 'multifile.txt'}), vsock auth class=None
Authentication required by multi password file authenticator module
 sending challenge for username 'ubuntu1' using hmac+sha512 digest
processing authentication with multi password file, response=f919cd5..., client_salt=646261..., challenge_sent=True, digest_modes=['hmac', 'xor', 'hmac+whirlpool', 'hmac+sha512', 'hmac+sha384', 'hmac+sha256', 'hmac+sha224', 'hmac+sha1', 'hmac+sha', 'hmac+ripemd160', 'hmac+md5', 'hmac+md4', 'hmac+ecdsa-with-SHA1', 'hmac+dsaWithSHA', 'hmac+dsaEncryption', 'hmac+SHA512', 'hmac+SHA384', 'hmac+SHA256', 'hmac+SHA224', 'hmac+SHA1', 'hmac+SHA', 'hmac+RIPEMD160', 'hmac+MD5', 'hmac+MD4', 'hmac+DSA-SHA', 'hmac+DSA']
authenticate_hmac(f919cd57..., dba8c52b7...)
mtime(/home/antoine/tmp/multifile.txt)=1491124949.21
loaded 94 bytes from 'multifile.txt'
...
authenticate: auth-info(ubuntu1)=('secretpassword1', 1000, 1000, [':100'], {}, {})
multifile authenticate_hmac(f919cd..) password='secretpassword1', hex(salt)=0601560e560.., hash=f919cd57...
authentication challenge passed

@denis01: please close if that works for you.
Please also edit the title: AFAIK, this has nothing to do with auth=allow.

@totaam
Copy link
Collaborator Author

totaam commented Apr 2, 2017

2017-04-02 17:16:04: Denis01 changed status from new to closed

@totaam
Copy link
Collaborator Author

totaam commented Apr 2, 2017

2017-04-02 17:16:04: Denis01 set resolution to fixed

@totaam
Copy link
Collaborator Author

totaam commented Apr 2, 2017

2017-04-02 17:16:04: Denis01 changed title from Proxy with --auth=allow does not work to Authorisation. Multifile is missing

@totaam totaam closed this as completed Apr 2, 2017
@totaam
Copy link
Collaborator Author

totaam commented Jul 14, 2017

2017-07-14 18:56:08: antoine changed title from Authorisation. Multifile is missing to multifile auth module error: "Password file is missing"

@totaam
Copy link
Collaborator Author

totaam commented Jul 14, 2017

2017-07-14 18:56:08: antoine commented


(editing ticket title)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant