Forum Discussion
Steve_Brown_882
Mar 10, 2011Historic F5 Account
create_user_3 in a perl script
Hey Guys,
I don't do a lot of perl scripting so I am hoping for a little help getting a script to work. Basically I have pieced som code together from the forums but it doesn't quite work. ...
Mar 10, 2011
A couple of things stick out right away.
First, here's the definition for the create_user_3 method
Management.UserManagement.create_user_3 (
Management.UserManagement.UserInfo3 users
)
struct Management.UserManagement.UserInfo3 {
UserID user;
PasswordInfo password;
UserPermission [] permissions;
String login_shell;
}
struct Management.UserManagement.UserID {
String name;
String full_name;
}
struct Management.UserManagement.PasswordInfo {
boolean is_encrypted;
String password;
}
struct Management.UserManagement.UserPermission {
UserRole role;
String partition;
}
In looking at your code, the following pieces don't match with the input to the method.
1. UserInfo3.password is a struct. You are passing in just the password as a string.
2. UserInfo3.permissions is missing. You are calling it "permission" and you aren't passing in an array. You'll need to surround the "$UserPermissions" variable with brackets "[$UserPermissions]".
I haven't had time to test this out, but I do think that's it. Let me know if you need further assistance.
-Joe
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