Skip to content
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

Remove use of oncefile #4

Open
jwennerberg opened this issue Aug 29, 2013 · 2 comments
Open

Remove use of oncefile #4

jwennerberg opened this issue Aug 29, 2013 · 2 comments

Comments

@jwennerberg
Copy link
Contributor

Verify if the server is joined to the correct domain instead of relying on a "oncefile"

@ghoneycutt
Copy link
Contributor

How can this be verified?

@propyless
Copy link

you can use the fact vas_domain as it uses the command /opt/quest/bin/vastool info domain to find out which the server is currently connected to. but this can be "spoofed" as it reads the config file to determine which domain its joined too. if you modify the config file to point towards another domain the command will specify the new domain entered even if the server is not joined towards that domain.

Another way could be to check the output of vastool status but im guessing thats not very optimal either as its vas and could spew out a ton of useless data just for the sake of it and im not even sure the exit codes are correct.

so maybe the oncefile is not such a bad solution anyway

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants