Hi!
I created a fork from you SimpleSAMLphp extension to make is work with Shibboleth. So far the auth part works fine, but I'm having some trouble with populateGroups function.
Inside the populateGroups function when I try to use $user->addGroup('sysop'), it runs into an exception.
Maybe I using this with a wrong syntax?
[04017fd989ba88c452adcb3c] /index.php/Speci%C3%A1lis:PluggableAuthLogin UnexpectedValueException from line 168 of /var/mediawiki/includes/user/UserGroupMembership.php: UserGroupMembership::insert() needs a positive user ID. Did you forget to add your User object to the database before calling addGroup()?
Backtrace:
#0 /var/mediawiki/includes/user/User.php(3425): UserGroupMembership->insert(boolean)
#1 /var/mediawiki/extensions/Shibboleth/Shibboleth.class.php(118): User->addGroup(string)
#2 /var/mediawiki/includes/Hooks.php(186): Shibboleth::populateGroups(User)
#3 /var/mediawiki/extensions/PluggableAuth/includes/PluggableAuthLogin.php(41): Hooks::run(string, array)
#4 /var/mediawiki/includes/specialpage/SpecialPage.php(522): PluggableAuthLogin->execute(NULL)
#5 /var/mediawiki/includes/specialpage/SpecialPageFactory.php(578): SpecialPage->run(NULL)
#6 /var/mediawiki/includes/MediaWiki.php(287): SpecialPageFactory::executePath(Title, RequestContext)
#7 /var/mediawiki/includes/MediaWiki.php(862): MediaWiki->performRequest()
#8 /var/mediawiki/includes/MediaWiki.php(523): MediaWiki->main()
#9 /var/mediawiki/index.php(43): MediaWiki->run()
#10 {main}