pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
programmatic interface into admin
3+ messages / 2 participants
[nested] [flat]

* programmatic interface into admin
@ 2001-01-02 21:12  SRINIVASARAGHAVAN, RAJESH (HP-Cupertino, ex1) <rajesh_srinivasaraghavan@am.exch.hp.com>
  0 siblings, 0 replies; 3+ messages in thread

From: SRINIVASARAGHAVAN, RAJESH (HP-Cupertino, ex1) @ 2001-01-02 21:12 UTC (permalink / raw)
  To: pgsql-admin; +Cc: 'pgsql-general@postgresql.org' <pgsql-general@postgresql.org>

hi all,
I am trying to programmatically administer postgres. Spefically, interested
in adding new user, deleting an existing user, creating and deleting
databases for a user and modifying user's password. I know that all the
above (except for password modifications) can be done using JDBC calls into
the postgres database and modifying the template1 tables. My questions are

1. Is there a security risk or any downside in interfacing directly with
postgres using jdbc queries and not using the system command line utilities
2. Can I programmatically modify the user's password on the postgres system.
Is the password of the user stored in any other place other than the
password file specified in my data directory. Is it a crypt function that
generates the password and stores it in the password file. The obvious
solution to the problem is to use a series of expects with perl on the
remote system. 

thank you for your time.

rajesh



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* programmatic interface into admin
@ 2001-01-03 01:00  SRINIVASARAGHAVAN, RAJESH (HP-Cupertino, ex1) <rajesh_srinivasaraghavan@am.exch.hp.com>
  0 siblings, 1 reply; 3+ messages in thread

From: SRINIVASARAGHAVAN, RAJESH (HP-Cupertino, ex1) @ 2001-01-03 01:00 UTC (permalink / raw)
  To: pgsql-admin; +Cc: 'pgsql-general@postgresql.org' <pgsql-general@postgresql.org>



hi all,
I am trying to programmatically administer postgres. Spefically, interested
in adding new user, deleting an existing user, creating and deleting
databases for a user and modifying user's password. I know that all the
above (except for password modifications) can be done using JDBC calls into
the postgres database and modifying the template1 tables. My questions are

1. Is there a security risk or any downside in interfacing directly with
postgres using jdbc queries and not using the system command line utilities
2. Can I programmatically modify the user's password on the postgres system.
Is the password of the user stored in any other place other than the
password file specified in my data directory. Is it a crypt function that
generates the password and stores it in the password file. The obvious
solution to the problem is to use a series of expects with perl on the
remote system. 

thank you for your time.

rajesh



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* RE: programmatic interface into admin
@ 2001-01-03 01:35  Andrew Snow <als@fl.net.au>
  parent: SRINIVASARAGHAVAN, RAJESH (HP-Cupertino, ex1) <rajesh_srinivasaraghavan@am.exch.hp.com>
  0 siblings, 0 replies; 3+ messages in thread

From: Andrew Snow @ 2001-01-03 01:35 UTC (permalink / raw)
  To: SRINIVASARAGHAVAN, RAJESH (HP-Cupertino, ex1) <rajesh_srinivasaraghavan@am.exch.hp.com>; +Cc: pgsql-admin


> 2. Can I programmatically modify the user's password on the
> postgres system.
> Is the password of the user stored in any other place other than the
> password file specified in my data directory. Is it a crypt function that
> generates the password and stores it in the password file. The obvious
> solution to the problem is to use a series of expects with perl on the
> remote system.


Please see the Postgres User's docs. There are SQL queries provided to
CREATE and DROP users, tables, and set a user's password.


- Andrew




^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2001-01-03 01:35 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2001-01-02 21:12 programmatic interface into admin SRINIVASARAGHAVAN, RAJESH (HP-Cupertino, ex1) <rajesh_srinivasaraghavan@am.exch.hp.com>
2001-01-03 01:00 programmatic interface into admin SRINIVASARAGHAVAN, RAJESH (HP-Cupertino, ex1) <rajesh_srinivasaraghavan@am.exch.hp.com>
2001-01-03 01:35 ` Andrew Snow <als@fl.net.au>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox