ldap tls test fails in some environments

Поиск
Список
Период
Сортировка
От Christoph Berg
Тема ldap tls test fails in some environments
Дата
Msg-id 20200513160544.GC373033@msg.df7cb.de
обсуждение исходный текст
Ответ на Re: src/test/perl/TestLib.pm: check_pg_config needs/usr/include/postgresql/pg_config.h  (Christoph Berg <myon@debian.org>)
Ответы Re: ldap tls test fails in some environments  (Thomas Munro <thomas.munro@gmail.com>)
Список pgsql-hackers
> I just added the extra tests to the postgresql-13 package and got
> this:

Some other problem emerged here in the ldap test:

17:28:58
17:28:58 #   Failed test 'StartTLS'
17:28:58 #   at t/001_auth.pl line 169.
17:28:58 #          got: '2'
17:28:58 #     expected: '0'
17:28:58
17:28:58 #   Failed test 'LDAPS'
17:28:58 #   at t/001_auth.pl line 169.
17:28:58 #          got: '2'
17:28:58 #     expected: '0'
17:28:59
17:28:59 #   Failed test 'LDAPS with URL'
17:28:59 #   at t/001_auth.pl line 169.
17:28:59 #          got: '2'
17:28:59 #     expected: '0'
17:28:59 # Looks like you failed 3 tests of 22.
17:28:59 t/001_auth.pl ..
...
17:28:59 # diagnostic message
17:28:59 ok 18 - any attempt fails due to bad search pattern
17:28:59 # TLS
17:28:59 not ok 19 - StartTLS
17:28:59 not ok 20 - LDAPS
17:28:59 not ok 21 - LDAPS with URL
17:28:59 ok 22 - bad combination of LDAPS and StartTLS
17:28:59 Dubious, test returned 3 (wstat 768, 0x300)

src/test/ldap/tmp_check/log/slapd.log is empty.

It consistently fails on the build server, but works on my notebook.
Maybe that simply means slapd is crashing, but there's no slapd
output. Would it be possible to start slapd with "-d 255", even if
that means it doesn't background itself?

That'd be in src/test/ldap/t/001_auth.pl:

    system_or_bail $slapd, '-f', $slapd_conf, '-h', "$ldap_url $ldaps_url";

    END
    {
        kill 'INT', `cat $slapd_pidfile` if -f $slapd_pidfile;
    }

Server and test output below:

17:28:59 2020-05-13 15:28:58.136 UTC [31564] LOG:  starting PostgreSQL 13devel (Debian
13~~devel~20200513.1505-1~801.git043e3e0.pgdg+1)on x86_64-pc-linux-gnu, compiled by gcc (Debian 9.3.0-12) 9.3.0,
64-bit
17:28:59 2020-05-13 15:28:58.136 UTC [31564] LOG:  listening on Unix socket "/tmp/gM2rQtsMib/.s.PGSQL.53078"
17:28:59 2020-05-13 15:28:58.139 UTC [31565] LOG:  database system was shut down at 2020-05-13 15:28:58 UTC
17:28:59 2020-05-13 15:28:58.142 UTC [31564] LOG:  database system is ready to accept connections
17:28:59 2020-05-13 15:28:58.230 UTC [31573] [unknown] LOG:  LDAP login failed for user "?uid=test1" on server
"localhost":Invalid DN syntax
 
