[GRASS-dev] [GRASS GIS] #1951: Postgres database login problems in db.databases

GRASS GIS trac at osgeo.org
Wed Jul 30 02:20:59 PDT 2014


#1951: Postgres database login problems in db.databases
---------------------------------------------------+------------------------
 Reporter:  davidinosauro                          |       Owner:  grass-dev@…              
     Type:  defect                                 |      Status:  new                      
 Priority:  normal                                 |   Milestone:  7.0.0                    
Component:  Database                               |     Version:  svn-trunk                
 Keywords:  python, postgres, login, db.databases  |    Platform:  Linux                    
      Cpu:  x86-64                                 |  
---------------------------------------------------+------------------------

Comment(by neteler):

 In order to get interactive password prompting back (removed in r32551),
 could we use code from here for *only* db.login?

 sprompt.c: http://doxygen.postgresql.org/sprompt_8c_source.html

 {{{
 /*
  * simple_prompt
  *
  * Generalized function especially intended for reading in usernames and
  * password interactively. Reads from /dev/tty or stdin/stderr.
  *
  * prompt:      The prompt to print
  * maxlen:      How many characters to accept
  * echo:        Set to false if you want to hide what is entered (for
 passwords)
  *
  * Returns a malloc()'ed string with the input (w/o trailing newline).
  */
 }}}

 Rationale: It is "ugly" to send clear text passwords through command line.

-- 
Ticket URL: <http://trac.osgeo.org/grass/ticket/1951#comment:5>
GRASS GIS <http://grass.osgeo.org>



More information about the grass-dev mailing list