Re: Add ldapservice connection parameter - Mailing list pgsql-hackers

From Andrew Jackson
Subject Re: Add ldapservice connection parameter
Date
Msg-id CAKK5BkEsKEnPifH10hXsXt7Z7qN2PPy6i64TH0A9yRr=mT=TtA@mail.gmail.com
Whole thread
In response to Re: Add ldapservice connection parameter  (Laurenz Albe <laurenz.albe@cybertec.at>)
Responses Re: Add ldapservice connection parameter
List pgsql-hackers
Hi,

> Oh, I didn't look at that.  If ldapServiceLookup() already appends a
> meaningful error message, there is no need to add another one.

Updated patch to only append an error message when rc from
ldapServiceLookup is 2. This is the only non zero return of
ldapServiceLookup that does not append an error message because it is
meant to signal that the lookup was not successful but we can continue
parsing the service file. In this case I think it makes sense to raise
an error and append an error message. Also increased the specificity
of the test assertions.

> That change does not really belong to the patch, but is alright by me.

I added this because now that there is a connection parameter that
begins with ldap it could cause a confusing error message if the user
tries to use ldapserviceurl in a service file and are then given an
error message that roughly says 'invalid LDAP URL ".*" scheme must be
ldap://'.

Thanks,
Andrew Jackson

Attachment

pgsql-hackers by date:

Previous
From: Nazir Bilal Yavuz
Date:
Subject: Upload only the failed tests logs to the Postgres CI (Cirrus CI)
Next
From: Nazir Bilal Yavuz
Date:
Subject: Re: Upload only the failed tests logs to the Postgres CI (Cirrus CI)