Re: [Auth] 'ident' method and LDAP user accounts

From: Stephane Bortzmeyer <bortzmeyer(at)nic(dot)fr>
To: Florian Pflug <fgp(at)phlo(dot)org>
Cc: Marco Colombo <pgsql(at)esiway(dot)net>, Stephane Bortzmeyer <bortzmeyer(at)nic(dot)fr>, pgsql-general(at)postgresql(dot)org
Subject: Re: [Auth] 'ident' method and LDAP user accounts
Date: 2005-03-08 09:29:49
Message-ID: 20050308092949.GA12330@nic.fr
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Thu, Mar 03, 2005 at 01:20:35PM +0100,
Florian Pflug <fgp(at)phlo(dot)org> wrote
a message of 47 lines which said:

> Seems so.. you could try to start the postmaster via strace -f, and
> capture the log
...
> Then try to connect, and see what happens - you should see the
> postmaster open your pam_ldap.conf, and then try to connect to your
> ldap server.

Well, the easiest way was to 'tail -f' the LDAP server's log. I can
see that PostgreSQL, indeed, calls getpwuid and tries to find LDAP's
"uid" (the user name):

Mar 8 10:23:24 eve slapd[586]: conn=38854 op=1 SRCH base="ou=People,dc=eureg,dc=eu" scope=1 filter="(&(objectClass=posixAccount)(uidNumber=1011))"
Mar 8 10:23:24 eve slapd[586]: conn=38854 op=1 SRCH attr=uid userPassword uidNumber gidNumber cn homeDirectory loginShell gecos description objectClass

Strangely enough, everything works now. The only thing I see is that
the machine rebooted two days ago. :-(

Thanks for those who searched and sorry for leading them on the wrong
track.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Sanjay Arora 2005-03-08 09:32:04 RPM for whitebox linux - RH ES3 Clone
Previous Message tony 2005-03-08 09:03:48 problem with distinct rows