Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
  • Sign in / Register
  • Samba Samba
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Merge requests 138
    • Merge requests 138
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • External wiki
    • External wiki
  • Activity
  • Graph
  • Jobs
  • Commits
Collapse sidebar

Scheduled maintenance on the database layer will take place on 2022-07-02. We expect GitLab.com to be unavailable for up to 2 hours starting from 06:00 UTC. Kindly follow our status page for updates and read more in our blog post.

  • The Samba Team
  • SambaSamba
  • Merge requests
  • !2437

Allow Samba not to store the NT Hash

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed Andrew Bartlett requested to merge samba-team/devel/samba:abartlet/no-store-ntlm-hash into master Mar 14, 2022
  • Overview 128
  • Commits 9
  • Pipelines 38
  • Changes 26

Allows Samba to be deployed at sites that will not, eg due to FIPS and similar security requirements, store an unsalted hash.

  • based on 'ntlm auth = disabled' consistent with behaviour of lanman auth = no historically.

  • Builds on !2410 (closed) which was harder than it should have been, and took most of the time :-(

  • No password history, other than the previous password and previous previous, is stored, as that data structure uses the NT hash itself, so unsafe.

  • Tests for password change and similar tests run in not ad_dc_no_ntlm environment to test.

  • Plaintext password from a simple bind handled by comparison to the AES256 key.

Checklist

  • Commits have Signed-off-by: with name/author being identical to the commit author
  • (optional) This MR is just one part towards a larger feature.
  • (optional, if backport required) Bugzilla bug filed and BUG: tag added
  • Test suite updated with functionality tests
  • Test suite updated with negative tests
  • Documentation updated
  • CI timeout is 3h or higher (see Settings/CICD/General pipelines/ Timeout)

Reviewer's checklist:

  • There is a test suite reasonably covering new functionality or modifications
  • Function naming, parameters, return values, types, etc., are consistent and according to README.Coding.md
  • This feature/change has adequate documentation added
  • No obvious mistakes in the code
Edited May 02, 2022 by Andrew Bartlett
Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: abartlet/no-store-ntlm-hash