Skip to content

Commit

Permalink
Mhm
Browse files Browse the repository at this point in the history
  • Loading branch information
nichtsfrei committed Oct 24, 2024
1 parent befcfa8 commit 7af498d
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions rust/examples/gss.nasl
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
display('do more hate-driven development');
result = krb5_gss_init();
if (krb5_is_failure(result)) {
display('oh nooo, unable to init gss context');
exit(42);
}
display("Got context, the easiest part is done.");
display("Keep in mind that gss_init does override previous context.");
#display('do more hate-driven-development');
#result = krb5_gss_init();
#if (krb5_is_failure(result)) {
# display('oh nooo, unable to init gss context');
# exit(42);
#}
#display("Got context, the easiest part is done.");
#display("Keep in mind that gss_init does override previous context.");
#result = krb5_gss_prepare_context(realm: 'KBKERB.LOCAL', host: 'WIN-MPDRO9RF6Q8.gbkerb.local', service: 'cifs', user: 'gbadmin', password: '*********');
result = krb5_gss_prepare_context();
if (krb5_is_failure()) {
if (krb5_is_failure(result)) {
display('oh nooo, unable to authenticate, did you check vpn? Yes, oh.');
exit(42);
}
display("We got authenticated.... keep in mint that the first update context must be without data ...");
result = krb5_gss_update_context();
if (krb5_is_failure()) {
if (krb5_is_failure(result)) {
display('oh nooo, unable to initially update context, did you check vpn? Yes, oh.');
exit(42);
}
Expand All @@ -29,3 +29,4 @@ if (out) {
display('no data?!');
}

# TODO: provide clean up function

0 comments on commit 7af498d

Please sign in to comment.