Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#33 closed enhancement (fixed)

Create "shadow users" for RPC calls

Reported by: Kris Deugau Owned by:
Priority: trivial Milestone:
Version: Keywords:
Cc:

Description

Mainly for logging consistency; for future log-viewing pleasures we need a way to sort and filter log entries based on username, user ID, user fullname, etc, etc. RPC users will likely not be native users, and so will (initially) lack a user ID.

To work around this, create a new class of user (not displayed in the user lists?) to give these remote users an entry in the local user table for log processing.

Change History (3)

comment:1 by Kris Deugau, 12 years ago

Resolution: fixed
Status: newclosed

(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:2 by Kris Deugau, 12 years ago

(In [404]) /trunk

Fix up initRPC() so it actually works the way it's supposed to. See #33.

comment:3 by Kris Deugau, 12 years ago

(In [406]) /trunk

Fix the fix for the fixed initRPC(). Usernames should be stored
with the RPC system string to make sure they don't collide with
"normal" users. Also check the right variable to see if we retrieved
an existing user record or not. See #33.
Fix groupID() to actually work; apparently it's not used in the
main UI or this would have been fixed a long time ago.

Note: See TracTickets for help on using tickets.