Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Typo3 v11.5 #129

Closed
ghollenstein opened this issue Nov 12, 2021 · 7 comments
Closed

Support for Typo3 v11.5 #129

ghollenstein opened this issue Nov 12, 2021 · 7 comments

Comments

@ghollenstein
Copy link

it would be greate to have a version which supports v11.5 --> User/Group sync is working, but during the Login an exception is thrown.

@webmaster-buw
Copy link

webmaster-buw commented Nov 19, 2021

it would be greate to have a version which supports v11.5 --> User/Group sync is working, but during the Login an exception is thrown.

@ghollenstein Could you post the exception here? Maybe it's the same:
(Edited: Exception deleted – the error on our system was related to a clumsy configuration.)

@ghollenstein
Copy link
Author

ghollenstein commented Nov 20, 2021

Thank your for your response - here is the requested exception:

Core: Exception handler (WEB): Uncaught TYPO3 Exception: Argument 1 passed to Causal\IgLdapSsoAuth\Domain\Repository\Typo3GroupRepository::fetch() must be of the type string, null given, called in /var/www/html/qm/typo3conf/ext/ig_ldap_sso_auth/Classes/Library/Authentication.php on line 581 | TypeError thrown in file /var/www/html/qm/typo3conf/ext/ig_ldap_sso_auth/Classes/Domain/Repository/Typo3GroupRepository.php in line 73.

PHP Version 7.4.25

@webmaster-buw
Copy link

webmaster-buw commented Nov 22, 2021

Similiar here:

(1/1) TypeError

Argument 3 passed to Causal\IgLdapSsoAuth\Domain\Repository\Typo3UserRepository::setUserGroups() must be of the type string, null given, called in /var/www/www.example.com/public/typo3conf/ext/ig_ldap_sso_auth/Classes/Library/Authentication.php on line 246

No group settings, just user authentication

@MarkusEhrlich
Copy link

Another error:

(1/1) TypeError
Argument 1 passed to Causal\IgLdapSsoAuth\Domain\Repository\Typo3GroupRepository::fetch() must be of the type string, null given, called in /var/www/html/backend/public/typo3conf/ext/ig_ldap_sso_auth/Classes/Library/Authentication.php on line 586

in /var/www/html/backend/public/typo3conf/ext/ig_ldap_sso_auth/Classes/Domain/Repository/Typo3GroupRepository.php line 73
     * @param string $dn
     * @param string $groupName
     * @return null
     */
    public static function fetch(string $table, int $uid = 0, ?int $pid = null, ?string $dn = null, ?string $groupName = null): array
    {
        if (!GeneralUtility::inList('be_groups,fe_groups', $table)) {
            throw new InvalidUserGroupTableException('Invalid table "' . $table . '"', 1404891809);
        }

@MarkusEhrlich
Copy link

In my case, the following line returns a null value:
$groupTable = static::$authenticationService->authInfo['db_groups']['table'];

This causes my error see #129 (comment).

When I debug $authenticationService, the array db_groups => table is missing.
This affects 2 places in Classes/Library/Authentication.php.
Where should db_groups => table come from?

@xperseguers
Copy link
Owner

FYI working a bit on v11 compatibility. Be sure naturally to checkout feature/TYPO3v11

@xperseguers
Copy link
Owner

Branch feature/TYPO3v11 has reached a good stability, the extension largely works in TYPO3 v11 (not tested everything though) and Frontend authentication works. As such I'm closing this issue, will merge that branch onto the main development branch (master) and suggest to open dedicated tickets if you encounter further problems with either TYPO3 v11 or PHP 8.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants