[
https://issues.apache.org/jira/browse/SOLR-7755?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Noble Paul updated SOLR-7755:
-----------------------------
Description:
example: authentication commands
{code}
curl http://localhost:8983/solr/admin/authentication -d '{
"add-user": {"tom":"TomIsCool"},
"set-password":{ "tom":"TomIsUberCool"}
}'
{code}
example : authorization commands
{code}
curl http://localhost:8983/solr/admin/authorization -d '{
{"set-user-role": { "tom": ["admin","dev"]},
"set-permission":{"name": "security-admin",
"path": ["/admin/authentication","/admin/authorization"],
"role": "admin"
},
"set-permission":{"name":"some-permission",
"collection":"acoll",
"path":"/nonexistentpath",
"role":"guest",
"before":"security-admin"
}
}'
{code}
Please note that the set of parameters required for a basic ZK based impl will
be completely different from that of a Kerberos implementation. However the
framework would remain the same. The end point will remain the same, though
was:
example
{code}
curl http://localhost:8983/solr/admin/authorization -H
'Content-type:application/json' -d '{
"add-user" : {"name" : "tom",
"role": ["admin","dev"]
},
"create-permission" :{"name":"mycoll-update",
"before" :"some-other-permission",
"path":"/update/*"
"role":["dev","admin"]
}
}'
{code}
Please note that the set of parameters required for a basic ZK based impl will
be completely different from that of a Kerberos implementation. However the
framework would remain the same. The end point will remain the same, though
> An API to edit the Basic Auth security params
> ---------------------------------------------
>
> Key: SOLR-7755
> URL: https://issues.apache.org/jira/browse/SOLR-7755
> Project: Solr
> Issue Type: Sub-task
> Components: security
> Reporter: Noble Paul
> Assignee: Noble Paul
>
> example: authentication commands
> {code}
> curl http://localhost:8983/solr/admin/authentication -d '{
> "add-user": {"tom":"TomIsCool"},
> "set-password":{ "tom":"TomIsUberCool"}
> }'
> {code}
> example : authorization commands
> {code}
> curl http://localhost:8983/solr/admin/authorization -d '{
> {"set-user-role": { "tom": ["admin","dev"]},
> "set-permission":{"name": "security-admin",
> "path": ["/admin/authentication","/admin/authorization"],
> "role": "admin"
> },
> "set-permission":{"name":"some-permission",
> "collection":"acoll",
> "path":"/nonexistentpath",
> "role":"guest",
> "before":"security-admin"
> }
> }'
> {code}
> Please note that the set of parameters required for a basic ZK based impl
> will be completely different from that of a Kerberos implementation. However
> the framework would remain the same. The end point will remain the same,
> though
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]