Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qye7P-009vUg-Kx for pgsql-admin@arkaria.postgresql.org; Thu, 02 Nov 2023 20:16:43 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1qye7O-00FJ0Q-5j for pgsql-admin@arkaria.postgresql.org; Thu, 02 Nov 2023 20:16:42 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qye7N-00FJ0I-R6 for pgsql-admin@lists.postgresql.org; Thu, 02 Nov 2023 20:16:41 +0000 Received: from momjian.us ([72.94.173.45]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qye7H-003eee-2x for pgsql-admin@lists.postgresql.org; Thu, 02 Nov 2023 20:16:40 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=momjian.us; s=2023062407; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description; bh=KtQaSdHwdCsVXIkMlhHFW62DwQy5KThHNPfIy30rp+Q=; b=NDq9K jt6QT5s8DiWouvck3ODJBrjGiI+antQ7+o87UTslTK6DylZOT7JuRxM+cRo8/d/5jSVb+UthNF/QU 13y+ZCONgrXwqd/DaCYx/6JL2Sj93ADSDU41hVTomfVSGktonl7ugR/CVqE71ExdpoiuahL4RuG0s XTP7ewWJWwFF1pR4Cm6UXKIX9q4vqQ18bLeAK9ZoYFeI/ZKYXk1t4Y0RUkPJG2Kcg2aWnYB+Zh8UM y3xTq5P5gqy39t9rEzaDTDdmuLIFRDLCTypz59+TcKC1RKYQWWMY9QCzuaAG33srEJ1O4xMb5K9nP kuQDwltXNqnDztizgHqa3vodt/0Vw==; Received: from bruce by momjian.us with local (Exim 4.96) (envelope-from ) id 1qye7F-00Cph6-2q; Thu, 02 Nov 2023 16:16:33 -0400 Date: Thu, 2 Nov 2023 16:16:33 -0400 From: Bruce Momjian To: Bernd Lentes Cc: Pgsql-admin Subject: Re: unrecognized configuration parameter "ldapbinddn" in file "/var/lib/pgsql/data/postgresql.conf" Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Thu, Nov 2, 2023 at 07:56:40PM +0000, Bernd Lentes wrote: > Hi, > > i'm trying to use LDAP to authenticate Postgres against a Windows AD. On elder versions it succeeded. > Now I'm running postgresql-15-150500.8.19.noarch on a SLES 15 SP5 system. > I can't start the db server because it doesn't know the respective configuration parameters: > > Nov 02 20:42:15 geneious postgresql-script[15577]: 2023-11-02 19:42:15.387 GMT [15577] LOG: unrecognized configuration parameter "ldapbinddn" in file "/var/lib/pgsql/data/postgresql.conf" line 106 > Nov 02 20:42:15 geneious postgresql-script[15577]: 2023-11-02 19:42:15.387 GMT [15577] LOG: unrecognized configuration parameter "ldapserver" in file "/var/lib/pgsql/data/postgresql.conf" line 108 > Nov 02 20:42:15 geneious postgresql-script[15577]: 2023-11-02 19:42:15.387 GMT [15577] LOG: unrecognized configuration parameter "ldapport" in file "/var/lib/pgsql/data/postgresql.conf" line 110 > Nov 02 20:42:15 geneious postgresql-script[15577]: 2023-11-02 19:42:15.387 GMT [15577] LOG: unrecognized configuration parameter "ldaptls" in file "/var/lib/pgsql/data/postgresql.conf" line 112 > Nov 02 20:42:15 geneious postgresql-script[15577]: 2023-11-02 19:42:15.387 GMT [15577] LOG: unrecognized configuration parameter "ldapbasedn" in file "/var/lib/pgsql/data/postgresql.conf" line 114 > Nov 02 20:42:15 geneious postgresql-script[15577]: 2023-11-02 19:42:15.387 GMT [15577] LOG: unrecognized configuration parameter "ldapbindpasswd" in file "/var/lib/pgsql/data/postgresql.conf" line 116 > Nov 02 20:42:15 geneious postgresql-script[15577]: 2023-11-02 19:42:15.387 GMT [15577] FATAL: configuration file "/var/lib/pgsql/data/postgresql.conf" contains errors > Nov 02 20:42:15 geneious postgresql-script[15575]: pg_ctl: could not start server > Nov 02 20:42:15 geneious postgresql-script[15575]: Examine the log output. > Nov 02 20:42:15 geneious systemd[1]: postgresql.service: Control process exited, code=exited, status=1/FAILURE > > Here is my setup from postgresql.conf: > > ldapbinddn = 'xxxxxxxxxxx' > ldapserver = ldaps.scidom.de > ldapport = 636 > ldaptls = 1 > ldapbasedn = 'xxxxxxxxx' > ldapbindpasswd = 'xxxxxxxxxxxxxxxxx' > > I took the parameters from the doc from the official webpage. > Do I need to switch on LDAP in a certain way ? Okay, I am going to take a wild guess here, but the line numbers of the errors skip by 2 (e.g., 106, 108), while the example you showed have them in adjacent lines. Could there be invalid characters in the file contents? -- Bruce Momjian https://momjian.us EDB https://enterprisedb.com Only you can decide what is important to you.