orientdb icon indicating copy to clipboard operation
orientdb copied to clipboard

guest user cannot list databases via console

Open giastfader opened this issue 13 years ago • 1 comments

Hi, in the orientdb-server-config.cml files there is the user section like this: <users> <user name="root" password="41B9FF54202570209A4AD3121DD3AF891582A58FB2C5174B4A58F7E7FCEE8CD5" resources="*"/> <user name="guest" password="guest" resources="connect,server.listDatabases"/> </users>

However via console the user guest cannot execute the command list databases. In fact the following error is raised:

orientdb> connect remote:localhost guest guest Connecting to remote Server instance [remote:localhost] with user 'guest'...OK

orientdb> list databases

Error: com.orientechnologies.orient.core.exception.OStorageException: Cannot retrieve the configuration list Error: com.orientechnologies.orient.core.exception.OSecurityAccessException: User 'guest' cannot access to the resource [server.dblist]. Use another server user or change permission in the file config/orientdb-server-config.xml orientdb>

To resolve this issue the config file should be modified like: <user name="guest" password="guest" resources="connect,server.listDatabases,server.dblist"/>

This because the permission required by the binary protocol is different by the one required by the http protocol.

I think that, for consistency, the server.dblist resource should be added by default when the guest user entry is created within the xml config file

giastfader avatar Jan 20 '13 21:01 giastfader

Thanks!

lvca avatar Jan 23 '13 15:01 lvca