stable

Clone or download

Read-only

Create user when needed

This task is part of story #8528 create nonexistant user account at import time If the mapping file contains users to be created, and the option --force-create-all-users is given, then create those users. This means that if those users are referenced in the project.xml with the username then it will be used. However if it is referenced by its ldap id then it will not be used yet. The created user has a suspended status and a random password. Change-Id: I7ce779cb0c250b5cbcfadf51a94ae30b5e7912a4

Modified Files

Name
M src/common/autoload.php +3 −2 Go to diff View file
A src/common/user/XML/Import/UserCannotBeCreatedException.php +24 −0 Go to diff View file
M src/common/user/XML/Import/WillBeCreatedUser.php +26 −1 Go to diff View file
M src/utils/generate_user_mapping_for_project_import.php +1 −1 Go to diff View file
M src/utils/import_project_xml.php +4 −4 Go to diff View file
A tests/simpletest/common/user/XML/Import/WillBeCreatedUserTest.php +63 −0 Go to diff View file