Dears,
I found a bug in drivers_ldap::sync_user_from_LDAP that prevent to create a new principal because doese not fill correctly the fields_to_set call to principal::create principal::update
I have patched inserting
$fields_to_set['username']=$principal->username();
into line 279 of drivers_ldap::sync_user_from_LDAP
that fixed.