]> granicus.if.org Git - pgbouncer/log
pgbouncer
6 years ago.gitignore: Add test/pgdata/
Peter Eisentraut [Mon, 23 Jul 2018 10:58:24 +0000 (12:58 +0200)]
.gitignore: Add test/pgdata/

6 years agoCorrect list of required software
Peter Eisentraut [Thu, 19 Jul 2018 16:32:04 +0000 (18:32 +0200)]
Correct list of required software

In particular, pkg-config is required for normal builds, not just from
Git.

6 years agoNormalize spelling of Git
Peter Eisentraut [Thu, 19 Jul 2018 16:24:04 +0000 (18:24 +0200)]
Normalize spelling of Git

6 years agodoc: Document SET command
Peter Eisentraut [Thu, 19 Jul 2018 16:18:13 +0000 (18:18 +0200)]
doc: Document SET command

6 years agodoc: Small improvement in quick start
Peter Eisentraut [Thu, 19 Jul 2018 12:54:17 +0000 (14:54 +0200)]
doc: Small improvement in quick start

Add an indication that the "SHOW HELP" example output is not complete.
Then we don't have to feel obliged to update it every time we add
something to the actual help output.

6 years agoMerge pull request #301 from danielgustafsson/dg-null_deref
Petr Jelinek [Wed, 13 Jun 2018 21:16:34 +0000 (23:16 +0200)]
Merge pull request #301 from danielgustafsson/dg-null_deref

Fix a double-free and a NULL pointer deref

6 years agoAvoid NULL pointer deref in parse_line
Daniel Gustafsson [Thu, 7 Jun 2018 21:04:29 +0000 (23:04 +0200)]
Avoid NULL pointer deref in parse_line

If we fail to calloc the rule buffer, going to failed: will deref
rule via the rule_free() call. Avoid by returning false directly
and bypass the failed: block.

6 years agoAvoid double-free in parse_filename
Daniel Gustafsson [Thu, 7 Jun 2018 20:59:53 +0000 (22:59 +0200)]
Avoid double-free in parse_filename

If the fopen() call fails parse_namefile() frees the filename buffer
fn, and the caller does the same. Avoid freeing in parse_namefile()
and leave the cleanup to the caller.

6 years agoFix whitespace errors reported by Git
Peter Eisentraut [Thu, 15 Mar 2018 17:20:20 +0000 (13:20 -0400)]
Fix whitespace errors reported by Git

6 years agodoc: Improve signals documentation
Peter Eisentraut [Thu, 8 Mar 2018 22:18:13 +0000 (17:18 -0500)]
doc: Improve signals documentation

Add SIGUSR1 and SIGUSR2.  Fix grammar a bit.

6 years agoPort mkauth.py to Python 3
Peter Eisentraut [Wed, 27 Dec 2017 22:30:46 +0000 (17:30 -0500)]
Port mkauth.py to Python 3

fixes #263

6 years agoTravis CI: Test make deb target
Peter Eisentraut [Wed, 27 Dec 2017 00:31:22 +0000 (19:31 -0500)]
Travis CI: Test make deb target

6 years agoFix mistake in test setup
Peter Eisentraut [Tue, 26 Dec 2017 21:55:08 +0000 (16:55 -0500)]
Fix mistake in test setup

This caused the test test_database_change to fail.

6 years agoFix psql invocation in tests
Peter Eisentraut [Tue, 26 Dec 2017 21:49:36 +0000 (16:49 -0500)]
Fix psql invocation in tests

Always run psql with -X, otherwise some tests fail if there is something
in .psqlrc producing output.  Also fix some potential portability
problems in option syntax: Put non-option arguments last, don't mix
options with and without arguments.

7 years agov1.8.1 pgbouncer_1_8_1
Peter Eisentraut [Wed, 20 Dec 2017 13:32:23 +0000 (08:32 -0500)]
v1.8.1

