Skip to content

Commit

Permalink
Correctly disable cyrus-sasl in openldap (#102)
Browse files Browse the repository at this point in the history
OpenLDAP uses cyrus-sasl by default.
When Kerberos is installed on the build machine, cyrus-sasl would use it and OpenLDAP would depend on Kerberos libraries.
Our Jenkins build machines do not have Kerberos, so the build fails if OpenLDAP depends on Kerberos.
Here we correctly turn off cyrus-sasl for OpenLDAP build to avoid having this dependency.
  • Loading branch information
spolitov authored Feb 26, 2022
1 parent 16e9b78 commit 320a4d6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions python/build_definitions/openldap.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,10 @@ def get_additional_compiler_flags(self, builder: BuilderInterface) -> List[str]:
def build(self, builder: BuilderInterface) -> None:
# build client only
disabled_features = (
'slapd', 'bdb', 'hdb', 'mdb', 'monitor', 'relay', 'syncprov', 'cyrus-sasl'
'slapd', 'bdb', 'hdb', 'mdb', 'monitor', 'relay', 'syncprov'
)

builder.build_with_configure(
builder.log_prefix(self),
extra_args=['--disable-' + feature for feature in disabled_features])
extra_args=['--disable-' + feature for feature in disabled_features] +
['--with-cyrus-sasl=no'])

0 comments on commit 320a4d6

Please sign in to comment.