Configure LDAP when adding Plone Site in setuphandlers

Hello,
I'm trying to configure ldap when adding Plone Site.
In setuphandlers.py I've checking if LDAP plugin is enabled:
'plone.app.ldap:ldap' in site.REQUEST.form.get('extension_ids')
but acctually I have no idea how to access specific settings to setup for example: Groups Base DN.
Is it even possible to access it in setuphandlers.py?

Maybe take a look at what I did here a few years ago... https://github.com/uwosh/uwosh.policy.ldap/blob/master/uwosh/policy/ldap/importexport.py

OK. Thank you.