◆ __construct()
ilRadiusAttributeToUser::__construct |
( |
| ) |
|
◆ create()
ilRadiusAttributeToUser::create |
( |
|
$a_username | ) |
|
Create new ILIAS account.
public
- Parameters
-
Definition at line 60 of file class.ilRadiusAttributeToUser.php.
References ilAuthUtils\_generateLogin().
62 $this->writer->xmlStartTag(
'Users');
67 $this->writer->xmlStartTag(
'User', array(
'Action' =>
'Insert'));
71 $this->writer->xmlElement(
'Role', array(
'Id' => $this->rad_settings->getDefaultRole(),
73 'Action' =>
'Assign'),
'');
75 $this->writer->xmlElement(
'Active', array(),
"true");
76 $this->writer->xmlElement(
'TimeLimitOwner', array(), 7);
77 $this->writer->xmlElement(
'TimeLimitUnlimited', array(), 1);
78 $this->writer->xmlElement(
'TimeLimitFrom', array(), time());
79 $this->writer->xmlElement(
'TimeLimitUntil', array(), time());
80 $this->writer->xmlElement(
'AuthMode', array(
'type' =>
'radius'),
'radius');
81 $this->writer->xmlElement(
'ExternalAccount', array(), $a_username);
83 $this->writer->xmlEndTag(
'User');
84 $this->writer->xmlEndTag(
'Users');
85 $this->log->write(
'Radius: Started creation of user: ' . $new_name);
87 include_once
'./Services/User/classes/class.ilUserImportParser.php';
89 $importParser->setXMLContent($this->writer->xmlDumpMem(
false));
90 $importParser->setRoleAssignment(array($this->rad_settings->getDefaultRole() => $this->rad_settings->getDefaultRole()));
91 $importParser->setFolderId(7);
92 $importParser->startParsing();
static _generateLogin($a_login)
generate free login by starting with a default string and adding postfix numbers
The documentation for this class was generated from the following file: