Skip to content

Commit 305b847

Browse files
Fixes karlheyes#430 /admin/listclients with URL auth
Normally the /admin/listclients?mountpoint=/stream URL is accessible by authenticating with the <source-password> (when not using Mountpoint Authentication. However when specifying <authentication type="url"> with the stream_auth option the end-point returns 403 Forbidden with "Mountpoint in use". This PR correctly detects /admin/listclients as a source admin request and fixes karlheyes#430
1 parent a8cfaae commit 305b847

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/auth.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -606,6 +606,11 @@ void auth_postprocess_source (auth_client *auth_user)
606606
DEBUG2 ("metadata request (%s, %s)", req, mount);
607607
admin_mount_request (client);
608608
}
609+
else if (strncmp ("/admin/listclients", req, 18) == 0)
610+
{
611+
DEBUG1 ("admin listclients request on mount %s", mount);
612+
admin_mount_request (client);
613+
}
609614
else
610615
{
611616
DEBUG1 ("on mountpoint %s", mount);

0 commit comments

Comments
 (0)