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

NC 26 edition does not work with basi auth #256

Closed
beertje44 opened this issue May 6, 2023 · 4 comments · Fixed by #261
Closed

NC 26 edition does not work with basi auth #256

beertje44 opened this issue May 6, 2023 · 4 comments · Fixed by #261

Comments

@beertje44
Copy link

Seems that http(s)://username:password@host:port does not work with the latest elesticsearch php connector. Line 384/385 of fulltextsearch_elasticsearch/lib/Platform/ElasticSearchPlatform.php should read:

$cb = ClientBuilder::create() ->setHosts($hosts) ->setBasicAuthentication($username, $password) ->setRetries(3);

Guess you could extract that from the hostname, but since you can provide several hosts, I guess it would be better and easier to add an optional username and password field to the config form? :)

@baltaner
Copy link

baltaner commented May 7, 2023

Thanks a lot - its working now!
Same problem here with nc26 and es7.17.10 and readonlyrest-1.48.0_es7.17.10
But in your fix I habe to hardcode username/password - $username/$password doesn't work for me.

@beertje44
Copy link
Author

Yeah this is just some ducktape ;)

We'll have to wait for the maintainber to respond for a decent fix.

@depthwise
Copy link

+1 - hardcoded the credentials for now in my instance, and indexing works now.

@R0Wi
Copy link
Member

R0Wi commented Jun 5, 2023

PR is here #261

@R0Wi R0Wi linked a pull request Jun 29, 2023 that will close this issue
ArtificialOwl added a commit that referenced this issue Aug 8, 2023
Authentication for ES8 added Closing #256
ArtificialOwl added a commit that referenced this issue Aug 8, 2023
[stable27] Authentication for ES8 added Closing #256
ArtificialOwl added a commit that referenced this issue Aug 8, 2023
[stable26] Authentication for ES8 added Closing #256
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

Successfully merging a pull request may close this issue.

4 participants