Cmd_api_db_user ?

mrjcleaver

Verified User
Joined
Sep 22, 2006
Messages
5
Hi,
I want to automate the creation of database users. http://www.directadmin.com/features.php?id=544 suggests that this should work:

my $url = 'http://$adminname:$adminpasswd@localhost:2222/CMD_API_DB_USER';
my $response = $browser->post( $url,
[
action => 'create',
name => "$databasename",
user => "$databasename",
passwd => "$dbpasswd",
passwd2 =>"$dbpasswd",
]
);

Am I wrong to think that I should use $adminname to log in with? Or should I use the username that should own the database?

The documentation does not specify.

Thanks, M.
 
While I know it is rude to bounce a request, what assurances have I that my question will get answered?
 
I'm getting back a form with "/CMD_LOGIN"

So do you mean I have to two commands, first to log in and then to create the database?

Thanks,
M.
 
Back
Top