Still banging my head against the wall on this. The point I'm trying to make here is that when the password is wrong, or when I don't enter the password, I get a clear message saying that the access was denied.
curl -u 'admin@internal'@'PASS' -X POST https://ovirt-engine1.mydomain.com/ovirt-engine/api/imagetransfers/2bf042e8-7ddd-4f43-a2b1-4a16de5c750a/finalize -k Enter host password for user 'admin@internal@PASS': <html><head><title>Error</title></head><body>access_denied: Cannot authenticate user 'admin@internal@PASS': No valid profile found in credentials..</body></html>d When I use the correct password, on the other hand, I get no stdout, making me believe that the (correct) password is accepted, and works.I can easily login to ovirt-engine/api/imagetransfers and see the XML document. Here is the full stdout from when I run the curl with -vv, where it prompts for the password, and I enter it correctly: ~$ curl -vv -u admin@internal -X POST https://ovirt-engine1.mydomain.com/ovirt-engine/api/imagetransfers/2bf042e8-7ddd-4f43-a2b1-4a16de5c750a/finalize -k Enter host password for user 'admin@internal': * Trying 10.1.0.6:443... * Connected to ovirt-engine1.mydomain.com (10.10.10.7) port 443 (#0) * ALPN, offering h2 * ALPN, offering http/1.1 * successfully set certificate verify locations: * CAfile: /etc/ssl/certs/ca-certificates.crt * CApath: /etc/ssl/certs * TLSv1.3 (OUT), TLS handshake, Client hello (1): * TLSv1.3 (IN), TLS handshake, Server hello (2): * TLSv1.2 (IN), TLS handshake, Certificate (11): * TLSv1.2 (IN), TLS handshake, Server key exchange (12): * TLSv1.2 (IN), TLS handshake, Server finished (14): * TLSv1.2 (OUT), TLS handshake, Client key exchange (16): * TLSv1.2 (OUT), TLS change cipher, Change cipher spec (1): * TLSv1.2 (OUT), TLS handshake, Finished (20): * TLSv1.2 (IN), TLS handshake, Finished (20): * SSL connection using TLSv1.2 / ECDHE-RSA-AES256-GCM-SHA384 * ALPN, server accepted to use http/1.1 * Server certificate: * subject: C=US; O=mydomain.com; CN=ovirt-engine1.mydomain.com * start date: Sep 17 00:08:06 2021 GMT * expire date: Oct 21 00:08:06 2022 GMT * issuer: C=US; O=mydomain.com; CN=ovirt-engine1.mydomain.com.51591 * SSL certificate verify result: self signed certificate in certificate chain (19), continuing anyway. * Server auth using Basic with user 'admin@internal' > POST > /ovirt-engine/api/imagetransfers/2bf042e8-7ddd-4f43-a2b1-4a16de5c750a/finalize > HTTP/1.1 > Host: ovirt-engine1.mydomain.com > Authorization: Basic YWRtaW5AaW5030184ZXJuYWw6d1kQnB2VHBobTlqZ2Vm0VM= > User-Agent: curl/7.74.0 > Accept: */* > * Mark bundle as not supporting multiuse < HTTP/1.1 415 Unsupported Media Type < Date: Wed, 27 Oct 2021 20:44:51 GMT < Server: Apache/2.4.37 (centos) OpenSSL/1.1.1k mod_auth_gssapi/1.6.1 mod_wsgi/4.6.4 Python/3.6 < Content-Length: 0 < Correlation-Id: 2dc94c1d-d7e2-499e-9d4f-fd332260299f < * Connection #0 to host ovirt-engine1.mydomain.com left intact Sent with ProtonMail Secure Email. ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐ On Saturday, October 23rd, 2021 at 3:35 AM, Strahil Nikolov via Users <users@ovirt.org> wrote: > That's why I put the user and the pass in single quotes... Like this: > 'user@domain'@'pass' > > Best Regards,Strahil Nikolov > > > On Thu, Oct 21, 2021 at 23:47, David White via Users<users@ovirt.org> > > wrote:_______________________________________________ > > > > Users mailing list -- users@ovirt.org > > > > To unsubscribe send an email to users-le...@ovirt.org > > > > Privacy Statement: https://www.ovirt.org/privacy-policy.html > > > > oVirt Code of Conduct: > > https://www.ovirt.org/community/about/community-guidelines/ > > > > List Archives: > > https://lists.ovirt.org/archives/list/users@ovirt.org/message/ZHKLXPAKQTCIWESHO33UAJA5ZO65BOGT/
publickey - dmwhite823@protonmail.com - 0x320CD582.asc
Description: application/pgp-keys
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Users mailing list -- users@ovirt.org To unsubscribe send an email to users-le...@ovirt.org Privacy Statement: https://www.ovirt.org/privacy-policy.html oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/message/QYF6ICREEM6IJ7O5SRONBY5V7R5YQLZ3/