我必须处理一个旧的CMDBUild,但不幸的是,没有人拥有超级用户密码。所以我想直接在postgres数据库中改变它。CMDBuild密码重置
我管理吨连接在psql一起cmdbuild数据库。我有一个表调用用户,但仅select * from User;
给我:
current_user
--------------
postgres
(1 row)
但SELECT column_name FROM information_schema.columns WHERE table_name ='User';
给了我更多的列:
column_name
-------------
Id
IdClass
Code
Description
Status
User
BeginDate
Notes
Username
Password
Email
(11 lignes)
所以第一选择似乎是错误的,这里是10分人列? 此外,我在CMDBuild技术手册中找到了这些行,我尝试了但没有结果。
execute the following SQL commands to create the "Superuser" user (in the example with
username admin and password admin):
INSERT INTO "User" ("Status", "Username", "IdClass", "Password", "Description") VALUES ('A', 'admin',
'"User"', 'DQdKW32Mlms=', 'Administrator');
INSERT INTO "Role" ("Status", "IdClass", "Administrator", "Description") VALUES ('A', '"Role"', true,
'SuperUser');
INSERT INTO "Map_UserRole" ("Status", "IdClass2", "IdClass1", "IdObj2", "IdObj1", "IdDomain") VALUES ('A
有人可以帮助我恢复或发送CMDBuild中的超级用户密码吗? 在此先感谢。
非常感谢您的回答。感谢你,我找到了一种方法来取代旧的密码,现在CMDBuild的作品!密码被腌制,这就是为什么约翰开膛手没有找到它。我在源代码中找到盐。 – Leitoo0
@ Leitoo0很高兴为您提供帮助。 –