mirror of
https://github.com/samba-team/samba.git
synced 2025-01-14 19:24:43 +03:00
102e4840b3
- Disallow, for now, any ScriptTransport access. A serious security issue has been described, and since we don't currently need it for anything, disable it completely. - Continued clean-up towards implementing the common authentication code (This used to be commit 07817a5489dd8cc6c85c10116f4dba43d798ef03)
20 lines
365 B
Plaintext
20 lines
365 B
Plaintext
<%
|
|
/* Return true to allow access; false otherwise */
|
|
function json_authenticate(serviceComponents, method, scriptTransportId)
|
|
{
|
|
// Don't allow any access via ScriptTransport, for now.
|
|
if (scriptTransportId != jsonrpc.Constant.ScriptTransport.NotInUse)
|
|
{
|
|
return false;
|
|
}
|
|
|
|
return true;
|
|
}
|
|
|
|
/*
|
|
* Local Variables:
|
|
* mode: c
|
|
* End:
|
|
*/
|
|
%>
|