[ https://issues.apache.org/jira/browse/SOLR-9481?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15606885#comment-15606885 ]
Jan Høydahl commented on SOLR-9481: ----------------------------------- Quick copy/paste instructions for testing: {code} cd solr ant server echo '{ "authentication": { "class": "solr.BasicAuthPlugin" }, "authorization": { "class": "solr.RuleBasedAuthorizationPlugin" } }' > server/solr/security.json bin/solr start bin/solr create -c foo # Add user curl http://localhost:8983/solr/admin/authentication \ -H 'Content-type:application/json' \ -d '{"set-user": {"solr" : "solr"}}' # Verify security.json cat server/solr/security.json # Set permissions curl http://localhost:8983/solr/admin/authorization \ -H 'Content-type:application/json' \ -d '{ "set-permission": {"name":"all", "role": "admin"}, "set-user-role" : {"solr": ["admin"]}}' # Will return error curl http://localhost:8983/solr/admin/info/system # Will succeed curl -u solr:solr http://localhost:8983/solr/admin/info/system {code} > BasicAuthPlugin should support standalone mode > ---------------------------------------------- > > Key: SOLR-9481 > URL: https://issues.apache.org/jira/browse/SOLR-9481 > Project: Solr > Issue Type: Improvement > Security Level: Public(Default Security Level. Issues are Public) > Components: security > Reporter: Jan Høydahl > Assignee: Jan Høydahl > Labels: authentication > Fix For: 6.3, master (7.0) > > Attachments: SOLR-9481.patch, SOLR-9481.patch > > > The BasicAuthPlugin currently only supports SolrCloud, and reads users and > credentials from ZK /security.json > Add support for standalone mode operation -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org