惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

The GitHub Blog
The GitHub Blog
IT之家
IT之家
B
Blog RSS Feed
罗磊的独立博客
GbyAI
GbyAI
博客园 - Franky
Y
Y Combinator Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Google DeepMind News
Google DeepMind News
博客园 - 聂微东
N
Netflix TechBlog - Medium
博客园 - 三生石上(FineUI控件)
人人都是产品经理
人人都是产品经理
U
Unit 42
博客园 - 叶小钗
Jina AI
Jina AI
MyScale Blog
MyScale Blog
雷峰网
雷峰网
B
Blog
Hugging Face - Blog
Hugging Face - Blog
Blog — PlanetScale
Blog — PlanetScale
Recent Announcements
Recent Announcements
腾讯CDC
酷 壳 – CoolShell
酷 壳 – CoolShell

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
Disabling NTLM by Default
ASPBR Tech · 2026-05-02 · via DEV Community

ASPBR Tech

title: Disabling NTLM by Default
description: A step-by-step guide on disabling NTLM for better security.
tags: linux,devops,cloud,aws

Introduction to NTLM

NTLM (NT LAN Manager) is a suite of security protocols used for authentication and session security in Microsoft environments. While it provides a certain level of security, NTLM has been largely superseded by more modern and secure authentication protocols like Kerberos. Disabling NTLM can significantly improve the security posture of your network by reducing the attack surface.

Problem Context

NTLM is an older protocol with known vulnerabilities, making it a target for attackers. By default, many systems still have NTLM enabled, which can lead to security risks if not properly managed. Disabling NTLM by default is a recommended best practice to enhance security and comply with modern security standards.

Step-by-Step Guide to Disabling NTLM

Disabling NTLM involves configuring both client and server settings. Here\'s how you can do it:

For Windows Clients

On Windows clients, you can disable NTLM through the Local Group Policy Editor or via registry edits. To do this through the Group Policy Editor:

  1. Open the Local Group Policy Editor (gpedit.msc).
  2. Navigate to Computer Configuration > Windows Settings > Security Settings > Local Policies > Security Options.
  3. Find the policy named Network security: Restrict NTLM: Outgoing NTLM traffic to remote servers.
  4. Enable this policy and set the option to Deny All.

Alternatively, you can achieve this through a registry edit:

reg add \"HKLM\\SYSTEM\\CurrentControlSet\\Control\\Lsa\" /v RestrictSendingNTLMTraffic /t REG_DWORD /d 2 /f

Enter fullscreen mode Exit fullscreen mode

For Linux Clients

On Linux systems, especially those integrated with Active Directory, you might need to configure your authentication settings to prefer Kerberos over NTLM. This can often be done by adjusting the sssd configuration or pam settings.

For example, to configure sssd to use Kerberos, you might add the following lines to your sssd.conf file:

[sssd]
config_file_version = 2
services = nss, pam
domains = yourdomain.com

[domain/yourdomain.com]
id_provider = ad
auth_provider = ad
access_provider = ad
chpass_provider = ad
ldap_id_mapping = False
use_fully_qualified_names = True
fallback_homedir = /home/%u
default_shell = /bin/bash
ldap_sasl_mech = GSSAPI
ldap_sasl_authid = host/yourhost@YOURDOMAIN.COM

Enter fullscreen mode Exit fullscreen mode

Practical Tips

  • Monitor Your Environment: Before making changes, monitor your environment to understand which applications or services rely on NTLM. This will help you assess the impact of disabling NTLM.
  • Test Thoroughly: After configuring the changes, thoroughly test all affected systems and applications to ensure no disruptions occur.
  • Maintain Documentation: Keep detailed documentation of the changes made and the reasoning behind them. This is crucial for future audits and troubleshooting.

Conclusion

Disabling NTLM by default is a critical step in enhancing the security of your network. By following the steps outlined above and considering the practical tips provided, you can effectively reduce the risk associated with using an outdated authentication protocol. Remember, security is an ongoing process, and staying up to date with the latest best practices is key to protecting your environment.

Originally published on AspbrTech