Page tree


This script allows you to set permissions and limits for DNS Manager clients.


Usage


client_prefs.sh <command> <login_name> <options>
Where <command> is one of:


Argument

Parameter

Description

--update or -u

<login_name>

updates client account

--info or -i

<login_name>

retrieves client information

and <options> are:

Argument

Parameter

Description

--add_remote_url or -ar

<true|false>

turns client add_remote_url option on/off (default: true)

--modify_remote_url or -mr

<true|false>

turns client modify_remote_url option on/off (default: true)

--add_dns_templates or - at

<true|false>

turns client add_dns_templates option on/off (default: true)

--clean_url_zones or - cz

<true|false>

turns client "Remove zones no longer present in update source" option on/off (default: true)

--ignore_other_urls or - io

<true|false>

turns client "Lock zones to an update source" option on/off (default: true)

--warn_update or - wu

<number>

"Warn if an update from a location fails more than <number> times"

--zone_refresh or -zr

<number>

Refresh time for DNS Zones

--retry_time or -rt

<number>

Retry time for DNS Zones

--expire_time or -et

<number>

Expire time for DNS Zones

--minimum_ttl or -mt

<number>

Minimum TTL for DNS Zones

--default_ttl or -dt

<number>

Default TTL for DNS Zones

--maximum_dns_zones or -zl

<number>

limit number of DNS Zones (u or unlimited for unlimited)

--maximum_update_url or -ul

<number>

limit number of update locations (u or unlimited for unlimited)

--expiration_date or -exp

<date>(yyyy-mm-dd)

expiration date (u or unlimited for unlimited)

--forward_zone_management or -fwd

<value>

value = 10 Manage forward DNS zones and records
value = 20 Manage forward DNS records only
value = 30 View forward DNS zones and records

--reverse_zone_management or -rev

<value>

value = 10 Manage reverse DNS zones and records
value = 20 Manage reverse DNS records only
value = 30 View reverse DNS zones and records
value = 40 Forbid access to reverse DNS zones

--e164_zone_management or -e164

<value>

value = 10 Manage E.164 DNS zones and records
value = 20 Manage E.164 DNS records only
value = 30 View E.164 DNS zones and records
value = 40 Forbid access to E164 DNS zones

Examples

In these examples, you are logged in as root and you call the scripts by their directory.

Set Permissions and Limits for a Client

/usr/local/dnsmanager/bin/client_prefs.sh -u newclient --add_remote_url true --modify_remote_url true --add_dns_templates true --clean_url_zones false --ignore_other_urls true --warn_update 5 --zone_refresh 10800 --retry_time 3600 --minimum_ttl 86400 --expire_time 604800 --default_ttl 86400 --maximum_dns_zones u --maximum_update_url 10 --expiration_date u --forward_zone_management 10 --reverse_zone_management 20 --e164_zone_management 30

Client Permissions and Limits

/usr/local/dnsmanager/bin/client_prefs.sh -i newclient
returns something like this:
Warn if an update from a location fails more than :[5]times
Allow to add/remove remote update locations:[true]
Allow to modify remote update locations:[true]
Allow to add/remove DNS templates:[true]
Remove zones no longer present in update source:[true](managed by administrator)
Lock zones to an update source:[true]
Refresh time:[10800]
Retry time:[3600]
Expire time:[604800]
Minimum TTL:[86400]
Default TTL:[86400]
Account expiration date:[Unlimited]
Maximum number of remote update locations:[10] Currently used: (0)
Maximum number of DNS zones:[Unlimited] Currently used: (0)
Forward DNS zones management:[10] (Manage forward DNS zones and records)
Reverse DNS zones management:[20] (Manage reverse DNS records only)
E.164 DNS zones management:[30] (View E.164 DNS zones and records)

#trackbackRdf ($trackbackUtils.getContentIdentifier($page) $page.title $trackbackUtils.getPingUrl($page))
  • No labels

Except where otherwise noted, content in this space is licensed under a Creative Commons Attribution 4.0 International.