Expand secondary password file feature, so that you can use these

files to restrict the set of users that can connect to a database
but can still use the pg_shadow password. (You just leave off the
password field in the secondary file.)
This commit is contained in:
Peter Eisentraut
2000-07-04 16:32:01 +00:00
parent 1c2f735aa7
commit 554e56e628
7 changed files with 115 additions and 92 deletions

View File

@ -26,6 +26,6 @@ extern char *crypt_getpwdreloadfilename(void);
extern MsgType crypt_salt(const char *user);
#endif
extern int crypt_verify(Port *port, const char *user, const char *pgpass);
extern int crypt_verify(const Port *port, const char *user, const char *pgpass);
#endif

View File

@ -1,6 +1,6 @@
#ifndef PASSWORD_H
#define PASSWORD_H
int verify_password(char *auth_arg, char *user, char *password);
int verify_password(const Port *port, const char *user, const char *password);
#endif