-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Citrix Netscaler OS Plugin #357
Conversation
Codecov Report
@@ Coverage Diff @@
## main #357 +/- ##
==========================================
+ Coverage 70.40% 70.55% +0.14%
==========================================
Files 233 234 +1
Lines 17944 18038 +94
==========================================
+ Hits 12633 12726 +93
- Misses 5311 5312 +1
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 1 file with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
nstmp_users.add(entry.name) | ||
for username in self._config_usernames: | ||
if username == "root" and self.target.fs.exists("/root"): | ||
yield UnixUserRecord(name="root", home="/root") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would you not get a double entry for root
in the current way?
yield UnixUserRecord(name="root", home="/root") | |
yield UnixUserRecord(name="root", home="/root") | |
continue |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you would like both, add a comment to why you do it it like this ;)
Co-authored-by: Miauwkeru <Miauwkeru@users.noreply.github.com>
Fix a typo in my suggestion
edfa41d
to
8ed1dab
Compare
This pull requests adds support for Citrix Netscaler images. Depending on which filesystems are available, it maps the filesystems to:
/
(the in-memory filesystem loaded by the init binary, whenever this disk is available)/var
(Hard disk storage of Citrix Netscalers)/flash
(The boot disk, which is mounted to /flash when operating on a live Citrix Netscaler)The plugin parses the configuration files (and, where needed, their backups) to retrieve information about ips, usernames, timezone, version and hostname.
When testing other plugins (such as
os.unix.history.commandhistory
andapps.webserver.apache
) I ran into a few peculiarities once the Citrix OS plugin correctly maps directories. For Citrix Netscalers, thecommandhistory
plugin incorrectly parses the bash history of users, and theapache
plugin doesn't process anyhttpaccess
orhttperror
logfiles, which can be useful for investigation. It's probably best to address those fixes in separate PR's.