7 years agoTravis CI: Add configure arguments matrix
Peter Eisentraut [Tue, 19 Dec 2017 23:43:44 +0000 (18:43 -0500)]
Travis CI: Add configure arguments matrix

7 years agoTravis CI: Convert script to single YAML block
Peter Eisentraut [Wed, 20 Dec 2017 00:09:41 +0000 (19:09 -0500)]
Travis CI: Convert script to single YAML block

Otherwise the scripts are all run independently of each other, which
doesn't make sense.

7 years agoTravis CI: Add test for building from dist tarball
Peter Eisentraut [Tue, 19 Dec 2017 21:54:24 +0000 (16:54 -0500)]
Travis CI: Add test for building from dist tarball

Check that the distribution tarball can actually be built from, in case
it's missing a file.  Also check `make install` while we're here.

7 years agoAdd include/pam.h to distribution tarball
Peter Eisentraut [Tue, 19 Dec 2017 23:15:25 +0000 (18:15 -0500)]
Add include/pam.h to distribution tarball

fixes #261

7 years agov1.8 pgbouncer_1_8
Peter Eisentraut [Tue, 19 Dec 2017 13:35:54 +0000 (08:35 -0500)]
v1.8

7 years agodoc: Fix rst syntax
Peter Eisentraut [Tue, 19 Dec 2017 14:19:05 +0000 (09:19 -0500)]
doc: Fix rst syntax

Words ending in underscore are links.  This confuses pandoc (for the web
site) (but apparently not rst2man).  Escape with backslash to fix.

7 years agoDisplay 0 ttl for stale DNS entries in SHOW DNS_HOSTS
Petr Jelinek [Mon, 18 Dec 2017 21:08:12 +0000 (22:08 +0100)]
Display 0 ttl for stale DNS entries in SHOW DNS_HOSTS

7 years agoTravis CI: Add dist target to script
Peter Eisentraut [Mon, 18 Dec 2017 16:34:58 +0000 (11:34 -0500)]
Travis CI: Add dist target to script

7 years agoUse strerror() instead of %m for portability
Peter Eisentraut [Mon, 18 Dec 2017 15:54:32 +0000 (10:54 -0500)]
Use strerror() instead of %m for portability

7 years agoMinor spelling and grammar improvements
Peter Eisentraut [Sat, 16 Dec 2017 20:31:31 +0000 (15:31 -0500)]
Minor spelling and grammar improvements

7 years agoMerge pull request #260 from petere/doc-fixes
Petr Jelinek [Fri, 15 Dec 2017 16:38:27 +0000 (17:38 +0100)]
Merge pull request #260 from petere/doc-fixes

detect and fix errors in documentation sources

7 years agodoc: Fix duplicate target name
Peter Eisentraut [Thu, 14 Dec 2017 19:14:34 +0000 (14:14 -0500)]
doc: Fix duplicate target name

Since there are two sections called "auth_user", we need to make one of
them an explicit target so we can link to it.

7 years agodoc: Catch warnings and errors from rst2man
Peter Eisentraut [Thu, 14 Dec 2017 19:06:59 +0000 (14:06 -0500)]
doc: Catch warnings and errors from rst2man

Make rst2man exit with a non-zero exit status when there are warnings or
errors in the source.

7 years agoTravis CI: Add python-docutils as dependency
Peter Eisentraut [Thu, 14 Dec 2017 19:03:00 +0000 (14:03 -0500)]
Travis CI: Add python-docutils as dependency

for rst2man

7 years agoFix handling of absent rst2man
Peter Eisentraut [Thu, 14 Dec 2017 18:54:58 +0000 (13:54 -0500)]
Fix handling of absent rst2man

The makefile line

    RST2MAN ?= rst2man

didn't have the desired effect, because config.mak sets RST2MAN, and ?=
doesn't do anything if the variable is set to empty.  So instead let
configure put in a default value if the program cannot be found.

