You've already forked OpenIntegrations
mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2026-06-09 23:56:48 +02:00
17 lines
590 B
Plaintext
Vendored
17 lines
590 B
Plaintext
Vendored
Address = "127.0.0.1:1234";
|
|
Login = "bayselonarrend";
|
|
Password = "12we...";
|
|
Base = "main";
|
|
|
|
ConnectionParams = New Structure("authSource", "admin");
|
|
ConnectionString = OPI_MongoDB.GenerateConnectionString(Address, , Login, Password, ConnectionParams);
|
|
Connection = OPI_MongoDB.CreateConnection(ConnectionString);
|
|
|
|
RoleArray = New Array;
|
|
RoleArray.Add("read");
|
|
RoleArray.Add("userAdmin");
|
|
|
|
UserName = "newuser";
|
|
UserPassword = "1234";
|
|
|
|
Result = OPI_MongoDB.CreateUser(Connection, UserName, RoleArray, Base, UserPassword); |