Re: [PATCH] Add an ldapoption to disable chasing LDAP referrals
От | James Sewell |
---|---|
Тема | Re: [PATCH] Add an ldapoption to disable chasing LDAP referrals |
Дата | |
Msg-id | CANkGpBtabjA=k_phdPNSUsWQMYkz1CvB4=aO2HJy_6-f5SZUsA@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: [PATCH] Add an ldapoption to disable chasing LDAP referrals (Magnus Hagander <magnus@hagander.net>) |
Ответы |
Re: [PATCH] Add an ldapoption to disable chasing LDAP referrals
Re: [PATCH] Add an ldapoption to disable chasing LDAP referrals Re: [PATCH] Add an ldapoption to disable chasing LDAP referrals |
Список | pgsql-hackers |
Hey,
New patch attached. I've moved from using a boolean to an enum trivalue.
Let me know what you think.
Cheers,
James
James Sewell
PostgreSQL Team Lead / Solutions Architect
_____________________________________

On Thu, Jul 4, 2013 at 8:23 PM, Magnus Hagander <magnus@hagander.net> wrote:
On Thu, Jul 4, 2013 at 2:30 AM, James Sewell <james.sewell@lisasoft.com> wrote:Heya,I see what you are saying, the problem as I see it is that the action we are taking here is "disable chasing ldap referrals". If the name is ldapreferrals and we use a boolean then setting it to 1 reads in a counter intuitive manner:That assumes that the default in the ldap library is always going to be to chase them. Does the standard somehow mandate that it should be?"set ldapreferals=true to disable chasing LDAP referrals."You'd obviously reverse the meaning as well. "set ldapreferals=false to disable chasing LDAP referrals."Perhaps you are fine with this though if it's documented? It does work in the inverse way to pam_ldap, where setting to true enables referral chasing. pam_ldap works like so:not set : library defaultset to 0 : disable referral chasingset to 1 : enable referral chasingThat is exactly what I'm suggesting it should do, and I'm pretty sure that's what Peter suggested as well.
The contents of this email are confidential and may be subject to legal or professional privilege and copyright. No representation is made that this email is free of viruses or other defects. If you have received this communication in error, you may not copy or distribute any part of it or otherwise disclose its contents to anyone. Please advise the sender of your incorrect receipt of this correspondence.
Вложения
В списке pgsql-hackers по дате отправления: