Forum Discussion
bsdpruegelknabe
Nimbostratus
Nov 03, 2008create_user doesn't work or I'm to dumb?!
Hello,
the most possibillity is that I didn't understood to use create_user propperly...
Well, I hope anyone can help me here.
I use perl (yeah, I know, bite me... ;-p ) t...
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
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects