Quote:
Originally Posted by roarkh
Is there any way to tell the LDAP Authentication plugin that new users should be created as "Registered Users" instead of "Super Moderators"?
|
Yes, but you'll need to edit the plugin source, as this option hasn't been added to the LDAP settings.
If you're using my version, from the post above, you'll need to edit line 193 of the plugin, shown in the snip below. The line that sets the usergroupid to 5 makes the new user a supermoderator. The 'Registered users' group has a usergroupid of 2 (at least it does in mine). So change the 5 to a 2, and that should resolve the issue. The usergroup IDs can be found in Usergroup manager in the admin control panel.
PHP Code:
($debug = $debug ) ? print_log("New user. Creating with info from ldap") : false;
$newuser->set('email', strtolower($userData[0]['mail'][0]));
$newuser->set('username', $vbulletin->GPC['vb_login_username']);
---> $newuser->set('usergroupid', 5);
$newuser->set_bitfield('options', 'adminemail', true);
$newuser->set_bitfield('options', 'emailonpm', true)
Hope this helps!