umm well the current LDAP mod creates the user directly in the db so it bypasses the default settings with regards to new users etc within vB.
below is the code that the LDAP mod uses to create the new user....just not sure how to add to it so that it creates the new users similar to the way the default settings would within vB.
PHP Code:
if(defined('LDDEBUG')) { wrlog("++ LoginScript:\t creating user in vBulletin database"); }
$newuserid = $newuser->save();
$vbulletin->GPC['vb_login_username']=$vbulletin->GPC['vb_login_username'];
$vbulletin->GPC['cookieuser']=$vbulletin->GPC['vb_login_username'];
verify_authentication($vbulletin->GPC['vb_login_username'], $vbulletin->GPC['cookieuser'], true);
exec_unstrike_user($vbulletin->GPC['vb_login_username']);
process_new_login($vbulletin->GPC['logintype'], $vbulletin->GPC['cookieuser'], $vbulletin->GPC['cssprefs']);
if(defined('LDDEBUG')) { wrlog("++LoginScript:\t logging in"); if($fp) { fclose($fp); } }
do_login_redirect();