38 $this->logger = $DIC->logger()->auth();
40 include_once(
'./Services/Xml/classes/class.ilXmlWriter.php');
55 $this->writer->xmlStartTag(
'Users');
60 $this->writer->xmlStartTag(
'User',
array(
'Action' =>
'Insert'));
64 $this->writer->xmlElement(
67 'Id' => $this->
settings->getDefaultRole(),
69 'Action' =>
'Assign'),
73 $this->writer->xmlElement(
'Active',
array(),
"true");
74 $this->writer->xmlElement(
'TimeLimitOwner',
array(), 7);
75 $this->writer->xmlElement(
'TimeLimitUnlimited',
array(), 1);
76 $this->writer->xmlElement(
'TimeLimitFrom',
array(),
time());
77 $this->writer->xmlElement(
'TimeLimitUntil',
array(),
time());
78 $this->writer->xmlElement(
'AuthMode',
array(
'type' =>
'cas'),
'cas');
79 $this->writer->xmlElement(
'ExternalAccount',
array(), $a_username);
81 $this->writer->xmlEndTag(
'User');
82 $this->writer->xmlEndTag(
'Users');
84 $this->logger->info(
'CAS: Startet creation of user: ' . $new_name);
86 include_once
'./Services/User/classes/class.ilUserImportParser.php';
88 $importParser->setXMLContent($this->writer->xmlDumpMem(
false));
89 $importParser->setRoleAssignment(
94 $importParser->setFolderId(7);
95 $importParser->startParsing();
static _generateLogin($a_login)
generate free login by starting with a default string and adding postfix numbers
CAS user creation helper.
Create styles array
The data for the language used.
__construct(\ilCASSettings $settings)
Constructor.
Add data(end) time
Method that wraps PHPs time in order to allow simulations with the workflow.
create($a_username)
Create new ILIAS account.