CMD_API: catch-all, pop passwords, frontpage, protected dirs, ssl certs

Version 1.244

Feature
Finished

Catch-all email account API: CMD_API_EMAIL_CATCH_ALL pass via GET or POST: domain=domain.com you get: value=:fail:|:blackhole:|fowareder value (username or email address). CMD_API_EMAIL_CATCH_ALL pass via GET or POST domain=domain.com catch=:fail:|:blackhole:|address value=email value, if you chose address for 'catch' update=Update Change email password: CMD_API_POP GET or POST domain=domain.com action=modify user=bob passwd=newpass passwd2=newpass quota=# (0 is unlimited) Frontpage Extensions CMD_API_FRONTPAGE domain=domain.com returns: status=enabled|disabled user=username set frontpage extensions CMD_API_FRONTPAGE method GET or POST domain=domain.com action=onoff (yes, "onoff", one word) passwd=system password for this user. Must match their actual password. ON=Enable *or* OFF=Disable Password Protected Directories CMD_API_PROTECTED_DIRECTORIES method: GET domain=domain.com returns path list of protected directories. CMD_API_FILE_MANAGER View a protected directory's settings. method: GET action=protect path=/domains/domain.com/public_html/directory returns: enabled=yes|no name=protected name (eg, 'members area') 1=user1 2=user2 etc... returns the user list too. CMD_API_FILE_MANAGER Set a protected directories settings and add users. method: POST action=protect path=/domain/etc.. enabled=yes (don't pass 'enabled' at all for "no") name=members area user=username (you can leave this blank if you only want to set the enabled or name). passwd=pass passwd2=pass CMD_API_FILE_MANAGER Delete a protected directory user method: GET or POST action=delete path=/domain/etc.. select0=bob (select1=fred) etc.. You can delete several users at once. SSL Certificates CMD_API_SSL domain=domain.com returns: ssl_on=yes|no (if the domain has ssl enabled.) server=yes|no (if the cert being used is the server cert, or a pasted one) certificate=the whole cert, if it exists for the user key=the whole key, if it exists for the user. CMD_API_SSL method: POST domain=domain.com action=save type=server|create|paste type=create: also include: request=yes|no (to make a request, else self signed cert) country, province, city, company, division, name=www.domain.com, email=bob@domain.com, keysize=2048 if request=yes, it returns: request=the certificate request. type=paste: also include: certificate=cert and key. add n between them, and at the end. CMD_SSL view the cacert and setting for it. domain=domain.com view=cacert returns: enabled=yes|no cacert=the ca root cert, should it exist yet. CMD_SSL set the cacert and settings. GET or POST domain=domain.com action=save type=cacert active=yes (dont' pass 'active' at all, for 'no') cacert=the ca certificate Site Redirection already exists: http://www.directadmin.com/features.php?id=382

Interested to try DirectAdmin? Get a 30-day Free Trial!