7 years agoAdd Travis CI
Peter Eisentraut [Wed, 6 Dec 2017 21:49:46 +0000 (16:49 -0500)]
Add Travis CI

7 years agoMerge pull request #257 from eulerto/default-values-fix
Peter Eisentraut [Wed, 13 Dec 2017 18:40:52 +0000 (13:40 -0500)]
Merge pull request #257 from eulerto/default-values-fix

Use default values in config file

7 years agoUpdate libusual
Peter Eisentraut [Wed, 13 Dec 2017 17:45:25 +0000 (12:45 -0500)]
Update libusual

7 years agoUse default values in config file
Euler Taveira [Fri, 8 Dec 2017 22:00:24 +0000 (22:00 +0000)]
Use default values in config file

Instead of using arbritary values, use the default values. It is to
avoid surprises if you just remove comment character (;). I also did
some cosmetic changes. While at it, add some default information for
auth_user.

7 years agoMerge pull request #253 from eshkinkot/master
Petr Jelinek [Fri, 8 Dec 2017 17:31:32 +0000 (18:31 +0100)]
Merge pull request #253 from eshkinkot/master

Receiving NotificationResponse asynchronously should not raise warning

7 years agoReceiving NotificationResponse asynchronously should not raise warning
Sergey Burladyan [Tue, 5 Dec 2017 14:02:19 +0000 (17:02 +0300)]
Receiving NotificationResponse asynchronously should not raise warning

7 years agoImprove handling of auth_file cache and errors
Petr Jelinek [Sat, 4 Nov 2017 16:12:59 +0000 (17:12 +0100)]
Improve handling of auth_file cache and errors

Fixes #192

7 years agoImprove the hba.conf parsing issue warning
Petr Jelinek [Sat, 4 Nov 2017 15:18:20 +0000 (16:18 +0100)]
Improve the hba.conf parsing issue warning

This was added by 4f3dfc9, the wording was no ideal.

7 years agoMerge pull request #243 from gplv2/master
Petr Jelinek [Sat, 4 Nov 2017 15:17:16 +0000 (16:17 +0100)]
Merge pull request #243 from gplv2/master

add clues for sysadmin concerning HBA issues

7 years agoMerge pull request #229 from petere/crash-fix
Petr Jelinek [Sat, 4 Nov 2017 15:03:58 +0000 (16:03 +0100)]
Merge pull request #229 from petere/crash-fix

Fix crash from memory overrun

7 years agoMerge pull request #235 from petere/pgbouncer-ini-auth-type
Petr Jelinek [Sat, 4 Nov 2017 13:13:11 +0000 (14:13 +0100)]
Merge pull request #235 from petere/pgbouncer-ini-auth-type

pgbouncer.ini: Add missing auth_type's to comment

7 years agoAdd STATS_TOTALS/STATS_AVERAGES into HELP
Petr Jelinek [Sat, 4 Nov 2017 13:11:53 +0000 (14:11 +0100)]
Add STATS_TOTALS/STATS_AVERAGES into HELP

And separate the STATS* commands to it's own line.

Missed by 656844e

7 years agoMerge pull request #238 from 'tvondra/statistics-fixes'
Petr Jelinek [Sat, 4 Nov 2017 13:00:19 +0000 (14:00 +0100)]
Merge pull request #238 from 'tvondra/statistics-fixes'

Track separate stats for queries and transactions

7 years agoadd clues for sysadmin concerning HBA issues
Glenn Plas [Mon, 23 Oct 2017 10:37:32 +0000 (12:37 +0200)]
add clues for sysadmin concerning HBA issues

7 years agoAdd SHOW STATS_TOTALS / STATS_AVERAGES as admin commands
Tomas Vondra [Sun, 24 Sep 2017 16:49:35 +0000 (18:49 +0200)]
Add SHOW STATS_TOTALS / STATS_AVERAGES as admin commands

We already had SHOW STATS, but after adding the wait_time colums it
got a bit too wide for regular screens. That's incovenient, as the
admin interface does not selecting only some of the columns.

