xperseguers / t3ext-ig_ldap_sso_auth

TYPO3 Extension ig_ldap_sso_auth. This extension provides LDAP and SSO support for TYPO3.
https://extensions.typo3.org/extension/ig_ldap_sso_auth
27 stars 68 forks source link

TYPO3 v9 locally-assigned TYPO3 user groups are not kept #49

Closed oheil closed 5 years ago

oheil commented 5 years ago

"Keep locally-assigned TYPO3 user groups" ist enabled but the group relation to local groups is lost after login.

Found the error in Classes/Domain/Repository/Typo3UserRepository.php line 375: $localUserGroups = array_keys($rows);

I have replaced this line with $localUserGroups = array_map(function($row){return $row['uid'];},$rows); as a solution.

xperseguers commented 5 years ago

Tested with locally-assigned groups to a Backend user and I cannot reproduce your problem.

xperseguers commented 5 years ago

Looks like you were still using the older version of the code, not yet migrated to Doctrine, and thus only possibly compatible with TYPO3 v8.

oheil commented 5 years ago

Yes, this is possible. I am still on my local clone. So I close :-)