17:28:59 2020-05-13 15:28:58.230 UTC [31573] [unknown] DETAIL:  LDAP diagnostics: invalid DN
17:28:59 2020-05-13 15:28:58.230 UTC [31573] [unknown] FATAL:  LDAP authentication failed for user "test1"
17:28:59 2020-05-13 15:28:58.230 UTC [31573] [unknown] DETAIL:  Connection matched pg_hba.conf line 1: "local all all
ldapldapserver=localhost ldapport=53076 ldapprefix="?uid=" ldapsuffix="""
 
17:28:59 2020-05-13 15:28:58.264 UTC [31564] LOG:  received fast shutdown request
17:28:59 2020-05-13 15:28:58.264 UTC [31564] LOG:  aborting any active transactions
17:28:59 2020-05-13 15:28:58.266 UTC [31564] LOG:  background worker "logical replication launcher" (PID 31571) exited
withexit code 1
 
17:28:59 2020-05-13 15:28:58.266 UTC [31566] LOG:  shutting down
17:28:59 2020-05-13 15:28:58.271 UTC [31564] LOG:  database system is shut down
17:28:59 2020-05-13 15:28:58.384 UTC [31575] LOG:  starting PostgreSQL 13devel (Debian
13~~devel~20200513.1505-1~801.git043e3e0.pgdg+1)on x86_64-pc-linux-gnu, compiled by gcc (Debian 9.3.0-12) 9.3.0,
64-bit
17:28:59 2020-05-13 15:28:58.385 UTC [31575] LOG:  listening on Unix socket "/tmp/gM2rQtsMib/.s.PGSQL.53078"
17:28:59 2020-05-13 15:28:58.387 UTC [31576] LOG:  database system was shut down at 2020-05-13 15:28:58 UTC
17:28:59 2020-05-13 15:28:58.390 UTC [31575] LOG:  database system is ready to accept connections
17:28:59 2020-05-13 15:28:58.479 UTC [31584] [unknown] LOG:  could not start LDAP TLS session: Connect error
17:28:59 2020-05-13 15:28:58.479 UTC [31584] [unknown] FATAL:  LDAP authentication failed for user "test1"
17:28:59 2020-05-13 15:28:58.479 UTC [31584] [unknown] DETAIL:  Connection matched pg_hba.conf line 1: "local all all
ldapldapserver=localhost ldapport=53076 ldapbasedn="dc=example,dc=net" ldapsearchfilter="(uid=$username)" ldaptls=1"
 
17:28:59 2020-05-13 15:28:58.514 UTC [31575] LOG:  received fast shutdown request
17:28:59 2020-05-13 15:28:58.514 UTC [31575] LOG:  aborting any active transactions
17:28:59 2020-05-13 15:28:58.516 UTC [31575] LOG:  background worker "logical replication launcher" (PID 31582) exited
withexit code 1
 
17:28:59 2020-05-13 15:28:58.516 UTC [31577] LOG:  shutting down
17:28:59 2020-05-13 15:28:58.520 UTC [31575] LOG:  database system is shut down
17:28:59 2020-05-13 15:28:58.634 UTC [31586] LOG:  starting PostgreSQL 13devel (Debian
13~~devel~20200513.1505-1~801.git043e3e0.pgdg+1)on x86_64-pc-linux-gnu, compiled by gcc (Debian 9.3.0-12) 9.3.0,
64-bit
17:28:59 2020-05-13 15:28:58.634 UTC [31586] LOG:  listening on Unix socket "/tmp/gM2rQtsMib/.s.PGSQL.53078"
17:28:59 2020-05-13 15:28:58.636 UTC [31587] LOG:  database system was shut down at 2020-05-13 15:28:58 UTC
17:28:59 2020-05-13 15:28:58.639 UTC [31586] LOG:  database system is ready to accept connections
17:28:59 2020-05-13 15:28:58.728 UTC [31595] [unknown] LOG:  could not perform initial LDAP bind for ldapbinddn "" on
server"localhost": Can't contact LDAP server
 
17:28:59 2020-05-13 15:28:58.728 UTC [31595] [unknown] FATAL:  LDAP authentication failed for user "test1"
17:28:59 2020-05-13 15:28:58.728 UTC [31595] [unknown] DETAIL:  Connection matched pg_hba.conf line 1: "local all all
ldapldapserver=localhost ldapscheme=ldaps ldapport=53077 ldapbasedn="dc=example,dc=net"
ldapsearchfilter="(uid=$username)""
17:28:59 2020-05-13 15:28:58.763 UTC [31586] LOG:  received fast shutdown request
17:28:59 2020-05-13 15:28:58.764 UTC [31586] LOG:  aborting any active transactions
17:28:59 2020-05-13 15:28:58.766 UTC [31586] LOG:  background worker "logical replication launcher" (PID 31593) exited
withexit code 1
 
17:28:59 2020-05-13 15:28:58.766 UTC [31588] LOG:  shutting down
17:28:59 2020-05-13 15:28:58.772 UTC [31586] LOG:  database system is shut down
17:28:59 2020-05-13 15:28:58.886 UTC [31597] LOG:  starting PostgreSQL 13devel (Debian
13~~devel~20200513.1505-1~801.git043e3e0.pgdg+1)on x86_64-pc-linux-gnu, compiled by gcc (Debian 9.3.0-12) 9.3.0,
64-bit
17:28:59 2020-05-13 15:28:58.886 UTC [31597] LOG:  listening on Unix socket "/tmp/gM2rQtsMib/.s.PGSQL.53078"
17:28:59 2020-05-13 15:28:58.888 UTC [31598] LOG:  database system was shut down at 2020-05-13 15:28:58 UTC
17:28:59 2020-05-13 15:28:58.891 UTC [31597] LOG:  database system is ready to accept connections
17:28:59 2020-05-13 15:28:58.977 UTC [31606] [unknown] LOG:  could not perform initial LDAP bind for ldapbinddn "" on
server"localhost": Can't contact LDAP server
 
17:28:59 2020-05-13 15:28:58.977 UTC [31606] [unknown] FATAL:  LDAP authentication failed for user "test1"
17:28:59 2020-05-13 15:28:58.977 UTC [31606] [unknown] DETAIL:  Connection matched pg_hba.conf line 1: "local all all
ldapldapurl="ldaps://localhost:53077/dc=example,dc=net??sub?(uid=$username)""
 
17:28:59 2020-05-13 15:28:59.014 UTC [31597] LOG:  received fast shutdown request
17:28:59 2020-05-13 15:28:59.014 UTC [31597] LOG:  aborting any active transactions
17:28:59 2020-05-13 15:28:59.017 UTC [31597] LOG:  background worker "logical replication launcher" (PID 31604) exited
withexit code 1
 
17:28:59 2020-05-13 15:28:59.019 UTC [31599] LOG:  shutting down
17:28:59 2020-05-13 15:28:59.025 UTC [31597] LOG:  database system is shut down
17:28:59 2020-05-13 15:28:59.135 UTC [31608] LOG:  starting PostgreSQL 13devel (Debian
13~~devel~20200513.1505-1~801.git043e3e0.pgdg+1)on x86_64-pc-linux-gnu, compiled by gcc (Debian 9.3.0-12) 9.3.0,
64-bit
17:28:59 2020-05-13 15:28:59.135 UTC [31608] LOG:  listening on Unix socket "/tmp/gM2rQtsMib/.s.PGSQL.53078"
17:28:59 2020-05-13 15:28:59.137 UTC [31609] LOG:  database system was shut down at 2020-05-13 15:28:59 UTC
17:28:59 2020-05-13 15:28:59.140 UTC [31608] LOG:  database system is ready to accept connections
17:28:59 2020-05-13 15:28:59.228 UTC [31617] [unknown] LOG:  could not start LDAP TLS session: Can't contact LDAP
server
17:28:59 2020-05-13 15:28:59.228 UTC [31617] [unknown] FATAL:  LDAP authentication failed for user "test1"
17:28:59 2020-05-13 15:28:59.228 UTC [31617] [unknown] DETAIL:  Connection matched pg_hba.conf line 1: "local all all
ldapldapurl="ldaps://localhost:53077/dc=example,dc=net??sub?(uid=$username)" ldaptls=1" 
17:28:59 2020-05-13 15:28:59.264 UTC [31608] LOG:  received immediate shutdown request
17:28:59 2020-05-13 15:28:59.265 UTC [31613] WARNING:  terminating connection because of crash of another server
process
17:28:59 2020-05-13 15:28:59.265 UTC [31613] DETAIL:  The postmaster has commanded this server process to roll back the
currenttransaction and exit, because another server process exited abnormally and possibly corrupted shared memory.
 
17:28:59 2020-05-13 15:28:59.265 UTC [31613] HINT:  In a moment you should be able to reconnect to the database and
repeatyour command.
 
17:28:59 2020-05-13 15:28:59.268 UTC [31608] LOG:  database system is shut down

17:28:59 ******** build/src/test/ldap/tmp_check/log/regress_log_001_auth ********
17:28:59 1..22
17:28:59 # Checking port 53076
17:28:59 # Found port 53076
17:28:59 # Checking port 53077
17:28:59 # Found port 53077
17:28:59 # setting up slapd
17:28:59 # Running: openssl req -new -nodes -keyout /<<PKGBUILDDIR>>/build/src/test/ldap/tmp_check/slapd-certs/ca.key
-x509-out /<<PKGBUILDDIR>>/build/src/test/ldap/tmp_check/slapd-certs/ca.crt -subj /CN=CA
 
17:28:59 Generating a RSA private key
17:28:59 ...........+++++
17:28:59 ...............+++++
17:28:59 writing new private key to '/<<PKGBUILDDIR>>/build/src/test/ldap/tmp_check/slapd-certs/ca.key'
17:28:59 -----
17:28:59 # Running: openssl req -new -nodes -keyout
/<<PKGBUILDDIR>>/build/src/test/ldap/tmp_check/slapd-certs/server.key-out
/<<PKGBUILDDIR>>/build/src/test/ldap/tmp_check/slapd-certs/server.csr-subj /CN=server
 
17:28:59 Generating a RSA private key
17:28:59 ..............+++++
17:28:59 .............+++++
17:28:59 writing new private key to '/<<PKGBUILDDIR>>/build/src/test/ldap/tmp_check/slapd-certs/server.key'
17:28:59 -----
17:28:59 # Running: openssl x509 -req -in /<<PKGBUILDDIR>>/build/src/test/ldap/tmp_check/slapd-certs/server.csr -CA
/<<PKGBUILDDIR>>/build/src/test/ldap/tmp_check/slapd-certs/ca.crt-CAkey
/<<PKGBUILDDIR>>/build/src/test/ldap/tmp_check/slapd-certs/ca.key-CAcreateserial -out
/<<PKGBUILDDIR>>/build/src/test/ldap/tmp_check/slapd-certs/server.crt
17:28:59 Signature ok
17:28:59 subject=CN = server
17:28:59 Getting CA Private Key
17:28:59 # Running: /usr/sbin/slapd -f /<<PKGBUILDDIR>>/build/src/test/ldap/tmp_check/slapd.conf -h
ldap://localhost:53076ldaps://localhost:53077
 
17:28:59 # Running: ldapsearch -h localhost -p 53076 -s base -b dc=example,dc=net -D cn=Manager,dc=example,dc=net -y
/<<PKGBUILDDIR>>/build/src/test/ldap/tmp_check/ldappassword-n 'objectclass=*'
 
17:28:59 # extended LDIF
17:28:59 #
17:28:59 # LDAPv3
17:28:59 # base <dc=example,dc=net> with scope baseObject
17:28:59 # filter: 'objectclass=*'
17:28:59 # requesting: ALL
17:28:59 #
17:28:59 
17:28:59 # loading LDAP data
17:28:59 # Running: ldapadd -x -y /<<PKGBUILDDIR>>/build/src/test/ldap/tmp_check/ldappassword -f authdata.ldif
17:28:59 adding new entry "dc=example,dc=net"
17:28:59 
17:28:59 adding new entry "uid=test1,dc=example,dc=net"
17:28:59 
17:28:59 adding new entry "uid=test2,dc=example,dc=net"
17:28:59 
17:28:59 # Running: ldappasswd -x -y /<<PKGBUILDDIR>>/build/src/test/ldap/tmp_check/ldappassword -s secret1
uid=test1,dc=example,dc=net
17:28:59 # Running: ldappasswd -x -y /<<PKGBUILDDIR>>/build/src/test/ldap/tmp_check/ldappassword -s secret2
uid=test2,dc=example,dc=net
17:28:59 # setting up PostgreSQL instance
17:28:59 # Checking port 53078
17:28:59 # Found port 53078
17:28:59 Name: node
17:28:59 Data directory: /<<PKGBUILDDIR>>/build/src/test/ldap/tmp_check/t_001_auth_node_data/pgdata
17:28:59 Backup directory: /<<PKGBUILDDIR>>/build/src/test/ldap/tmp_check/t_001_auth_node_data/backup
17:28:59 Archive directory: /<<PKGBUILDDIR>>/build/src/test/ldap/tmp_check/t_001_auth_node_data/archives
17:28:59 Connection string: port=53078 host=/tmp/gM2rQtsMib
17:28:59 Log file: /<<PKGBUILDDIR>>/build/src/test/ldap/tmp_check/log/001_auth_node.log
17:28:59 # Running: initdb -D /<<PKGBUILDDIR>>/build/src/test/ldap/tmp_check/t_001_auth_node_data/pgdata -A trust -N
17:28:59 The files belonging to this database system will be owned by user "buildd".
17:28:59 This user must also own the server process.
17:28:59 
17:28:59 The database cluster will be initialized with locale "C".
17:28:59 The default database encoding has accordingly been set to "SQL_ASCII".
17:28:59 The default text search configuration will be set to "english".
17:28:59 
17:28:59 Data page checksums are disabled.
17:28:59 
17:28:59 creating directory /<<PKGBUILDDIR>>/build/src/test/ldap/tmp_check/t_001_auth_node_data/pgdata ... ok
17:28:59 creating subdirectories ... ok
17:28:59 selecting dynamic shared memory implementation ... posix
17:28:59 selecting default max_connections ... 100
17:28:59 selecting default shared_buffers ... 128MB
17:28:59 selecting default time zone ... Etc/UTC
17:28:59 creating configuration files ... ok
17:28:59 running bootstrap script ... ok
17:28:59 performing post-bootstrap initialization ... ok
17:28:59 
17:28:59 Sync to disk skipped.
17:28:59 The data directory might become corrupt if the operating system crashes.
17:28:59 
17:28:59 Success. You can now start the database server using:
17:28:59 
17:28:59     pg_ctl -D '/<<PKGBUILDDIR>>/build/src/test/ldap/tmp_check/t_001_auth_node_data/pgdata' -l logfile start
17:28:59 
17:28:59 # Running: /<<PKGBUILDDIR>>/build/src/test/ldap/../../../src/test/regress/pg_regress --config-auth
/<<PKGBUILDDIR>>/build/src/test/ldap/tmp_check/t_001_auth_node_data/pgdata
17:28:59 ### Starting node "node"
17:28:59 # Running: pg_ctl -D /<<PKGBUILDDIR>>/build/src/test/ldap/tmp_check/t_001_auth_node_data/pgdata -l
/<<PKGBUILDDIR>>/build/src/test/ldap/tmp_check/log/001_auth_node.log-o --cluster-name=node start
 
17:28:59 waiting for server to start.... done
17:28:59 server started
17:28:59 # Postmaster PID for node "node" is 31451
17:28:59 # running tests
17:28:59 # simple bind
17:28:59 ### Restarting node "node"
17:28:59 # Running: pg_ctl -D /<<PKGBUILDDIR>>/build/src/test/ldap/tmp_check/t_001_auth_node_data/pgdata -l
/<<PKGBUILDDIR>>/build/src/test/ldap/tmp_check/log/001_auth_node.logrestart
 
17:28:59 waiting for server to shut down.... done
17:28:59 server stopped
17:28:59 waiting for server to start.... done
17:28:59 server started
17:28:59 # Postmaster PID for node "node" is 31466
17:28:59 psql: error: could not connect to server: FATAL:  LDAP authentication failed for user "test0"
17:28:59 ok 1 - simple bind authentication fails if user not found in LDAP
17:28:59 psql: error: could not connect to server: FATAL:  LDAP authentication failed for user "test1"
17:28:59 ok 2 - simple bind authentication fails with wrong password
17:28:59 1
17:28:59 ok 3 - simple bind authentication succeeds
17:28:59 # search+bind
17:28:59 ### Restarting node "node"
17:28:59 # Running: pg_ctl -D /<<PKGBUILDDIR>>/build/src/test/ldap/tmp_check/t_001_auth_node_data/pgdata -l
/<<PKGBUILDDIR>>/build/src/test/ldap/tmp_check/log/001_auth_node.logrestart
 
17:28:59 waiting for server to shut down.... done
17:28:59 server stopped
17:28:59 waiting for server to start.... done
17:28:59 server started
17:28:59 # Postmaster PID for node "node" is 31481
17:28:59 psql: error: could not connect to server: FATAL:  LDAP authentication failed for user "test0"
17:28:59 ok 4 - search+bind authentication fails if user not found in LDAP
17:28:59 psql: error: could not connect to server: FATAL:  LDAP authentication failed for user "test1"
17:28:59 ok 5 - search+bind authentication fails with wrong password
17:28:59 1
17:28:59 ok 6 - search+bind authentication succeeds
17:28:59 # multiple servers
17:28:59 ### Restarting node "node"
17:28:59 # Running: pg_ctl -D /<<PKGBUILDDIR>>/build/src/test/ldap/tmp_check/t_001_auth_node_data/pgdata -l
/<<PKGBUILDDIR>>/build/src/test/ldap/tmp_check/log/001_auth_node.logrestart
 
17:28:59 waiting for server to shut down.... done
17:28:59 server stopped
17:28:59 waiting for server to start.... done
17:28:59 server started
17:28:59 # Postmaster PID for node "node" is 31496
17:28:59 psql: error: could not connect to server: FATAL:  LDAP authentication failed for user "test0"
17:28:59 ok 7 - search+bind authentication fails if user not found in LDAP
17:28:59 psql: error: could not connect to server: FATAL:  LDAP authentication failed for user "test1"
17:28:59 ok 8 - search+bind authentication fails with wrong password
17:28:59 1
17:28:59 ok 9 - search+bind authentication succeeds
17:28:59 # LDAP URLs
17:28:59 ### Restarting node "node"
17:28:59 # Running: pg_ctl -D /<<PKGBUILDDIR>>/build/src/test/ldap/tmp_check/t_001_auth_node_data/pgdata -l
/<<PKGBUILDDIR>>/build/src/test/ldap/tmp_check/log/001_auth_node.logrestart
 
17:28:59 waiting for server to shut down.... done
17:28:59 server stopped
17:28:59 waiting for server to start.... done
17:28:59 server started
17:28:59 # Postmaster PID for node "node" is 31511
17:28:59 psql: error: could not connect to server: FATAL:  LDAP authentication failed for user "test0"
17:28:59 ok 10 - search+bind with LDAP URL authentication fails if user not found in LDAP
17:28:59 psql: error: could not connect to server: FATAL:  LDAP authentication failed for user "test1"
17:28:59 ok 11 - search+bind with LDAP URL authentication fails with wrong password
17:28:59 1
17:28:59 ok 12 - search+bind with LDAP URL authentication succeeds
17:28:59 # search filters
17:28:59 ### Restarting node "node"
17:28:59 # Running: pg_ctl -D /<<PKGBUILDDIR>>/build/src/test/ldap/tmp_check/t_001_auth_node_data/pgdata -l
/<<PKGBUILDDIR>>/build/src/test/ldap/tmp_check/log/001_auth_node.logrestart
 
17:28:59 waiting for server to shut down.... done
17:28:59 server stopped
17:28:59 waiting for server to start.... done
17:28:59 server started
17:28:59 # Postmaster PID for node "node" is 31526
17:28:59 1
17:28:59 ok 13 - search filter finds by uid
17:28:59 1
17:28:59 ok 14 - search filter finds by mail
17:28:59 # search filters in LDAP URLs
17:28:59 ### Restarting node "node"
17:28:59 # Running: pg_ctl -D /<<PKGBUILDDIR>>/build/src/test/ldap/tmp_check/t_001_auth_node_data/pgdata -l
/<<PKGBUILDDIR>>/build/src/test/ldap/tmp_check/log/001_auth_node.logrestart
 
17:28:59 waiting for server to shut down.... done
17:28:59 server stopped
17:28:59 waiting for server to start.... done
17:28:59 server started
17:28:59 # Postmaster PID for node "node" is 31539
17:28:59 1
17:28:59 ok 15 - search filter finds by uid
17:28:59 1
17:28:59 ok 16 - search filter finds by mail
17:28:59 ### Restarting node "node"
17:28:59 # Running: pg_ctl -D /<<PKGBUILDDIR>>/build/src/test/ldap/tmp_check/t_001_auth_node_data/pgdata -l
/<<PKGBUILDDIR>>/build/src/test/ldap/tmp_check/log/001_auth_node.logrestart
 
17:28:59 waiting for server to shut down.... done
17:28:59 server stopped
17:28:59 waiting for server to start.... done
17:28:59 server started
17:28:59 # Postmaster PID for node "node" is 31552
17:28:59 1
17:28:59 ok 17 - combined LDAP URL and search filter
17:28:59 # diagnostic message
17:28:59 ### Restarting node "node"
17:28:59 # Running: pg_ctl -D /<<PKGBUILDDIR>>/build/src/test/ldap/tmp_check/t_001_auth_node_data/pgdata -l
/<<PKGBUILDDIR>>/build/src/test/ldap/tmp_check/log/001_auth_node.logrestart
 
17:28:59 waiting for server to shut down.... done
17:28:59 server stopped
17:28:59 waiting for server to start.... done
17:28:59 server started
17:28:59 # Postmaster PID for node "node" is 31564
17:28:59 psql: error: could not connect to server: FATAL:  LDAP authentication failed for user "test1"
17:28:59 ok 18 - any attempt fails due to bad search pattern
17:28:59 # TLS
17:28:59 ### Restarting node "node"
17:28:59 # Running: pg_ctl -D /<<PKGBUILDDIR>>/build/src/test/ldap/tmp_check/t_001_auth_node_data/pgdata -l
/<<PKGBUILDDIR>>/build/src/test/ldap/tmp_check/log/001_auth_node.logrestart
 
17:28:59 waiting for server to shut down.... done
17:28:59 server stopped
17:28:59 waiting for server to start.... done
17:28:59 server started
17:28:59 # Postmaster PID for node "node" is 31575
17:28:59 psql: error: could not connect to server: FATAL:  LDAP authentication failed for user "test1"
17:28:59 not ok 19 - StartTLS
17:28:59 
17:28:59 #   Failed test 'StartTLS'
17:28:59 #   at t/001_auth.pl line 169.
17:28:59 #          got: '2'
17:28:59 #     expected: '0'
17:28:59 ### Restarting node "node"
17:28:59 # Running: pg_ctl -D /<<PKGBUILDDIR>>/build/src/test/ldap/tmp_check/t_001_auth_node_data/pgdata -l
/<<PKGBUILDDIR>>/build/src/test/ldap/tmp_check/log/001_auth_node.logrestart
 
17:28:59 waiting for server to shut down.... done
17:28:59 server stopped
17:28:59 waiting for server to start.... done
17:28:59 server started
17:28:59 # Postmaster PID for node "node" is 31586
17:28:59 psql: error: could not connect to server: FATAL:  LDAP authentication failed for user "test1"
17:28:59 not ok 20 - LDAPS
17:28:59 
17:28:59 #   Failed test 'LDAPS'
17:28:59 #   at t/001_auth.pl line 169.
17:28:59 #          got: '2'
17:28:59 #     expected: '0'
17:28:59 ### Restarting node "node"
17:28:59 # Running: pg_ctl -D /<<PKGBUILDDIR>>/build/src/test/ldap/tmp_check/t_001_auth_node_data/pgdata -l
/<<PKGBUILDDIR>>/build/src/test/ldap/tmp_check/log/001_auth_node.logrestart
 
17:28:59 waiting for server to shut down.... done
17:28:59 server stopped
17:28:59 waiting for server to start.... done
17:28:59 server started
17:28:59 # Postmaster PID for node "node" is 31597
17:28:59 psql: error: could not connect to server: FATAL:  LDAP authentication failed for user "test1"
17:28:59 not ok 21 - LDAPS with URL
17:28:59 
17:28:59 #   Failed test 'LDAPS with URL'
17:28:59 #   at t/001_auth.pl line 169.
17:28:59 #          got: '2'
17:28:59 #     expected: '0'
17:28:59 ### Restarting node "node"
17:28:59 # Running: pg_ctl -D /<<PKGBUILDDIR>>/build/src/test/ldap/tmp_check/t_001_auth_node_data/pgdata -l
/<<PKGBUILDDIR>>/build/src/test/ldap/tmp_check/log/001_auth_node.logrestart
 
17:28:59 waiting for server to shut down.... done
17:28:59 server stopped
17:28:59 waiting for server to start.... done
17:28:59 server started
17:28:59 # Postmaster PID for node "node" is 31608
17:28:59 psql: error: could not connect to server: FATAL:  LDAP authentication failed for user "test1"
17:28:59 ok 22 - bad combination of LDAPS and StartTLS
17:28:59 ### Stopping node "node" using mode immediate
17:28:59 # Running: pg_ctl -D /<<PKGBUILDDIR>>/build/src/test/ldap/tmp_check/t_001_auth_node_data/pgdata -m immediate
stop
17:28:59 waiting for server to shut down.... done
17:28:59 server stopped
17:28:59 # No postmaster PID for node "node"
17:28:59 # Looks like you failed 3 tests of 22.
17:28:59 make[1]: *** [debian/rules:193: override_dh_auto_test-arch] Error 1

Christoph



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: Add "-Wimplicit-fallthrough" to default flags
Следующее
От: Fujii Masao
Дата:
Сообщение: Re: SLRU statistics