Re: LDAP configuration problem

From: "Wenjian Yang" <wenjiany(at)gmail(dot)com>
To: "Magnus Hagander" <magnus(at)hagander(dot)net>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: LDAP configuration problem
Date: 2006-12-29 07:37:39
Message-ID: bf9d6a9e0612282337j5c7a0fd8kf540c7ac15197bf4@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Sorry, below are the lines in the log file:

LOG: invalid entry in file "/pub/pgsql/data/pg_hba.conf" at line 78, token
"ldap://dc.domain.com/dc=domain^Adc=com;DOMAIN\"
FATAL: missing or erroneous pg_hba.conf file
HINT: See server log for details.

And the pg_hba.conf line 78, is

host all all 0.0.0.0 0.0.0.0
ldap://dc.domain.com/dc=domain,dc=com/DOMAIN\

Since the previous email, I had the same problem on another FC6 x86_64 box.

Thanks.

Wenjian

On 12/29/06, Magnus Hagander <magnus(at)hagander(dot)net> wrote:
>
> Wenjian Yang wrote:
> > Hi,
> >
> > I've just installed 8.2.0 from rpms on FC6 i386 and wanted to try out
> > the built-in LDAP support.
> >
> > The following LDAP authentication was added to "pg_hba.conf"
> >
> > host all all 0.0.0.0 <http://0.0.0.0> 0.0.0.0 <http://0.0.0.0>
> > ldap://dc.domain.com/dc=domain,dc=com/DOMAIN\
> >
> > However when trying to connect from another machine, it gave the error
> > "FATAL: missing or erroneous pg_hba.conf file".
> >
> > Looking at the server log, the comma in "dc=domain,dc=com" has become ^A
> > while all the other characters are intact.
> >
> > Does this have to do with some other packages or I specified the the
> > line wrong? Thanks in advance.
>
>
> The first thing you've done wrong is not actually include the log lines
> that had something to do with it. What are those server log lines?
>
> Anyway, I beleive you should write:
> host all all 0.0.0.0 0.0.0.0 ldap
> ldap://dc.domain.com/dc=domain,dc=com/DOMAIN\
>
>
> //Magnus
>

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Magnus Hagander 2006-12-29 08:03:52 Re: LDAP configuration problem
Previous Message Magnus Hagander 2006-12-29 07:27:56 Re: LDAP configuration problem