[Live-devel] authorizing users

Ross Finlayson finlayson at live555.com
Thu Aug 15 00:44:06 PDT 2013


> is it possible to change UserAuthenticationDatabase class so that it can be used to limit user access to specific streams?

Yes, you can do this; however, you don't need to make any changes to the "UserAuthenticationDatabase" code.  Instead, the way you would do this would be to subclass "RTSPServer", and reimplement the virtual function
	virtual Boolean specialClientUserAccessCheck(int clientSocket, struct sockaddr_in& clientAddr, char const* urlSuffix, char const *username);
(see "liveMedia/include/RTSPServer.hh")

You would use a (regular, unmodified) "UserAuthenticationDatabase" to first reject users who don't have *any* access to the server.  Then, your reimplemented "specialClientUserAccessCheck()" function would reject users who aren't allowed to access the specific stream (named by "urlSuffix") that's being named.

Ross Finlayson
Live Networks, Inc.
http://www.live555.com/

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20130815/afb036f0/attachment.html>


More information about the live-devel mailing list