Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
32617 มุมมอง

I can read the Postgres server username and password inside the openerp-server.conf file, how to hide/encrypt the Postgres password?

Removing/changing the values will prevent openerp server from connecting to postgresql database server.

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

You can't BUT you can make it secure.

  1. Use an user just for openerp not a general admin of postgresql
  2. Adjust the permisions of the file:

    chmod 600 openerp-server.conf

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

You should change your PostgreSQL Server configuration.

If you run the OpenERP server with a openerp user make sure the pg_hba.conf file has a setting telling the postgresql server to use peer or ident authentication and not MD5.

If this is the case you are able to just put the db_user=openerp in your OpenERP server config file and it will no longer be needed to put the password in the config file.

André Schenkels

อวตาร
ละทิ้ง

In my openerp-server.conf, there is only written admin_passwd in plain text, but not the password for postgres database user, although my psql authentication mode in pg_hba.conf file is set to MD5...

Related Posts ตอบกลับ มุมมอง กิจกรรม
2
พ.ค. 25
1055
6
ก.ค. 17
11258
2
ธ.ค. 15
9174
Master password for database แก้ไขแล้ว
1
ต.ค. 20
3559
1
ก.พ. 20
4549