System Account Logon Failures every 30 seconds
I used Microsoft Network Monitor to find the traffic causing this and found traffic between this SQL server and our AD2 server. The SQL server was sending a Kerberos AS_REQ for the computer account of the SQL Instance Name. The AD server would respond with a KDC_ERR_C_PRINCIPAL_UNKNOWN. I looked at the security logs on the AD2 server and discovered failure audits like the following:
A Kerberos authentication ticket (TGT) was requested.
Account Information:
Account Name: X509N:<S>CN=SQLInstanceName
Supplied Realm Name: domain.local
User ID: NULL SID
Service Information:
Service Name: krbtgt/domain.local
Service ID: NULL SID
Which seems to be some certificate request. I then used SysInternals Process Monitor and found traffic from a custom service with the same timestamps. It was querying all of the certificate stores and not finding anything.
Disabling this service would stop the security events.
Related videos on Youtube
Stich19
Updated on September 18, 2022Comments
-
Stich19 over 1 year
I have looked through some of the other questions asking about a similar issue, but I am trying to call the double 'thirdPrice' from calculationMethod() to main(). The purpose of this program is to request data in main(), pass some of the info to calculationMethod() and then return that data back to main() for final output. I am using DrJava, here is my code so far.
import java.util.Scanner; //Imports input device public class CraftPricing { public static void main(String[] args) { Scanner inputDevice = new Scanner(System.in); //Sets up input device String productName; //Used for naming product double costMaterials, hoursWorked; //Gives variables decimal format System.out.println("Enter the name of the product "); //Enter product name productName = inputDevice.nextLine(); //Passes variable for calculation System.out.println("Enter the cost of materials prior to discount "); //Enter cost of materials costMaterials = inputDevice.nextDouble(); //Passes variable for calculation System.out.println("Enter the number of hours worked "); //Enter hours worked hoursWorked = inputDevice.nextDouble(); //Passes variable for calculation System.out.printf("The cost of " + productName + " is %.2f\n" , thirdPrice); //Output product name and cost } public static void calculationMethod() //Method used to calcualte price { double itemDiscount = 0.75; //Gives decimal format to variable double payRate = 14.00; //Gives decimal format to variable double shipHandle = 6.00; //Gives decimal format to variable double firstPrice = payRate * 7; //Calculates fisr portion of equation double secondPrice = 7 + firstPrice; //Calculates second portion of equation final double thirdPrice = itemDiscount * secondPrice + shipHandle; //Calculates final portion of equation return thirdPrice; //Returns double to main() for output } }
The errors I receive when trying to compile are as follows:
2 errors found: File: C:\Users\unkno\DrJava\Java\CraftPricing.java [line: 18] Error: cannot find symbol symbol: variable thirdPrice location: class CraftPricing File: C:\Users\unkno\DrJava\Java\CraftPricing.java [line: 28] Error: incompatible types: unexpected return value
-
OneCricketeer almost 7 yearsYou can't return from a void method
-
Ousmane D. almost 7 years
thirdPrice
is not defined and you're attempting to use it within themain
method. -
Ken White almost 7 yearsDo you understand what
void
means, or are you just blindly typing whatever sounds familiar into your code without understanding what it means and does? -
Stich19 almost 7 yearsStill very new to coding period. Went back to my textbook and read about 'void'. Now I see why it didn't do anything when I had it in there.
-
-
Stich19 almost 7 yearsThank you so much for the help! I have been flipping through my textbook and looking at other resources with no head way at all.
-
OneCricketeer almost 7 yearsNo problem. You may show your thanks by accepting the answer using the checkmark next to the post
-
Stich19 almost 7 yearsWell now I have a new issue, I forgot that I had changed some variables to exact numbers in order to make some errors go away.
-
OneCricketeer almost 7 yearsFeel free to create a new post if you're unable to fix them. Don't ask new questions in the comments unless it's about this answer