Closed ghollenstein closed 2 years ago
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.)
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
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
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);
}
In my case, the following line returns a null value:
$groupTable = static::$authenticationService->authInfo['db_groups']['table'];
This causes my error see https://github.com/xperseguers/t3ext-ig_ldap_sso_auth/issues/129#issuecomment-976547972.
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?
FYI working a bit on v11 compatibility. Be sure naturally to checkout feature/TYPO3v11
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.
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.