Level Executing Probelm On API

phpempire

Verified User
Joined
Jun 22, 2009
Messages
19
hello
i work over 5 years with da and now manage hundered of da servers.
now i writing central manage system with PHP and directadmin Api
i have a just admin pass for a server but want use User Level Command example domain pointer and dont like change user password with api then login with user level.
anybody not have good idea for can use level user with admin password without change user password ?
Please help me
this request realy important for us :)
 
Last edited:
Hello,

If you have the admin password, but you want to make a User change under some other User (let's call him User "bob"), then what you'd do, is use the "login-as" feature with the API.

Do everything normally, execept, instead of using user bob and bob's password, you'd use:
Code:
$username = "admin|bob";
$password = "[b]adminpass[/b]";
for the API, which will make the API be logged in as bob, using the admin password.

No need for password changes.

Check the "Login-As" section in the API doc for more info:
http://www.directadmin.com/api.html

John
 
Hello John
Thanks alot my problem has been fixed with Perfect solution :x
I LOVE DA :x
 
Back
Top