SSO using openLDAP

On my forum i have a button that redirects to nextcloud log in page . Considering the credentials are the same as my forum , how can i achieve SSO?

Worth mentioning is that my forums database is not openLDAP , openLDAP is a subset database for nextcloud + some other services BUT the accounts user/pass are identical .

any idea about this ?