Skip to content

Conversation

@szaimen
Copy link
Contributor

@szaimen szaimen commented Dec 5, 2025

@szaimen szaimen added this to the Nextcloud 33 milestone Dec 5, 2025
@szaimen szaimen changed the title feat(ldap): Allow to use global default_certificates_bundle_path fo… feat(ldap): Allow to use global default_certificates_bundle_path for ldap Dec 5, 2025
@szaimen szaimen requested review from blizzz and come-nc December 5, 2025 12:35
$this->ldap->setOption(null, LDAP_OPT_X_TLS_REQUIRE_CERT, LDAP_OPT_X_TLS_DEMAND);
}

$defaultCertificatePath = $this->configuration->getSystemValue('default_certificates_bundle_path');
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How can I retrieve a system value here in this class? Or do I need to retrieve it in a different one and pass it over somehow?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

$this->ldap->setOption(null, LDAP_OPT_X_TLS_REQUIRE_CERT, LDAP_OPT_X_TLS_DEMAND);
}

$defaultCertificatePath = $this->configuration->getSystemValue('default_certificates_bundle_path');
Copy link
Member

@provokateurin provokateurin Dec 5, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use \OCP\ICertificateManager::getAbsoluteBundlePath instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants