Like RDBMS, OrientDB also presents security based on well-known principles, users, and roles. each database has its personal users and every person has one or extra roles. Roles are the aggregate of working modes and set of permissions.
By using default OrientDB continues three special users for all database in the server −
When you are related to a database, you may question the current users on the database through using select queries at the OUser class.
If the above question is executed successfully, you will get the following output.
To create a new user, use the INSERT command. consider, in doing so, you need to set the status to active and provide it a valid position.
You can change the name for the user with the UPDATE statement.
In the same way, you can also change the password for the user.
OrientDB saves the password in a hash layout. The trigger OUserTrigger encrypts the password transparently before it saves the file.
To disable a user, use replace to replace its status from active to SUSPENDED. for example, if you need to disable all users except for admin, use the following command –
A role determines what operations a person can carry out towards a resource. particularly, this selection depends at the working mode and the rules. The rules themselves work differently, relying on the working mode.
When you are related to a database, you may question the present day roles at the database using select queries on the ORole class.
If the above query is executed successfully, you will get the following output.
To create a new role, use the INSERT statement.
In which rules decide what users belonging to positive roles can do on the databases, operating modes decide how OrientDB translates those rules. There are two types of working modes, particular by 1 and 0.
OrientDB Related Interview Questions
|RDBMS Interview Questions||Core Java Interview Questions|
|SQL Database Interview Questions||Database Interview Questions|
|Hibernate Interview Questions||Database Design Interview Questions|
|Database Administration Interview Questions||DB2 SQL Programming Interview Questions|
|Software Development Lifecycle (SDLC) Interview Questions||MongoDB Interview Questions|
All rights reserved © 2020 Wisdom IT Services India Pvt. Ltd
Wisdomjobs.com is one of the best job search sites in India.