Creating a Login Key for DNS control only which command do I need?

Tristan

Verified User
Joined
Feb 11, 2005
Messages
588
Location
The Netherlands
I want to create a Login Key for someone just to be able to control the DNS. If I just select these two:

Code:
CMD_DNS_CONTROL
CMD_DNS_MX

I'm able to login with that Login Key but the page keeps refreshing over and over, this user has the standard layout selected. Am I missing something, should I give access to more commands?
 
Hi there Johannes,

It's more of an omission in the documentation for this Login Key feature I guess. DirectAdmin only refers to https://www.directadmin.com/api.html but that doesn't mention which commands are minimally required to have the DirectAdmin user interface working correctly. Please check /var/log/directadmin/security.log on your server though, this might give you a hint on what's still missing. The conclusion for me was that I didn't enable CMD_WIDGET which is apparently necessary to render the user interface.
 
check /var/log/directadmin/security.log
enable CMD_WIDGET which is apparently necessary
Hi Tristan, thanks, that helped me a lot! Yes it was CMD_WIDGET missing, but also CMD_PLUGINS according to the logs and my testing. Now I can login with the keys, but the next problem is, due to the needed CMD_PLUGINS it shows also the plugins which I dont want them to have access to , aka Softaculous, Sitepad, JetPack and Template Selector. And when I deactivate CMD_PLUGINS, I have again the always refreshing loginpage. Seems kinda bug to me. Can anybode confirm this?
 
Hi Tristan, thanks, that helped me a lot! Yes it was CMD_WIDGET missing, but also CMD_PLUGINS according to the logs and my testing. Now I can login with the keys, but the next problem is, due to the needed CMD_PLUGINS it shows also the plugins which I dont want them to have access to , aka Softaculous, Sitepad, JetPack and Template Selector. And when I deactivate CMD_PLUGINS, I have again the always refreshing loginpage. Seems kinda bug to me. Can anybode confirm this?

I have a similar problem. I would like to give access only to PMA, but to successful log in, access to CMD _PLUGINS and CMD_WIDGET must be enabled. For me it's also some kind of bug or limitation of login keys functionality.
 
Back
Top