New Technology Sector Research Reveals Rising Cyber Threats, Dark Web Attacks, and AI Risks. Learn More

New Technology Sector Research Reveals Rising Cyber Threats, Dark Web Attacks, and AI Risks. Learn More

Services
Managed Detection & Response

Eliminate active threats with 24/7 threat detection, investigation, and response.

Co-Managed SOC (SIEM)

Maximize your SIEM investment, stop alert fatigue, and enhance your team with hybrid security operations support.

Advisory & Diagnostics

Advance your cybersecurity program and get expert guidance where you need it most.

Penetration Testing

Test your physical locations and IT infrastructure to shore up weaknesses before exploitation.

Database Security

Prevent unauthorized access and exceed compliance requirements.

Email Security

Stop email threats others miss and secure your organization against the #1 ransomware attack vector.

Digital Forensics & Incident Response

Prepare for the inevitable with 24/7 global breach response in-region and available on-site.

Firewall & Technology Management

Mitigate risk of a cyberattack with 24/7 incident and health monitoring and the latest threat intelligence.

Solutions
BY TOPIC
Microsoft Security
Unlock the full power of Microsoft Security
Offensive Security
Solutions to maximize your security ROI
Rapidly Secure New Environments
Security for rapid response situations
Securing the Cloud
Safely navigate and stay protected
Securing the IoT Landscape
Test, monitor and secure network objects
Why Trustwave
About Us
Awards and Accolades
Trustwave SpiderLabs Team
Trustwave Fusion Security Operations Platform
Trustwave Security Colony
Partners
Microsoft Security
Unlock the full power of Microsoft Security
Trustwave PartnerOne Program
Join forces with Trustwave to protect against the most advance cybersecurity threats
Loading...
Loading...

INFO: How to check that you are getting SSO logins

Expand / Collapse


This article applies to:

  • NAC 5.x 

Question:

  • How to check that you are getting SSO login information
  • How to check that "successful logins" is enabled in the audit logs

Information:

You can use this command to check that you are seeing logins from the AD systems. The command does not show the complete output, but will help you see if you are getting any logins at all.

This will be done on the sensor or sensor/server.

When entering the command below, change the following to the correct values:
$HOST
$USERNAME
$PASSWORD - If you do not want to put in the password in the command remove the %$PASSWORD and the system will prompt you for the login.

# /usr/dist/sso/rpcclient -I $HOST -U $USERNAME%$PASSWORD -c "eventlog_poll -m STDOUT -i -q security" \\\\$HOST

Notes:

  • Command text may wrap to a new line, but the command is a single entry.
  • The \ characters before "$Host" must be escaped and a total of four \ is correct.


If this command fails, ensure that the password is not using any special characters like # $ ! ^ @

  • This command cannot be used with a password that contains special characters, so you must change the password to not use these characters in order for the command to work.

To exit the program press CTRL+C

You can use the Administrator account or a Domain Administrator to test whether the connection is working only.

For security reasons DO NOT USE AN ACCOUNT WITH DOMAIN ADMINISTRATOR PRIVILEGES.

Examples:

The result of the command should be similar to the following:

# /usr/dist/sso/rpcclient -I 10.6.1.230 -U administrator%N0tYourPa$$word -c "eventlog_poll -m STDOUT -i -q security" \\\\10.6.1.230
Login N: 2133128 T: 540 User: SUP-DC$ Host: (null) IP: 127.0.0.1
Login N: 2133131 T: 528 User: adavies Host: SUP-DC IP: 10.244.1.186

User: SUP-DC$ Host: (null) - is a Computer login
User: adavies Host: SUP-DC - is a user login in to SUP-DC$ 



The following error results from an incorrect password:

# /usr/dist/sso/rpcclient -I 10.6.1.230 -U administrator -c "eventlog_poll -m STDOUT -i -q security" \\\\10.6.1.230
Password:
failed session setup with NT_STATUS_LOGON_FAILURE Cannot connect to server. Error was NT_STATUS_LOGON_FAILURE 



The following error results if the user does not have access to read the security logs (The password is correct).

# /usr/dist/sso/rpcclient -I 10.6.1.230 -U luser -c "eventlog_poll -m STDOUT -i -q security" \\\\10.6.1.230
Password:
result was NT_STATUS_ACCESS_DENIED


To contact Trustwave about this article or to request support:


Rate this Article:
     

Add Your Comments


Comment submission is disabled for anonymous users.
Please send feedback to Trustwave Technical Support or the Webmaster
.