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(
66 'Id' => $this->
settings->getDefaultRole(),
68 'Action' =>
'Assign'),
'');
70 $this->writer->xmlElement(
'Active',
array(),
"true");
71 $this->writer->xmlElement(
'TimeLimitOwner',
array(), 7);
72 $this->writer->xmlElement(
'TimeLimitUnlimited',
array(), 1);
73 $this->writer->xmlElement(
'TimeLimitFrom',
array(),
time());
74 $this->writer->xmlElement(
'TimeLimitUntil',
array(),
time());
75 $this->writer->xmlElement(
'AuthMode',
array(
'type' =>
'cas'),
'cas');
76 $this->writer->xmlElement(
'ExternalAccount',
array(), $a_username);
78 $this->writer->xmlEndTag(
'User');
79 $this->writer->xmlEndTag(
'Users');
81 $this->logger->info(
'CAS: Startet creation of user: ' . $new_name);
83 include_once
'./Services/User/classes/class.ilUserImportParser.php';
85 $importParser->setXMLContent($this->writer->xmlDumpMem(
false));
86 $importParser->setRoleAssignment(
91 $importParser->setFolderId(7);
92 $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.