Forum Discussion
Dec 09, 2008
Here's the code I used
sub handle_create()
{
my ($UserName, $FullName, $Role, $Password) = @_;
Some defaults for testing
if ( $FullName eq "" ) { $FullName = "Fred Garvin"; }
if ( $Role eq "" ) { $Role = USER_ROLE_ADMINISTRATOR; }
if ( $Password eq "" ) { $Password = $UserName; }
if ( $Password eq "" ) { $Password = ""; }
$UserID = {
name => $UserName,
full_name => $FullName
};
$UserInfo = {
user => $UserID,
role => $Role,
password => $Password,
home_directory => "/home/$UserName",
login_shell => "/bin/bash",
user_id => 0,
group_id => 500
};
$soapResponse = $UserManagement->create_user(
SOAP::Data->name(users => [$UserInfo])
);
}
I tested this on 9.4.5. If this isn't working with 9.3-HF3, then you'll likely have to create a support ticket with product support for your version. If you can send me your code, I can test it on my BIG-IP.
-Joe