Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 1786963291A for ; Wed, 17 Feb 2010 10:36:22 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 83643-06 for ; Wed, 17 Feb 2010 14:36:11 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from snt0-omc1-s9.snt0.hotmail.com (snt0-omc1-s9.snt0.hotmail.com [65.55.90.20]) by mail.postgresql.org (Postfix) with ESMTP id 7EB06632755 for ; Wed, 17 Feb 2010 10:36:11 -0400 (AST) Received: from SNT123-W32 ([65.55.90.8]) by snt0-omc1-s9.snt0.hotmail.com with Microsoft SMTPSVC(6.0.3790.3959); Wed, 17 Feb 2010 06:36:09 -0800 Message-ID: Content-Type: multipart/alternative; boundary="_24a0c3fe-f7da-4faa-bfbf-e2eba3ebc87f_" X-Originating-IP: [204.132.58.73] From: dx k9 To: posgres support Subject: Postgresql & PAM & AD Date: Wed, 17 Feb 2010 09:36:09 -0500 Importance: Normal MIME-Version: 1.0 X-OriginalArrivalTime: 17 Feb 2010 14:36:09.0445 (UTC) FILETIME=[8BACF950:01CAAFDE] X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.598 tagged_above=-10 required=5 tests=BAYES_00=-2.599, HTML_MESSAGE=0.001 X-Spam-Level: X-Archive-Number: 201002/134 X-Sequence-Number: 33737 --_24a0c3fe-f7da-4faa-bfbf-e2eba3ebc87f_ Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable =20 =20 =20 =20 =20 Hi=2C=20 We recently upgraded to 8.3.9 (from 8.3.6) because we were having the issue= described in the fix below. Our postgres user and other domain users with = pam authentication were getting locked out=2C in accords with our group dom= ain policy 10 failed login attemps in 30 minutes. I included some informati= on about our environment below. Sadly=2C after the upgrade to 8.3.9=2C we= are still experiencing this issue. Has any one else reported this issue st= ill exists=2C after the 8.3.9 fix below? Thanks in advance=2C =20 So far=2C we have only migratated 1 of 3 linux/postgresql servers from usin= g openldap to now using active directory. We'd like to move the other 2 to= production=2C once we solve this issue. It's a random issue. Some domain= users don't have the problem of getting locked out and some do=2C even tho= ugh everyone is putting in their right password. We made the postgres use= r md5 to put a patch on things for now=2C but we still have at least 2 user= s getting locked out pretty often. =20 Maybe the best thing is to switch to gssapi authentication instead of PAM. = Does anyone have any suggestions or experience with this? ~DjK =20 ## Fix PAM password processing to be more robust (Tom) The previous code is kn= own to fail with the combination of the Linux pam_krb5 PAM module with Micr= osoft Active Directory as the domain controller. It might have problems els= ewhere too=2C since it was making unjustified assumptions about what argume= nts the PAM stack would pass to it.=20 =20 ## Linux and AD=20 The AD is running at a domain functional level of Windows Server 2003=2C ho= wever the schema is updated to Windows Server 2008. Linux OS: SLES 9 sp4 2.6.5-7.308-smp #1 SMP Mon Dec 10 11:36:40 UTC 2007 x86_64 x86_64 x86_64 GN= U/Linux =20 ## PAM -- postgres auth required pam_unix2.so nullok account required pam_unix2.so =20 ## nsswitch.conf --=20 passwd: compat group: compat hosts: files dns networks: files dns services: files protocols: files rpc: files ethers: files netmasks: files netgroup: files publickey: files bootparams: files automount: files nis aliases: files passwd_compat: ldap group_compat: ldap =20 _________________________________________________________________ Hotmail: Trusted email with Microsoft=92s powerful SPAM protection. http://clk.atdmt.com/GBL/go/201469226/direct/01/= --_24a0c3fe-f7da-4faa-bfbf-e2eba3ebc87f_ Content-Type: text/html; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable  =3B
 =3B
 =3B
 =3B
 =3B
Hi=2C
We recently upgraded =3Bto 8.3.9 (from 8.3.6)= because we were having the issue described in the fix below. Our postgres = user and other domain users with pam authentication were getting locked out= =2C in accords with our group domain policy 10 failed login attemps in 30 m= inutes. I included some information about our environment below. =3B&nb= sp=3B Sadly=2C after the upgrade to 8.3.9=2C we are still experiencing this= issue. Has any one else reported this issue still exists=2C after the 8.3.= 9 fix below?
Thanks in advance=2C

 =3B
So far=2C we have only migratated =3B1 of =3B3 linu= x/postgresql servers =3Bfrom using openldap to now using active directo= ry. =3B We'd like to move the other 2 to production=2C once we solve th= is issue. =3B =3BIt's a random issue. =3B Some domain users don= 't have the problem of getting locked out and some do=2C even though everyo= ne is putting in their right password. =3B =3B We made the postgres= user md5 to put a patch on things for now=2C but we still have at least 2 = users getting locked out pretty often.
 =3B
Maybe the best thing is to switch to gssapi authentication = instead of PAM. =3B Does anyone have any suggestions or experience with= this?

~DjK
 =3B
##
Fix PAM password processing to be more robust= (Tom) The previous code is known to fail with the combination of the Linux= pam_krb5 PAM module with Microsoft Active Directory as the domain controll= er. It might have problems elsewhere too=2C since it was making unjustified= assumptions about what arguments the PAM stack would pass to it.
 = =3B
##
Linux and AD
The AD is running at a domain functional leve= l of Windows Server 2003=2C however the schema is updated to Windows Server= 2008.
Linux OS: SLES 9 sp4
2.6.5-7.308-smp #1 SMP Mon Dec 10 11:36:4= 0 UTC 2007 x86_64 x86_64 x86_64 GNU/Linux
 =3B
## PAM -- postgres=
auth required pam_unix2.so nullok
account required pam_unix2.so
&= nbsp=3B
## nsswitch.conf --
passwd: compat
group: compat
hosts= : files dns
networks: files dns
services: files
protocols: filesrpc: files
ethers: files
netmasks: files
netgroup: files
publ= ickey: files
bootparams: files
automount: files nis
aliases: files=
passwd_compat: ldap
group_compat: ldap


Hotmail: Trusted email with Microsoft=92s powerful SPAM protection= . Sign up now. = --_24a0c3fe-f7da-4faa-bfbf-e2eba3ebc87f_--