Direkt zum Inhalt
Startseite

Main navigation

  • Startseite
  • Neue Frage stellen!
User account menu
  • Anmelden

Pfadnavigation

  1. Startseite

Apache Solr 8 / 7 mit Basic Auth schützen

By Gast (nicht überprüft), 24 Dezember, 2019

Hier, wie ich solr HTTP Basic Auth eingerichtet habe.

1. Neue Datei erstellen:

/var/solr/data/security.json

2. Defaults von Solr hinzufügen: 
 

{
"authentication":{ 
   "blockUnknown": true, 
   "class":"solr.BasicAuthPlugin",
   "credentials":{"solr":"IV0EHq1OnNrj6gvRCwvFwTrZ1+z1oBbnQdiVC3otuq0= Ndd7LKvVBAaZIF0QAVi1ekCfAJXr1GGfLtRUXhgrF8c="}, 
   "realm":"My Solr users", 
   "forwardCredentials": false 
},
"authorization":{
   "class":"solr.RuleBasedAuthorizationPlugin",
   "permissions":[{"name":"security-edit",
      "role":"admin"}], 
   "user-role":{"solr":"admin"} 
}}

3.Passwort von Admin-User "solr" ändern:

curl --user solr:SolrRocks http://localhost:8983/solr/admin/authentication -H 'Content-type:application/json' -d '{"set-user": {"solr":"MeinNeuesKennwort"}}'

4. Neue User für die Suche erstellen:

curl --user solr:MeinNeuesKennwort http://localhost:8983/solr/admin/authentication -H 'Content-type:application/json' -d '{"set-user": {"Mario":"MariosPassword", "Evina":"EvinasPassword"}}'

 

  • SOLR
  • Basic Authentication

Comments

Hilfe zum Textformat
CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.

Neueste Kommentare

  • Anfragen werden für…

    1 Woche 6 Tage ago
    BadRequestHttpException: The theme must be passed as a query argument in Drupal \ system \ Controller \ AssetControllerBase->deliver()
    Read more
  • Uncaught Error: Class/function not found: [Drupal.shs.AppModel]

    3 Wochen 2 Tage ago
    Drupal Upgrade (Drupal 9 » Drupal 10)
    Read more
  • Patch back_to_top.js

    3 Wochen 2 Tage ago
    Drupal Upgrade (Drupal 9 » Drupal 10)
    Read more
  • Patches

    1 Monat 3 Wochen ago
    Drupal Upgrade (Drupal 9 » Drupal 10)
    Read more
  • Millisekunden vom Bildname…

    3 Wochen 2 Tage ago
    Mehrere Dateinamen (Bilder usw) schnell aktualisieren: Batch rename mit Windows PowerShell
    Read more
  • Fragen zu Drupal 10 Cache

    2 Monate 1 Woche ago
    4 Wege um Drupal Cache zu löschen / leeren?
    Read more
  • Systemsteuerung >>…

    3 Wochen 2 Tage ago
    Windows 11 - Ruhezustand aktivieren (Energiemenü / Power Button)
    Read more
  • Solution:
    sudo chmod 777 -R…

    2 Monate 2 Wochen ago
    User warning: mkdir(): Permission Denied in FileStorage->createDirectory() (Line 123 in web/core/lib/Drupal/Component/PhpStorage/FileStorage.php).
    Read more
  • Alternativ mit SFTP : 
    sftp…

    2 Monate 2 Wochen ago
    Server-to-Server Transfer - Download vie SCP / SSH / SFTP
    Read more
  • Plesk

    3 Monate 1 Woche ago
    PHPStan failed - PHP Fatal error: Trait "Symfony\Bridge\PhpUnit\Legacy\PolyfillAssertTrait" not found in
    Read more
Die E-Mail Adresse, die den Newsletter erhalten soll.
You are already subscribed
Manage existing

Tools

  • Cookie settings
  • Inhalt hinzufügen
  • Neuester Inhalt

Fußbereich

  • Allgemeine Geschäftsbedingungen - Datenschutz - Impressum