But in most cases we're only interested either in totals or averages,
not both at the same time. So let's add commands showing only the
relevant subset of columns.

7 years agoTrack total time spent waiting for server
Tomas Vondra [Wed, 20 Sep 2017 21:22:39 +0000 (23:22 +0200)]
Track total time spent waiting for server

There already is maxwait column in pool details, showing how long
the oldest client is currently waiting. Which is useful, but it does
not allow us to easily break client time into the three basic
categories: busy, idle and waiting.

This adds tracking of total time spent waiting for a server, and
adds it as wait_time into SHOW STATS. The total value is simply
accumulated over time, the average value is 'per second' value.

The value is only updated when a client acquires a server, so if
a client is waiting indefinitely, the wait time won't be reflected
in the value. That would require inspecting the the list of waiting
clients, which seems like overkill. Moreover, that's what maxwait
is good for.

7 years agoTrack separate stats for queries and transactions
Tomas Vondra [Wed, 20 Sep 2017 19:00:17 +0000 (21:00 +0200)]
Track separate stats for queries and transactions

The documentation claimed avg_query tracks average query duration,
but it was only updated when switching into 'idle' state. So in
transaction or session pooling modes, it was actually the duration
of the whole transaction, including 'idle in transaction' time and
time spen executing (multiple) queries.

This was causing confusion, e.g. when the application was keeping
transactions open without executing any queries. In that case the
avg_query metric was increasing although the database was handling
queries just fine (without any slow-down).

Instead of just fixing the avg_query metric, it seems quite useful
to have timing data both for queries and transactions. So this
patch replaces

 - total_query_time
 - avg_query

with

 - total_xact_time
 - total_query_time
 - avg_xact_time
 - avg_query_time

This is also related to the definition of 'request' which was used
to compute the avg_query, and so it equal to a transaction. This
patch replaces the counter with two - one for transactions and one
for queries. As we also computed avg_req, the patch replaces

 - total_requests
 - avg_req

with

 - total_xact_count
 - total_query_time
 - avg_xact_count
 - avg_query_count

Note: This is likely to affect monitoring solutions, as the column
names in SHOW STATS change.

7 years agoCorrects bits vs bytes
Peter Eisentraut [Fri, 11 Aug 2017 18:52:08 +0000 (14:52 -0400)]
Corrects bits vs bytes

Change "b/s" to "B/s", because the units are bytes.

7 years agopgbouncer.ini: Add missing auth_type's to comment
Peter Eisentraut [Tue, 19 Sep 2017 16:10:55 +0000 (12:10 -0400)]
pgbouncer.ini: Add missing auth_type's to comment

7 years agoFix crash from memory overrun
Peter Eisentraut [Thu, 24 Aug 2017 17:11:03 +0000 (13:11 -0400)]
Fix crash from memory overrun

Fixes: #228
7 years agoMerge branch 'master' of https://github.com/pgbouncer/pgbouncer
Marko Kreen [Sun, 9 Jul 2017 13:07:40 +0000 (16:07 +0300)]
Merge branch 'master' of https://github.com/pgbouncer/pgbouncer

7 years agoMerge pull request #217 from mnencia/patch-1
Marko Kreen [Sun, 9 Jul 2017 13:06:41 +0000 (16:06 +0300)]
Merge pull request #217 from mnencia/patch-1

dns_zone_check_period is available also with c-ares backend

7 years agoUpgrade libusual
Marko Kreen [Sun, 9 Jul 2017 13:03:58 +0000 (16:03 +0300)]
Upgrade libusual

7 years agoDont set flags when doing with-cares=auto
Marko Kreen [Sun, 9 Jul 2017 13:03:31 +0000 (16:03 +0300)]
Dont set flags when doing with-cares=auto

7 years agoMerge pull request #218 from mnencia/patch-2
Marko Kreen [Sun, 9 Jul 2017 12:58:37 +0000 (15:58 +0300)]
Merge pull request #218 from mnencia/patch-2

Fix --with-cares=auto

7 years agoMerge pull request #219 from rubenv/patch-1
Marko Kreen [Sun, 9 Jul 2017 12:56:50 +0000 (15:56 +0300)]
Merge pull request #219 from rubenv/patch-1

Add missing space

7 years agoAdd missing space
Ruben Vermeersch [Fri, 7 Jul 2017 08:42:08 +0000 (10:42 +0200)]
Add missing space

Turns this:

    Stats: 21 req/s, in 579668 b/s, out 422757 b/s,query 84412 us

Into this:

    Stats: 21 req/s, in 579668 b/s, out 422757 b/s, query 84412 us

7 years agoFix --with-cares=auto
Marco Nenciarini [Thu, 29 Jun 2017 12:01:33 +0000 (14:01 +0200)]
Fix --with-cares=auto

7 years agodns_zone_check_period is available also with c-ares backend
Marco Nenciarini [Thu, 29 Jun 2017 10:29:50 +0000 (12:29 +0200)]
dns_zone_check_period is available also with c-ares backend

7 years agoMerge pull request #196 from mhagander/auth_type_mode
Marko Kreen [Wed, 28 Jun 2017 15:21:27 +0000 (18:21 +0300)]
Merge pull request #196 from mhagander/auth_type_mode

Fix incorrect references to auth_mode

7 years agoMerge pull request #202 from gbartolini/dev/142
Marko Kreen [Wed, 28 Jun 2017 15:15:50 +0000 (18:15 +0300)]
Merge pull request #202 from gbartolini/dev/142

Global management of 'auth_user'

7 years agoMerge pull request #183 from jeduardo/master
Marko Kreen [Wed, 28 Jun 2017 15:02:04 +0000 (18:02 +0300)]
Merge pull request #183 from jeduardo/master

Increased maximum length for postgres password

7 years agoMerge branch 'master' of https://github.com/pgbouncer/pgbouncer
Marko Kreen [Wed, 28 Jun 2017 15:00:46 +0000 (18:00 +0300)]
Merge branch 'master' of https://github.com/pgbouncer/pgbouncer

7 years agosbuf: check for EAGAIN in connect
Marko Kreen [Wed, 28 Jun 2017 14:58:51 +0000 (17:58 +0300)]
sbuf: check for EAGAIN in connect

seems it can be returned in win32

fixes: #188 #161

