Opened 12 years ago
Closed 12 years ago
#43 closed task (fixed)
Clean up RPC setup
Reported by: | Kris Deugau | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | 1.2 |
Version: | Keywords: | ||
Cc: |
Description
RPC support was stubbed out and partially filled in as of r123, but has only had a handful of cosmetic fixes and labelling tweaks. It needs to be updated to match the updates to the core library, and thought given to exposing more subs.
Change History (17)
comment:1 by , 12 years ago
comment:2 by , 12 years ago
(In [401]) /trunk
Begin updating dns-rpc.cgi. See #43.
Add initRPC() in DNSDB.pm. This sets up the userdata needed
for logging. Prevent the pseudousers added in initRPC() from
being displayed in the user management UI. Sooner or later
this will need to be cleaned up so stale users can be deleted.
Closes #33.
Bring a bit more consistency to error messages, and eliminate
references to odd depths of the code, by adding "\n" to the end
of a few lurking die strings in DNSDB.pm, and all method-sub ones
in dns-rpc.cgi.
Clean up a handful of gross syntax and scope errors from copy-paste
work apparently never checked.
Call new loadConfig() and initRPC() on startup. Add a utility sub
to call from the method subs to check the RPC caller+IP pair against
the new config option.
Update call for delDomain to delZone. Update call to getDomRecs()
to match normalized hash-argument form from r397.
comment:3 by , 12 years ago
(In [405]) /trunk
Clean up some more annoyances in dns-rpc.cgi. See #43.
- Update active and stub list of subs to match current DNSDB.pm
- Factor out common opening errorcheck actions into a separate internal sub
- Refresh getRecCount internals since it should be almost identical to getDomRecs
- Fix a couple of trivial copypasted comment typos
Add support to handle adding and deleting reverse zones. See #26.
- Complete conversion of delDomain to delZone
- Add addRDNS
comment:4 by , 12 years ago
comment:5 by , 12 years ago
comment:6 by , 12 years ago
comment:7 by , 12 years ago
comment:9 by , 12 years ago
comment:10 by , 12 years ago
comment:11 by , 12 years ago
comment:12 by , 12 years ago
(In [452]) /trunk
Continue tweaking RPC for actual usage. See #43.
- Add and expose getRevPattern() to retrieve the narrowest template pattern applicable to a passed CIDR (netblock or IP)
- Add and expose getZonesByCIDR() to retrieve a list of revzones and zone IDs for records within a passed CIDR block. Note the block may be larger than the zones, so we may return more than one revzone.
comment:13 by , 12 years ago
comment:14 by , 12 years ago
comment:15 by , 12 years ago
(In [459]) /trunk
Flesh out last known subcases of record update/delete required
for IPDB RPC service. See #43.
- Add new sub delByCIDR(). Requires new DNSDB::downconvert utility sub.
- Use a new variable instead of overwriting $args{cidr} in addOrUpdateRevRec()
- Catch and another special case - adding a /32 ("netblock" or static IP) at the very beginning of a larger block in addOrUpdateRevRec()
comment:16 by , 12 years ago
(In [460]) /trunk
Edge case bugfixes and fleshing-out for deleting records by CIDR. See #43
- use AAAA+PTR template anyway; just continue to not expand it.
- make sure to skip non-PTR-ish records when we're working with a set
- fix the simple-but-wrong logic for CIDR requests larger than the defined reverse zones
comment:17 by , 12 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Closing this ticket for RPC as the RPC API is "good enough" to support most RPC uses. Requirements for the IPDB (see IPDB DNS integration ticket) have been met, and all basic add/update/delete operations on zones (forward and reverse), records, groups and users are supported.
(In [400]) /trunk