iRedAdmin::User - API for add, edit, delete, enable and disable User
Version 0.01
use iRedAdmin;
my $iredadmin = iRedAdmin->new(
url => 'https://hostname.mydomain.com/iredadmin',
username => '[email protected]',
password => 'your_password',
cookie => '/home/user/cookie.txt',
lang => 3
);
my $user = $iredadmin->User->Add(
email => '[email protected]',
password => 'password_of_email',
name => 'Foo',
quota => 2048
);
print $iredadmin->error unless $user; # print error if $user is equal 0
Method to add User.
Email of User
password
Password of User
name
Display Name of User (Optional)
quota
Mailbox Quota of User (Optional)
Method to edit User.
Email of User
name
Change Display Name of User
lang
Change language default of User
enable
1 to enable, 0 to disable, without set not change account
global_admin
1 to enable, 0 to disable, without set not change account
Method to change password of User.
Email of User
password
New password of User
Method to enable Users.
Example
$iredadmin->User->Enable(
'[email protected]',
'[email protected]',
'[email protected]'
);
Method to disable Users.
Example
$iredadmin->User->Disable(
'[email protected]',
'[email protected]',
'[email protected]'
);
Method to delete Users.
Example
$iredadmin->User->Delete(
'[email protected]',
'[email protected]',
'[email protected]'
);
Lucas Tiago de Moraes, <[email protected]>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or, at your option, any later version of Perl 5 you may have available.