Re: Add a hook to allow modification of the ldapbindpasswd - Mailing list pgsql-hackers

From Andrew Dunstan
Subject Re: Add a hook to allow modification of the ldapbindpasswd
Date
Msg-id 9f03c88b-3f7f-d9b7-c61c-dfc63a4deffd@dunslane.net
Whole thread Raw
In response to Re: Add a hook to allow modification of the ldapbindpasswd  (Andrew Dunstan <andrew@dunslane.net>)
List pgsql-hackers


On 2023-03-15 We 18:18, Andrew Dunstan wrote:


On 2023-03-15 We 17:50, Tom Lane wrote:
Andrew Dunstan <andrew@dunslane.net> writes:
pushed.
drongo is not happy with this, but I'm kind of baffled as to why:

"c:\\prog\\bf\\root\\HEAD\\pgsql.build\\pgsql.sln" (default target) (1) ->
"c:\\prog\\bf\\root\\HEAD\\pgsql.build\\ldap_password_func.vcxproj" (default target) (60) ->
(Link target) ->   ldap_password_func.obj : error LNK2001: unresolved external symbol __imp_ldap_password_hook [c:\\prog\\bf\\root\\HEAD\\pgsql.build\\ldap_password_func.vcxproj]  .\\Release\\ldap_password_func\\ldap_password_func.dll : fatal error LNK1120: 1 unresolved externals [c:\\prog\\bf\\root\\HEAD\\pgsql.build\\ldap_password_func.vcxproj]

The only obvious explanation for a link problem would be if the
variable's declaration were missing PGDLLIMPORT; but it's not.
			


Ugh. Not batting 1000 today. Will investigate.




The issue was apparently that I had neglected to suppress building the test module on MSVC if not configured to build with LDAP, since the hook is only defined in that case. I have pushed a fix for that and drongo is happy once more.


cheers


andrew

--
Andrew Dunstan
EDB: https://www.enterprisedb.com

pgsql-hackers by date:

Previous
From: "Drouvot, Bertrand"
Date:
Subject: Re: Reconcile stats in find_tabstat_entry() and get rid of PgStat_BackendFunctionEntry
Next
From: "shiy.fnst@fujitsu.com"
Date:
Subject: RE: Dropped and generated columns might cause wrong data on subs when REPLICA IDENTITY FULL