For reference, the way to connect to a DB without server credentials is by
using options.databaseUser and options.databasePassword, for example:
myLocalOrient: {
adapter: 'sails-orientdb',
host: 'localhost',
port: 2424,
database: 'testdb',
options: {
databaseUser: 'testdb',
databasePassword: 'testdb'
}
}
By not including user and password, sails-orientdb will skip server
authentication meaning it won't be able to perform server operations such
as creating a DB, for example.
Regards,
Dário
On Sunday, 12 July 2015 21:39:55 UTC+1, Christopher Armstrong wrote:
>
> Hi there,
>
>
> I've just started off with OrientDb. I've added a new user called "testdb"
> with password "testdb" and assigned the "admin" role to the user over the
> web interface. I can connect with this user over the OrientDB web interface
> but I can't connect with my Javascript code.
>
>
> It works when I try logging in with the root user that is defined in the
> orientdb-server-config.xml.
> How can I grant access to my "testdb" user so that I can connect to
> OrientDb remotely without having to add the users to
> orientdb-server-config.xml? It's totally unpractical if I need to add all
> the database users to this file manually.
>
>
> Thanks for your assistance.
>
>
> Here the error:
>
> error: A hook (`orm`) failed to load!
>
> error: OrientDB.RequestError: Wrong user/password to [connect] to the
> remote OrientDB Server instance. Get the user/password from the
> config/orientdb-server-config.xml file
>
> at Operation.parseError
> (/Users/charms/Documents/Temp/testbackend/node_modules/sails-orientdb/node_modules/oriento/lib/transport/binary/protocol28/operation.js:832:13)
>
> at Operation.consume
> (/Users/charms/Documents/Temp/testbackend/node_modules/sails-orientdb/node_modules/oriento/lib/transport/binary/protocol28/operation.js:422:35)
>
> at Connection.process
> (/Users/charms/Documents/Temp/testbackend/node_modules/sails-orientdb/node_modules/oriento/lib/transport/binary/connection.js:360:17)
>
> at Connection.handleSocketData
> (/Users/charms/Documents/Temp/testbackend/node_modules/sails-orientdb/node_modules/oriento/lib/transport/binary/connection.js:279:17)
>
> at Socket.emit (events.js:95:17)
>
> at Socket.<anonymous> (_stream_readable.js:764:14)
>
> at Socket.emit (events.js:92:17)
>
> at emitReadable_ (_stream_readable.js:426:10)
>
> at emitReadable (_stream_readable.js:422:5)
>
> at readableAddChunk (_stream_readable.js:165:9)
>
> at Socket.Readable.push (_stream_readable.js:127:10)
>
> at TCP.onread (net.js:528:21)
>
--
---
You received this message because you are subscribed to the Google Groups
"OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.