hello,
environment: Ox 7.10 I want to test the provisioning with soap. when I run the perl script following, the timezone attribute is changed without problem however the password_expired attribute does not change. the account password does not expire either password_expired=true or password_expired=false I tested with other attribute exp displayname and the change is also done. please, do you have any idea why?
thank you
#!usr/bin/perl
use warnings;
use Data:umper;
use SOAP::Lite;
my $baseURL = "http://******/webservices/";
my $nameSpace="http://dataobjects.soap.admin.openexchange.com";
my $adminmaster = "oxadminmaster";
my $masterpw = "secret";
my $ctxadmin = "oxadmin";
my $ctxadmpw = "admin_password";
my $masterCreds = SOAP:ata->type("Credentials")->value(
\SOAP:ata->value(
SOAP:ata->name("login" => $adminmaster),
SOAP:ata->name("password" => $masterpw)
)
);
my $ctxCreds = SOAP:ata->type("Credentials")->value(
\SOAP:ata->value(
SOAP:ata->name("login" => $ctxadmin),
SOAP:ata->name("password" => $ctxadmpw)
)
);
my $ctxid = 1;
my $context = SOAP:ata->type("Context")->value(\SOAP:ata->value(SOAP:ata->name("id" => $ctxid)));
my $souserclt = SOAP::Lite->ns( $nameSpace )->proxy( $baseURL."OXUserService" );
$password_expired = "true";
$timezone = "fr";
$result =
$souserclt->change($context,
SOAP:ata->value("User")->value(\SOAP:ata->value(
SOAP:ata->name("id" => 3),
SOAP:ata->name("timezone" => $timezone),
SOAP:ata->name("password_expired" => $password_expired)
)),
$ctxCreds
);
die "Error: ".$result->faultstring()."\n $@" if $result->fault();
environment: Ox 7.10 I want to test the provisioning with soap. when I run the perl script following, the timezone attribute is changed without problem however the password_expired attribute does not change. the account password does not expire either password_expired=true or password_expired=false I tested with other attribute exp displayname and the change is also done. please, do you have any idea why?
thank you
#!usr/bin/perl
use warnings;
use Data:umper;
use SOAP::Lite;
my $baseURL = "http://******/webservices/";
my $nameSpace="http://dataobjects.soap.admin.openexchange.com";
my $adminmaster = "oxadminmaster";
my $masterpw = "secret";
my $ctxadmin = "oxadmin";
my $ctxadmpw = "admin_password";
my $masterCreds = SOAP:ata->type("Credentials")->value(
\SOAP:ata->value(
SOAP:ata->name("login" => $adminmaster),
SOAP:ata->name("password" => $masterpw)
)
);
my $ctxCreds = SOAP:ata->type("Credentials")->value(
\SOAP:ata->value(
SOAP:ata->name("login" => $ctxadmin),
SOAP:ata->name("password" => $ctxadmpw)
)
);
my $ctxid = 1;
my $context = SOAP:ata->type("Context")->value(\SOAP:ata->value(SOAP:ata->name("id" => $ctxid)));
my $souserclt = SOAP::Lite->ns( $nameSpace )->proxy( $baseURL."OXUserService" );
$password_expired = "true";
$timezone = "fr";
$result =
$souserclt->change($context,
SOAP:ata->value("User")->value(\SOAP:ata->value(
SOAP:ata->name("id" => 3),
SOAP:ata->name("timezone" => $timezone),
SOAP:ata->name("password_expired" => $password_expired)
)),
$ctxCreds
);
die "Error: ".$result->faultstring()."\n $@" if $result->fault();
Comment