Posted
almost 5 years
ago
by
[email protected] (LarsDW223)
I can confirm that it is not found.
I noticed two things:
- the auto-completion immediately suggests "toolbox" on entering "t" (it gives two entries: "Toolbox" and "toolbox")
- toolbox is also a tag
I assume the name collision with a tag might cause the problem.
|
Posted
almost 5 years
ago
by
[email protected] (LarsDW223)
I can confirm that it is not found.
I noticed two things:
- the auto-completion immediately suggests "toolbox" on entering "t" (it gives two entries: "Toolbox" and "toolbox")
- toolbox is also a tag
I assume the name collision with a tag might cause the problem.
|
Posted
almost 5 years
ago
by
[email protected] (darusdp)
I'm trying to use DokuWiki XML-RPC API via the PowerShell DokuWiki module by AndyDLP and getting a 401 Access Denied no permission to the xmlrpc.php file due to invalid credentials.
The environment is:
W2K16 Server DataCenter VM
IIS 10.x
PHP 7.1
... [More]
DokuWiki Release 2018-04-22a "Greebo"
Remote - Enable the remote API system. This is checked to Enable
RemoteUser - this is blank to allow all users
XML-RPC path: D:\dokuwiki\lib\exe
NTFS Permissions:
IUSR - Full control
SYSTEM - Full Control
NETWORK SERVICE - Full Control
Administrators - Full Control (this is the server's local account)
Users - Read,Execute,List (this is the server's local account)
{my domain username} - Full Control
The best I can tell IIS (and w3wp.exe) and PHP is using NETWORK SERVICE as its account. I verified this with PROCMON.
These PowerShell commands seem to work as expect, granted they are not suppose to do much. I used these as debugging to show that in some cases there is no access denied.
#Works with response of: XML-RPC server accepts POST requests only. This was expected.
$httpResponse = Invoke-WebRequest -Uri 'http://gruwikipre01/lib/exe/xmlrpc.php' -Method Post -UseBasicParsing -Credential $cred -SessionVariable WebSession
#Works with response of: XML-RPC server accepts POST requests only. This was expected.
$httpResponse = Invoke-WebRequest -Uri 'http://gruwikipre01/lib/exe/xmlrpc.php' -Method Post -Headers @{ "Content-Type" = "text/xml"; } -UseBasicParsing -Credential $cred -SessionVariable WebSession
#Works with response of: -32700, parse error. not well formed. This was expected.
$httpResponse = Invoke-WebRequest -Uri 'http://gruwikipre01/lib/exe/xmlrpc.php' -Method Post -Headers @{ "Content-Type" = "text/xml"; } -Body " " -UseBasicParsing -Credential $cred -SessionVariable WebSession
#Works with response of: -32603, Method does not exist. This was expected.
$httpResponse = Invoke-WebRequest -Uri 'http://gruwikipre01/lib/exe/xmlrpc.php' -Method Post -Headers @{ "Content-Type" = "text/xml"; } -Body "" -UseBasicParsing -Credential $cred -SessionVariable WebSession
#Works with response of current time. This was expected.
$httpResponse = Invoke-WebRequest -Uri 'http://gruwikipre01/lib/exe/xmlrpc.php' -Method Post -Headers @{ "Content-Type" = "text/xml"; } -Body "dokuwiki.getTime" -UseBasicParsing -Credential $cred -SessionVariable WebSession
#Works with response of: 2018-04-22a "Greebo". This was expected.
$httpResponse = Invoke-WebRequest -Uri 'http://gruwikipre01/lib/exe/xmlrpc.php' -Method Post -Headers @{ "Content-Type" = "text/xml"; } -Body "dokuwiki.getVersion" -UseBasicParsing -Credential $cred -SessionVariable WebSession
The above indicates to me that access to D:\dokuwiki\lib\exe\xmlrpc.php is granted. I even modified that PHP file to have lines of code that positively proved that it was being executed.
Now, here is the command that fails.
#Does NOT work, 401 - Unauthorized: Access is denied due to invalid credentials.
#You do not have permission to view this directory or page using the credentials that you supplied.
$httpResponse = Invoke-WebRequest -Uri 'http://gruwikipre01/lib/exe/xmlrpc.php' -Method Post -Headers @{ "Content-Type" = "text/xml"; } -Body "dokuwiki.loginGRUWIKIPRE01\AdministratorEBh9UI5B9lORH" -UseBasicParsing -SessionVariable WebSession -ErrorAction Stop
I put code in XMLRPC.PHP to see if it even got to the file and it doesn't (access is denied).
I have used various username's with their password (that have NTFS file permission) with still access denied.
I can believe that it truly is access denied with credentials provided but I don't know why (since they were granted), nor how to fix the issue. Maybe access is being denied to some other file first.
However, PROCMON has only 1 line about file access, next.
11:03:12.2597442 AM w3wp.exe 4920 FASTIO_NETWORK_QUERY_OPEN D:\dokuwiki\lib\exe\xmlrpc.php SUCCESS CreationTime: 10/17/2017 10:14:28 AM, LastAccessTime: 10/17/2017 10:14:28 AM, LastWriteTime: 6/5/2019 12:57:39 PM, ChangeTime: 6/5/2019 6:36:14 PM, AllocationSize: 4,096, EndOfFile: 1,947, FileAttributes: A
PROCMON Event Properties for the Process (some details omitted because I doubt they are relevant):
Command Line: c:\windows\system32\inetsrv\w3wp.exe -ap "DefaultAppPool" -v "v4.0" -l "webengine4.dll" -a \\.\pipe\iisipm2173ae5d-9f06-4a98-8a82-929cc8d97cb1 -h "C:\inetpub\temp\apppools\DefaultAppPool\DefaultAppPool.config" -w "" -m 0 -t 20 -ta 0
PID: 4920
User: NT AUTHORITY\NETWORK SERVICE
Auth ID: 00000000:000003e4
Maybe there is some IIS or PHP or ??? configuration that is causing access denied. I don't know much about configuring at HTTP server.
You will notice that I'm not using the AndyDLP PSDokuWiki commands (they don't work either). I'm using the Invoke-WebRequest that this command 'Connect-DokuServer -ComputerName 'gruwikipre01' -Credential $cred' builds
So it's not an issue with PSSDokuWiki. I don't think it is a PowerShell Invoke-WebRequest cmdlet issue. But something on the server side.
Any help appreciated. Response with what other info may be needed.
Also, any aid (in detail) on how a web request from a client is processed by IIS and sent to PHP and eventually to xmlrpc.php. Maybe that will lead to where the issue is being caused.
Thanks, Dave
[Less]
|
Posted
almost 5 years
ago
by
[email protected] (darusdp)
I'm trying to use DokuWiki XML-RPC API via the PowerShell DokuWiki module by AndyDLP and getting a 401 Access Denied no permission to the xmlrpc.php file due to invalid credentials.
The environment is:
W2K16 Server DataCenter VM
IIS 10.x
PHP 7.1
... [More]
DokuWiki Release 2018-04-22a "Greebo"
Remote - Enable the remote API system. This is checked to Enable
RemoteUser - this is blank to allow all users
XML-RPC path: D:\dokuwiki\lib\exe
NTFS Permissions:
IUSR - Full control
SYSTEM - Full Control
NETWORK SERVICE - Full Control
Administrators - Full Control (this is the server's local account)
Users - Read,Execute,List (this is the server's local account)
{my domain username} - Full Control
The best I can tell IIS (and w3wp.exe) and PHP is using NETWORK SERVICE as its account. I verified this with PROCMON.
These PowerShell commands seem to work as expect, granted they are not suppose to do much. I used these as debugging to show that in some cases there is no access denied.
#Works with response of: XML-RPC server accepts POST requests only. This was expected.
$httpResponse = Invoke-WebRequest -Uri 'http://gruwikipre01/lib/exe/xmlrpc.php' -Method Post -UseBasicParsing -Credential $cred -SessionVariable WebSession
#Works with response of: XML-RPC server accepts POST requests only. This was expected.
$httpResponse = Invoke-WebRequest -Uri 'http://gruwikipre01/lib/exe/xmlrpc.php' -Method Post -Headers @{ "Content-Type" = "text/xml"; } -UseBasicParsing -Credential $cred -SessionVariable WebSession
#Works with response of: -32700, parse error. not well formed. This was expected.
$httpResponse = Invoke-WebRequest -Uri 'http://gruwikipre01/lib/exe/xmlrpc.php' -Method Post -Headers @{ "Content-Type" = "text/xml"; } -Body " " -UseBasicParsing -Credential $cred -SessionVariable WebSession
#Works with response of: -32603, Method does not exist. This was expected.
$httpResponse = Invoke-WebRequest -Uri 'http://gruwikipre01/lib/exe/xmlrpc.php' -Method Post -Headers @{ "Content-Type" = "text/xml"; } -Body "" -UseBasicParsing -Credential $cred -SessionVariable WebSession
#Works with response of current time. This was expected.
$httpResponse = Invoke-WebRequest -Uri 'http://gruwikipre01/lib/exe/xmlrpc.php' -Method Post -Headers @{ "Content-Type" = "text/xml"; } -Body "dokuwiki.getTime" -UseBasicParsing -Credential $cred -SessionVariable WebSession
#Works with response of: 2018-04-22a "Greebo". This was expected.
$httpResponse = Invoke-WebRequest -Uri 'http://gruwikipre01/lib/exe/xmlrpc.php' -Method Post -Headers @{ "Content-Type" = "text/xml"; } -Body "dokuwiki.getVersion" -UseBasicParsing -Credential $cred -SessionVariable WebSession
The above indicates to me that access to D:\dokuwiki\lib\exe\xmlrpc.php is granted. I even modified that PHP file to have lines of code that positively proved that it was being executed.
Now, here is the command that fails.
#Does NOT work, 401 - Unauthorized: Access is denied due to invalid credentials.
#You do not have permission to view this directory or page using the credentials that you supplied.
$httpResponse = Invoke-WebRequest -Uri 'http://gruwikipre01/lib/exe/xmlrpc.php' -Method Post -Headers @{ "Content-Type" = "text/xml"; } -Body "dokuwiki.loginGRUWIKIPRE01\AdministratorEBh9UI5B9lORH" -UseBasicParsing -SessionVariable WebSession -ErrorAction Stop
I put code in XMLRPC.PHP to see if it even got to the file and it doesn't (access is denied).
I have used various username's with their password (that have NTFS file permission) with still access denied.
I can believe that it truly is access denied with credentials provided but I don't know why (since they were granted), nor how to fix the issue. Maybe access is being denied to some other file first.
However, PROCMON has only 1 line about file access, next.
11:03:12.2597442 AM w3wp.exe 4920 FASTIO_NETWORK_QUERY_OPEN D:\dokuwiki\lib\exe\xmlrpc.php SUCCESS CreationTime: 10/17/2017 10:14:28 AM, LastAccessTime: 10/17/2017 10:14:28 AM, LastWriteTime: 6/5/2019 12:57:39 PM, ChangeTime: 6/5/2019 6:36:14 PM, AllocationSize: 4,096, EndOfFile: 1,947, FileAttributes: A
PROCMON Event Properties for the Process (some details omitted because I doubt they are relevant):
Command Line: c:\windows\system32\inetsrv\w3wp.exe -ap "DefaultAppPool" -v "v4.0" -l "webengine4.dll" -a \\.\pipe\iisipm2173ae5d-9f06-4a98-8a82-929cc8d97cb1 -h "C:\inetpub\temp\apppools\DefaultAppPool\DefaultAppPool.config" -w "" -m 0 -t 20 -ta 0
PID: 4920
User: NT AUTHORITY\NETWORK SERVICE
Auth ID: 00000000:000003e4
Maybe there is some IIS or PHP or ??? configuration that is causing access denied. I don't know much about configuring at HTTP server.
You will notice that I'm not using the AndyDLP PSDokuWiki commands (they don't work either). I'm using the Invoke-WebRequest that this command 'Connect-DokuServer -ComputerName 'gruwikipre01' -Credential $cred' builds
So it's not an issue with PSSDokuWiki. I don't think it is a PowerShell Invoke-WebRequest cmdlet issue. But something on the server side.
Any help appreciated. Response with what other info may be needed.
Also, any aid (in detail) on how a web request from a client is processed by IIS and sent to PHP and eventually to xmlrpc.php. Maybe that will lead to where the issue is being caused.
Thanks, Dave
[Less]
|
Posted
almost 5 years
ago
by
[email protected] (darusdp)
I'm trying to use DokuWiki XML-RPC API via the PowerShell DokuWiki module by AndyDLP and getting a 401 Access Denied no permission to the xmlrpc.php file due to invalid credentials.
The environment is:
W2K16 Server DataCenter VM
IIS 10.x
PHP 7.1
... [More]
DokuWiki Release 2018-04-22a "Greebo"
Remote - Enable the remote API system. This is checked to Enable
RemoteUser - this is blank to allow all users
XML-RPC path: D:\dokuwiki\lib\exe
NTFS Permissions:
IUSR - Full control
SYSTEM - Full Control
NETWORK SERVICE - Full Control
Administrators - Full Control (this is the server's local account)
Users - Read,Execute,List (this is the server's local account)
{my domain username} - Full Control
The best I can tell IIS (and w3wp.exe) and PHP is using NETWORK SERVICE as its account. I verified this with PROCMON.
These PowerShell commands seem to work as expect, granted they are not suppose to do much. I used these as debugging to show that in some cases there is no access denied.
#Works with response of: XML-RPC server accepts POST requests only. This was expected.
$httpResponse = Invoke-WebRequest -Uri 'http://gruwikipre01/lib/exe/xmlrpc.php' -Method Post -UseBasicParsing -Credential $cred -SessionVariable WebSession
#Works with response of: XML-RPC server accepts POST requests only. This was expected.
$httpResponse = Invoke-WebRequest -Uri 'http://gruwikipre01/lib/exe/xmlrpc.php' -Method Post -Headers @{ "Content-Type" = "text/xml"; } -UseBasicParsing -Credential $cred -SessionVariable WebSession
#Works with response of: -32700, parse error. not well formed. This was expected.
$httpResponse = Invoke-WebRequest -Uri 'http://gruwikipre01/lib/exe/xmlrpc.php' -Method Post -Headers @{ "Content-Type" = "text/xml"; } -Body " " -UseBasicParsing -Credential $cred -SessionVariable WebSession
#Works with response of: -32603, Method does not exist. This was expected.
$httpResponse = Invoke-WebRequest -Uri 'http://gruwikipre01/lib/exe/xmlrpc.php' -Method Post -Headers @{ "Content-Type" = "text/xml"; } -Body "" -UseBasicParsing -Credential $cred -SessionVariable WebSession
#Works with response of current time. This was expected.
$httpResponse = Invoke-WebRequest -Uri 'http://gruwikipre01/lib/exe/xmlrpc.php' -Method Post -Headers @{ "Content-Type" = "text/xml"; } -Body "dokuwiki.getTime" -UseBasicParsing -Credential $cred -SessionVariable WebSession
#Works with response of: 2018-04-22a "Greebo". This was expected.
$httpResponse = Invoke-WebRequest -Uri 'http://gruwikipre01/lib/exe/xmlrpc.php' -Method Post -Headers @{ "Content-Type" = "text/xml"; } -Body "dokuwiki.getVersion" -UseBasicParsing -Credential $cred -SessionVariable WebSession
The above indicates to me that access to D:\dokuwiki\lib\exe\xmlrpc.php is granted. I even modified that PHP file to have lines of code that positively proved that it was being executed.
Now, here is the command that fails.
#Does NOT work, 401 - Unauthorized: Access is denied due to invalid credentials.
#You do not have permission to view this directory or page using the credentials that you supplied.
$httpResponse = Invoke-WebRequest -Uri 'http://gruwikipre01/lib/exe/xmlrpc.php' -Method Post -Headers @{ "Content-Type" = "text/xml"; } -Body "dokuwiki.loginGRUWIKIPRE01\AdministratorEBh9UI5B9lORH" -UseBasicParsing -SessionVariable WebSession -ErrorAction Stop
I put code in XMLRPC.PHP to see if it even got to the file and it doesn't (access is denied).
I have used various username's with their password (that have NTFS file permission) with still access denied.
I can believe that it truly is access denied with credentials provided but I don't know why (since they were granted), nor how to fix the issue. Maybe access is being denied to some other file first.
However, PROCMON has only 1 line about file access, next.
11:03:12.2597442 AM w3wp.exe 4920 FASTIO_NETWORK_QUERY_OPEN D:\dokuwiki\lib\exe\xmlrpc.php SUCCESS CreationTime: 10/17/2017 10:14:28 AM, LastAccessTime: 10/17/2017 10:14:28 AM, LastWriteTime: 6/5/2019 12:57:39 PM, ChangeTime: 6/5/2019 6:36:14 PM, AllocationSize: 4,096, EndOfFile: 1,947, FileAttributes: A
PROCMON Event Properties for the Process (some details omitted because I doubt they are relevant):
Command Line: c:\windows\system32\inetsrv\w3wp.exe -ap "DefaultAppPool" -v "v4.0" -l "webengine4.dll" -a \\.\pipe\iisipm2173ae5d-9f06-4a98-8a82-929cc8d97cb1 -h "C:\inetpub\temp\apppools\DefaultAppPool\DefaultAppPool.config" -w "" -m 0 -t 20 -ta 0
PID: 4920
User: NT AUTHORITY\NETWORK SERVICE
Auth ID: 00000000:000003e4
Maybe there is some IIS or PHP or ??? configuration that is causing access denied. I don't know much about configuring at HTTP server.
You will notice that I'm not using the AndyDLP PSDokuWiki commands (they don't work either). I'm using the Invoke-WebRequest that this command 'Connect-DokuServer -ComputerName 'gruwikipre01' -Credential $cred' builds
So it's not an issue with PSSDokuWiki. I don't think it is a PowerShell Invoke-WebRequest cmdlet issue. But something on the server side.
Any help appreciated. Response with what other info may be needed.
Also, any aid (in detail) on how a web request from a client is processed by IIS and sent to PHP and eventually to xmlrpc.php. Maybe that will lead to where the issue is being caused.
Thanks, Dave
[Less]
|
Posted
almost 5 years
ago
by
[email protected] (darusdp)
I'm trying to use DokuWiki XML-RPC API via the PowerShell DokuWiki module by AndyDLP and getting a 401 Access Denied no permission to the xmlrpc.php file due to invalid credentials.
The environment is:
W2K16 Server DataCenter VM
IIS 10.x
PHP 7.1
... [More]
DokuWiki Release 2018-04-22a "Greebo"
Remote - Enable the remote API system. This is checked to Enable
RemoteUser - this is blank to allow all users
XML-RPC path: D:\dokuwiki\lib\exe
NTFS Permissions:
IUSR - Full control
SYSTEM - Full Control
NETWORK SERVICE - Full Control
Administrators - Full Control (this is the server's local account)
Users - Read,Execute,List (this is the server's local account)
{my domain username} - Full Control
The best I can tell IIS (and w3wp.exe) and PHP is using NETWORK SERVICE as its account. I verified this with PROCMON.
These PowerShell commands seem to work as expect, granted they are not suppose to do much. I used these as debugging to show that in some cases there is no access denied.
#Works with response of: XML-RPC server accepts POST requests only. This was expected.
$httpResponse = Invoke-WebRequest -Uri 'http://gruwikipre01/lib/exe/xmlrpc.php' -Method Post -UseBasicParsing -Credential $cred -SessionVariable WebSession
#Works with response of: XML-RPC server accepts POST requests only. This was expected.
$httpResponse = Invoke-WebRequest -Uri 'http://gruwikipre01/lib/exe/xmlrpc.php' -Method Post -Headers @{ "Content-Type" = "text/xml"; } -UseBasicParsing -Credential $cred -SessionVariable WebSession
#Works with response of: -32700, parse error. not well formed. This was expected.
$httpResponse = Invoke-WebRequest -Uri 'http://gruwikipre01/lib/exe/xmlrpc.php' -Method Post -Headers @{ "Content-Type" = "text/xml"; } -Body " " -UseBasicParsing -Credential $cred -SessionVariable WebSession
#Works with response of: -32603, Method does not exist. This was expected.
$httpResponse = Invoke-WebRequest -Uri 'http://gruwikipre01/lib/exe/xmlrpc.php' -Method Post -Headers @{ "Content-Type" = "text/xml"; } -Body "" -UseBasicParsing -Credential $cred -SessionVariable WebSession
#Works with response of current time. This was expected.
$httpResponse = Invoke-WebRequest -Uri 'http://gruwikipre01/lib/exe/xmlrpc.php' -Method Post -Headers @{ "Content-Type" = "text/xml"; } -Body "dokuwiki.getTime" -UseBasicParsing -Credential $cred -SessionVariable WebSession
#Works with response of: 2018-04-22a "Greebo". This was expected.
$httpResponse = Invoke-WebRequest -Uri 'http://gruwikipre01/lib/exe/xmlrpc.php' -Method Post -Headers @{ "Content-Type" = "text/xml"; } -Body "dokuwiki.getVersion" -UseBasicParsing -Credential $cred -SessionVariable WebSession
The above indicates to me that access to D:\dokuwiki\lib\exe\xmlrpc.php is granted. I even modified that PHP file to have lines of code that positively proved that it was being executed.
Now, here is the command that fails.
#Does NOT work, 401 - Unauthorized: Access is denied due to invalid credentials.
#You do not have permission to view this directory or page using the credentials that you supplied.
$httpResponse = Invoke-WebRequest -Uri 'http://gruwikipre01/lib/exe/xmlrpc.php' -Method Post -Headers @{ "Content-Type" = "text/xml"; } -Body "dokuwiki.loginGRUWIKIPRE01\AdministratorEBh9UI5B9lORH" -UseBasicParsing -SessionVariable WebSession -ErrorAction Stop
I put code in XMLRPC.PHP to see if it even got to the file and it doesn't (access is denied).
I have used various username's with their password (that have NTFS file permission) with still access denied.
I can believe that it truly is access denied with credentials provided but I don't know why (since they were granted), nor how to fix the issue. Maybe access is being denied to some other file first.
However, PROCMON has only 1 line about file access, next.
11:03:12.2597442 AM w3wp.exe 4920 FASTIO_NETWORK_QUERY_OPEN D:\dokuwiki\lib\exe\xmlrpc.php SUCCESS CreationTime: 10/17/2017 10:14:28 AM, LastAccessTime: 10/17/2017 10:14:28 AM, LastWriteTime: 6/5/2019 12:57:39 PM, ChangeTime: 6/5/2019 6:36:14 PM, AllocationSize: 4,096, EndOfFile: 1,947, FileAttributes: A
PROCMON Event Properties for the Process (some details omitted because I doubt they are relevant):
Command Line: c:\windows\system32\inetsrv\w3wp.exe -ap "DefaultAppPool" -v "v4.0" -l "webengine4.dll" -a \\.\pipe\iisipm2173ae5d-9f06-4a98-8a82-929cc8d97cb1 -h "C:\inetpub\temp\apppools\DefaultAppPool\DefaultAppPool.config" -w "" -m 0 -t 20 -ta 0
PID: 4920
User: NT AUTHORITY\NETWORK SERVICE
Auth ID: 00000000:000003e4
Maybe there is some IIS or PHP or ??? configuration that is causing access denied. I don't know much about configuring at HTTP server.
You will notice that I'm not using the AndyDLP PSDokuWiki commands (they don't work either). I'm using the Invoke-WebRequest that this command 'Connect-DokuServer -ComputerName 'gruwikipre01' -Credential $cred' builds
So it's not an issue with PSSDokuWiki. I don't think it is a PowerShell Invoke-WebRequest cmdlet issue. But something on the server side.
Any help appreciated. Response with what other info may be needed.
Also, any aid (in detail) on how a web request from a client is processed by IIS and sent to PHP and eventually to xmlrpc.php. Maybe that will lead to where the issue is being caused.
Thanks, Dave
[Less]
|
Posted
almost 5 years
ago
by
[email protected] (MartinR)
The extension manager on Frustrick also fails to find it. Aparently the only thing tagged with "toolbox" is iphelper plugin.
|
Posted
almost 5 years
ago
by
[email protected] (MartinR)
The extension manager on Frustrick also fails to find it. Aparently the only thing tagged with "toolbox" is iphelper plugin.
|
Posted
almost 5 years
ago
by
[email protected] (MartinR)
The extension manager on Frustrick also fails to find it. Aparently the only thing tagged with "toolbox" is iphelper plugin.
|
Posted
almost 5 years
ago
by
[email protected] (andi)
There is no option for that. Either your template disabled it or something broke your JavaScript. Check the JS error console.
|