[LDAP][REGISTRATION] Error when add users from Registration App

Bonjour,

lorsque je souhaite ajouter un utilisateur, via l’application Registration , j’ai une erreur de ce type Call to a member function getUID() on null

Operating system: Debian Buster
Webserver: /nginx/1.14.2 (Debian)
Database: PostgreSQL 11.7
PHP version: 7.3.14
Nextcloud version: 18.0.3.0

Steps to replicate it:

Configure LDAP user backend
Install registration app
Trigger registration process on nextcloud login screen
Follow the link in the registration email
Fill out registration Form and submit -> error!

“reqId”:“1KMUocK5QXTLFIOBEguj”,“level”:3,“time”:“2020-03-31T15:07:12+00:00”,“remoteAddr”:“192.168.1.100”,“user”:"–",“app”:“index”,“method”:“POST”,“url”:"/apps/registration/verify/7G5VCyFeKc",“message”:{“Exception”:“Exception”,“Message”:“Call to a member function getUID() on null”,“Code”:0,“Trace”:[{“file”:"/var/www/nextcloud/lib/private/AppFramework/App.php",“line”:125,“function”:“dispatch”,“class”:“OC\AppFramework\Http\Dispatcher”,“type”:"->",“args”:[{“class”:“OCA\Registration\Controller\RegisterController”},“createAccount”]},{“file”:"/var/www/nextcloud/lib/private/AppFramework/Routing/RouteActionHandler.php",“line”:47,“function”:“main”,“class”:“OC\AppFramework\App”,“type”:"::",“args”:[“OCA\Registration\Controller\RegisterController”,“createAccount”,{“class”:“OC\AppFramework\DependencyInjection\DIContainer”},{“token”:“7G5VCyFeKc”,"_route":“registration.register.createAccount”}]},{“function”:"__invoke",“class”:“OC\AppFramework\Routing\RouteActionHandler”,“type”:"->",“args”:[{“token”:“7G5VCyFeKc”,"_route":“registration.register.createAccount”}]},{“file”:"/var/www/nextcloud/lib/private/Route/Router.php",“line”:299,“function”:“call_user_func”,“args”:[{“class”:“OC\AppFramework\Routing\RouteActionHandler”},{“token”:“7G5VCyFeKc”,"_route":“registration.register.createAccount”}]},{“file”:"/var/www/nextcloud/lib/base.php",“line”:1008,“function”:“match”,“class”:“OC\Route\Router”,“type”:"->",“args”:["/apps/registration/verify/7G5VCyFeKc"]},{“file”:"/var/www/nextcloud/index.php",“line”:38,“function”:“handleRequest”,“class”:“OC”,“type”:"::",“args”:[]}],“File”:"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php",“Line”:109,“Previous”:{“Exception”:“Error”,“Message”:“Call to a member function getUID() on null”,“Code”:0,“Trace”:[{“file”:"/var/www/nextcloud/apps/user_ldap/lib/UserPluginManager.php",“line”:95,“function”:“createUser”,“class”:“OCA\LdapWriteSupport\LDAPUserManager”,“type”:"->",“args”:[“mode_of_user”,“model_of_passwd”]},{“file”:"/var/www/nextcloud/apps/user_ldap/lib/User_LDAP.php",“line”:607,“function”:“createUser”,“class”:“OCA\User_LDAP\UserPluginManager”,“type”:"->",“args”:[“mode_of_user”,“model_of_passwd”]},{“function”:“createUser”,“class”:“OCA\User_LDAP\User_LDAP”,“type”:"->",“args”:[“mode_of_user”,“model_of_passwd”]},{“file”:"/var/www/nextcloud/apps/user_ldap/lib/User_Proxy.php",“line”:87,“function”:“call_user_func_array”,“args”:[[{“class”:“OCA\User_LDAP\User_LDAP”},“createUser”],[“mode_of_user”,“model_of_passwd”]},{“file”:"/var/www/nextcloud/apps/user_ldap/lib/Proxy.php",“line”:152,“function”:“walkBackends”,“class”:“OCA\User_LDAP\User_Proxy”,“type”:"->",“args”:[“mode_of_user”,“createUser”,[“mode_of_user”,“model_of_passwd”]]},{“file”:"/var/www/nextcloud/apps/user_ldap/lib/User_Proxy.php",“line”:369,“function”:“handleRequest”,“class”:“OCA\User_LDAP\Proxy”,“type”:"->",“args”:[“mode_of_user”,“createUser”,[“mode_of_user”,"“model_of_passwd]]},{“file”:”/var/www/nextcloud/lib/private/User/Manager.php",“line”:370,“function”:“createUser”,“class”:“OCA\User_LDAP\User_Proxy”,“type”:"->",“args”:[“mode_of_user”,“model_of_passwd”]},{“file”:"/var/www/nextcloud/lib/private/User/Manager.php",“line”:309,“function”:“createUserFromBackend”,“class”:“OC\User\Manager”,“type”:"->",“args”:[“mode_of_user”,“model_of_passwd”,{“class”:“OCA\User_LDAP\User_Proxy”}]},{“file”:"/var/www/nextcloud/apps/registration/service/registrationservice.php",“line”:282,“function”:“createUser”,“class”:“OC\User\Manager”,“type”:"->",“args”:[“mode_of_user”,“model_of_passwd”]},{“file”:"/var/www/nextcloud/apps/registration/controller/registercontroller.php",“line”:149,“function”:“createAccount”,“class”:“OCA\Registration\Service\RegistrationService”,“type”:"->",“args”:[{“id”:22,“class”:“OCA\Registration\Db\Registration”},“mode_of_user”,“model_of_passwd”]},{“file”:"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php",“line”:170,“function”:“createAccount”,“class”:“OCA\Registration\Controller\RegisterController”,“type”:"->",“args”:[“7G5VCyFeKc”]},{“file”:"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php",“line”:99,“function”:“executeController”,“class”:“OC\AppFramework\Http\Dispatcher”,“type”:"->",“args”:[{“class”:“OCA\Registration\Controller\RegisterController”},“createAccount”]},{“file”:"/var/www/nextcloud/lib/private/AppFramework/App.php",“line”:125,“function”:“dispatch”,“class”:“OC\AppFramework\Http\Dispatcher”,“type”:"->",“args”:[{“class”:“OCA\Registration\Controller\RegisterController”},“createAccount”]},{“file”:"/var/www/nextcloud/lib/private/AppFramework/Routing/RouteActionHandler.php",“line”:47,“function”:“main”,“class”:“OC\AppFramework\App”,“type”:"::",“args”:[“OCA\Registration\Controller\RegisterController”,“createAccount”,{“class”:“OC\AppFramework\DependencyInjection\DIContainer”},{“token”:“7G5VCyFeKc”,"_route":“registration.register.createAccount”}]},{“function”:"__invoke",“class”:“OC\AppFramework\Routing\RouteActionHandler”,“type”:"->",“args”:[{“token”:“7G5VCyFeKc”,"_route":“registration.register.createAccount”}]},{“file”:"/var/www/nextcloud/lib/private/Route/Router.php",“line”:299,“function”:“call_user_func”,“args”:[{“class”:“OC\AppFramework\Routing\RouteActionHandler”},{“token”:“7G5VCyFeKc”,"_route":“registration.register.createAccount”}]},{“file”:"/var/www/nextcloud/lib/base.php",“line”:1008,“function”:“match”,“class”:“OC\Route\Router”,“type”:"->",“args”:["/apps/registration/verify/7G5VCyFeKc"]},{“file”:"/var/www/nextcloud/index.php",“line”:38,“function”:“handleRequest”,“class”:“OC”,“type”:"::",“args”:[]}],“File”:"/var/www/nextcloud/apps/ldap_write_support/lib/LDAPUserManager.php",“Line”:220},“CustomMessage”:"–"},“userAgent”:“Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36”,“version”:“18.0.3.0”}

L’erreur principale semble être Call to a member function getUID() on null …