7 years agohba: call next_token after parsing filename (#209)
Marko Kreen [Wed, 28 Jun 2017 14:50:50 +0000 (17:50 +0300)]
hba: call next_token after parsing filename (#209)

7 years agohba: parse_namefile did unnecessary free
Marko Kreen [Wed, 28 Jun 2017 14:48:30 +0000 (17:48 +0300)]
hba: parse_namefile did unnecessary free

Fixes: #209
7 years agoMerge pull request #213 from procore/add_client_wait_time
Marko Kreen [Wed, 28 Jun 2017 14:38:16 +0000 (17:38 +0300)]
Merge pull request #213 from procore/add_client_wait_time

Add per-socket wait times to SHOW SOCKET.

7 years agoMerge pull request #212 from procore/add_maxwait_us
Marko Kreen [Wed, 28 Jun 2017 14:37:55 +0000 (17:37 +0300)]
Merge pull request #212 from procore/add_maxwait_us

Add a maxwait microseconds column to SHOW POOLS.

7 years agoMerge pull request #214 from secwall/master
Marko Kreen [Wed, 28 Jun 2017 14:35:21 +0000 (17:35 +0300)]
Merge pull request #214 from secwall/master

Fix memleak on pg_hba file reload

7 years agoFree user_name and db_name in hba rule_free to avoid memory leak on hba file reload
secwall [Sat, 10 Jun 2017 10:45:35 +0000 (13:45 +0300)]
Free user_name and db_name in hba rule_free to avoid memory leak on hba file reload

7 years agoAdd per-socket wait times to show commands.
Terrence Cole [Fri, 9 Jun 2017 20:12:19 +0000 (13:12 -0700)]
Add per-socket wait times to show commands.

7 years agoAdd a maxwait microseconds column to SHOW POOLS.
Terrence Cole [Fri, 9 Jun 2017 18:39:31 +0000 (11:39 -0700)]
Add a maxwait microseconds column to SHOW POOLS.

7 years agoFix a couple of typos
Gabriele Bartolini [Sun, 16 Apr 2017 19:16:41 +0000 (21:16 +0200)]
Fix a couple of typos

Signed-off-by: Gabriele Bartolini <gabriele.bartolini@2ndQuadrant.it>
7 years agoGlobal management of `auth_user`
Gabriele Bartolini [Fri, 14 Apr 2017 08:23:39 +0000 (10:23 +0200)]
Global management of `auth_user`

Fixes #142

Signed-off-by: Gabriele Bartolini <gabriele.bartolini@2ndQuadrant.it>
7 years agoFix incorrect references to auth_mode
Magnus Hagander [Thu, 30 Mar 2017 15:25:57 +0000 (17:25 +0200)]
Fix incorrect references to auth_mode

The parameter is called auth_type, not auth_mode.

7 years agoImproved comment on max password length
J. Eduardo [Tue, 7 Feb 2017 22:13:44 +0000 (23:13 +0100)]
Improved comment on max password length

7 years agoAdded warning for max password length
J. Eduardo [Tue, 7 Feb 2017 22:11:57 +0000 (23:11 +0100)]
Added warning for max password length

7 years agoIncreased maximum length for postgres password
J. Eduardo [Tue, 7 Feb 2017 21:34:34 +0000 (22:34 +0100)]
Increased maximum length for postgres password

7 years agoMerge pull request #178 from marco44/master
Petr Jelinek [Tue, 24 Jan 2017 19:59:13 +0000 (20:59 +0100)]
Merge pull request #178 from marco44/master

Add paused and disabled field to the SHOW DATABASES command

7 years agoAdd paused and disabled field on the show databases command
Marc Cousin [Tue, 24 Jan 2017 15:25:54 +0000 (16:25 +0100)]
Add paused and disabled field on the show databases command

7 years agoMerge pull request #157 from anayrat/master
Marko Kreen [Tue, 27 Dec 2016 15:06:38 +0000 (17:06 +0200)]
Merge pull request #157 from anayrat/master

Mention auth_user in pgbouncer.ini example

7 years agoMerge pull request #171 from macobo/patch-1
Marko Kreen [Tue, 27 Dec 2016 14:43:08 +0000 (16:43 +0200)]
Merge pull request #171 from macobo/patch-1

Improve build instructions

8 years agodoc: auth_query - mention that function is run in target db
Marko Kreen [Tue, 20 Dec 2016 10:39:25 +0000 (12:39 +0200)]
doc: auth_query - mention that function is run in target db

8 years agoUpgrade libusual
Marko Kreen [Sat, 17 Dec 2016 11:10:04 +0000 (13:10 +0200)]
Upgrade libusual

Mainly to get OpenSSL 1.1 fixes

Fixes: #159
8 years agoImprove build instructions
Karl-Aksel Puulmann [Fri, 16 Dec 2016 12:15:13 +0000 (14:15 +0200)]
Improve build instructions

Ran into this when building a docker image.

8 years agoMerge branch 'master' of https://github.com/pgbouncer/pgbouncer
Marko Kreen [Tue, 6 Dec 2016 16:57:44 +0000 (18:57 +0200)]
Merge branch 'master' of https://github.com/pgbouncer/pgbouncer

8 years agoconsole: change server_encoding to UTF8 from SQL_ASCII
Marko Kreen [Tue, 6 Dec 2016 16:42:22 +0000 (18:42 +0200)]
console: change server_encoding to UTF8 from SQL_ASCII

cannot see any benefit of keeping SQL_ASCII around here.

8 years agoconsole: use UTF8 instead UNICODE as client_encoding
Marko Kreen [Tue, 6 Dec 2016 16:40:25 +0000 (18:40 +0200)]
console: use UTF8 instead UNICODE as client_encoding

Seems UTF8 is proper encoding and UNICODE is alias.
Java JDBC driver gets confused by UNICODE.

Fixes: #165
8 years agoMerge pull request #137 from waldyrious/patch-1
Marko Kreen [Mon, 5 Dec 2016 15:37:44 +0000 (17:37 +0200)]
Merge pull request #137 from waldyrious/patch-1

add license title

8 years agoMerge pull request #162 from mhagander/typofix
Marko Kreen [Mon, 5 Dec 2016 15:27:36 +0000 (17:27 +0200)]
Merge pull request #162 from mhagander/typofix

Fix typo

8 years agoFix typo
Magnus Hagander [Tue, 15 Nov 2016 13:45:46 +0000 (14:45 +0100)]
Fix typo

8 years agoMerge pull request #147 from cpatru/issue-141
Petr Jelinek [Mon, 7 Nov 2016 18:19:02 +0000 (19:19 +0100)]
Merge pull request #147 from cpatru/issue-141

Don't send ReadyForQuery on main_connection for CancelQuery requests

8 years agoMention auth_user in pgbouncer.ini example
anayrat [Thu, 27 Oct 2016 08:27:53 +0000 (10:27 +0200)]
Mention auth_user in pgbouncer.ini example

8 years agoDon't send ReadyForQuery on main_connection as it may cause clients to get out of...
cpatru [Wed, 14 Sep 2016 17:17:40 +0000 (18:17 +0100)]
Don't send ReadyForQuery on main_connection as it may cause clients to get out of sync.

8 years agoMerge pull request #155 from mhagander/pam_thread_fix
Petr Jelinek [Tue, 25 Oct 2016 15:44:48 +0000 (17:44 +0200)]
Merge pull request #155 from mhagander/pam_thread_fix

Make pam_init happen in the child process when forking

8 years agoMake pam_init happen in the child process when forking
Magnus Hagander [Tue, 25 Oct 2016 15:12:49 +0000 (17:12 +0200)]
Make pam_init happen in the child process when forking

Previously, pam_init would happen in the master process that then
quickly died, rendering pam authentication inoperative.

8 years agoadd license title
Waldir Pimenta [Fri, 1 Jul 2016 17:36:59 +0000 (18:36 +0100)]
add license title

It's not strictly required, but it's useful metadata, and part of the recommended license template text (see http://choosealicense.com/licenses/isc/ and https://opensource.org/licenses/isc-license)

8 years agoAdd PAM authentication support
Ilya Staheev [Mon, 21 Mar 2016 16:29:08 +0000 (17:29 +0100)]
Add PAM authentication support

Adds support for PAM authentication. Since PAM API is synchronous, this
patch introduces PAM authentication thread which processes the
authentication requests in backgrouns so that the normal poll operations
of the main thread are not blocked.

This feature is turned off by default and has to be enabled by
--with-pam configure parameter.

Author: Ilya Staheev
Reviewed by Marko Kreen and Petr Jelinek

8 years agohba: Skip unparseable lines, keep parsing to the end.
Marko Kreen [Mon, 14 Mar 2016 10:09:07 +0000 (12:09 +0200)]
hba: Skip unparseable lines, keep parsing to the end.

Rejecting whole HBA file on failure seems bad usability.

Show warning but keep parsing.

Fixes #118

8 years agotls: reject client TLS request on unix socket
Marko Kreen [Sat, 12 Mar 2016 12:31:26 +0000 (14:31 +0200)]
tls: reject client TLS request on unix socket