]> git.ipfire.org Git - thirdparty/squid.git/commit - src/auth/ntlm/SMB_LM/ntlm_smb_lm_auth.cc
basic_msnt_auth helper and NTLM/SMBLIB/RFCNB library polish.
authorAmos Jeffries <amosjeffries@squid-cache.org>
Sat, 16 Oct 2010 23:19:46 +0000 (17:19 -0600)
committerAmos Jeffries <amosjeffries@squid-cache.org>
Sat, 16 Oct 2010 23:19:46 +0000 (17:19 -0600)
commit7c16470cc2d053ea2c540459843227dea08e8b40
tree3916f5b3332a0aaad11ead5e2e1b02103d31e663
parentacf69d74918a4d3570274a4ffd8181445f334eb6
basic_msnt_auth helper and NTLM/SMBLIB/RFCNB library polish.

Samba smblib/rfcnb code:
 * Import the latest copy which I could find a download link to.
   This source is from 1997 so I suspect there is something even newer
   we should be using. Time was tight is the only excuse for using
   these sources. Our originals were from 1995 and 1996 depending on the
   helper using it, with a mix of patches.

 * These two directories are in ours sources as lib/smblib and lib/rfcnb.
   Each has its own convenience library. Kept separate with original
   filenames to simplify future upgrades or removal.

 * Samba sources have been diffed and compared function by function
   against the copies previously in our sources. Functionality extensions
   we use have been grafted back on top of the new(er) Samba sources.
  - this was mostly around passing extra Unicode, DC hints and pre-crypted
    passwords to the login checks.
  - some files from libntlmauth have yet to be compared in fine detail,
    that will be completed today before merge.
  - some basic API function and struct definitions had to be moved to the
    API headers to prevent needing to include the *-priv.h private
    definitions externally to the library.

 * the Samba API headers have been wrapped with #ifndef safety wrappers

 * compile errors and include changes required to compile have been
   made (code stays C)

 * duplicate code in helpers/basic_auth/MSNT/* and libntlmauth/* is
   removed.

 * abuse of the smblib-priv.h and rfcnb-priv.h headers and all local
   re-definitions has been erased from our code. Replaced by includes
   of the library API headers: rfcnb/rfcnb.h  smblib/smblib.h

libntlmauth:
 * smblib/rfcnb bits erased
 * moved to lib/ntlmauth in its much reduced form
 * built as a convenience library instead of full library
87 files changed:
Makefile.am
configure.in
doc/release-notes/release-3.2.sgml
helpers/basic_auth/MSNT/Makefile.am
helpers/basic_auth/MSNT/allowusers.cc [moved from helpers/basic_auth/MSNT/allowusers.c with 100% similarity]
helpers/basic_auth/MSNT/confload.cc [moved from helpers/basic_auth/MSNT/confload.c with 100% similarity]
helpers/basic_auth/MSNT/denyusers.cc [moved from helpers/basic_auth/MSNT/denyusers.c with 100% similarity]
helpers/basic_auth/MSNT/md4.h [deleted file]
helpers/basic_auth/MSNT/msntauth.cc [moved from helpers/basic_auth/MSNT/msntauth.c with 100% similarity]
helpers/basic_auth/MSNT/rfcnb-common.h [deleted file]
helpers/basic_auth/MSNT/rfcnb-error.h [deleted file]
helpers/basic_auth/MSNT/rfcnb-io.c [deleted file]
helpers/basic_auth/MSNT/rfcnb-io.h [deleted file]
helpers/basic_auth/MSNT/rfcnb-priv.h [deleted file]
helpers/basic_auth/MSNT/rfcnb-util.h [deleted file]
helpers/basic_auth/MSNT/rfcnb.h [deleted file]
helpers/basic_auth/MSNT/session.c [deleted file]
helpers/basic_auth/MSNT/smblib-common.h [deleted file]
helpers/basic_auth/MSNT/smblib-priv.h [deleted file]
helpers/basic_auth/MSNT/smblib-util.c [deleted file]
helpers/basic_auth/MSNT/smblib.c [deleted file]
helpers/basic_auth/MSNT/std-defines.h [deleted file]
helpers/basic_auth/MSNT/std-includes.h [deleted file]
helpers/basic_auth/MSNT/usersfile.cc [moved from helpers/basic_auth/MSNT/usersfile.c with 93% similarity]
helpers/basic_auth/MSNT/valid.cc [moved from helpers/basic_auth/MSNT/valid.c with 86% similarity]
helpers/ntlm_auth/fake/Makefile.am
helpers/ntlm_auth/fake/ntlm_fake_auth.cc
helpers/ntlm_auth/smb_lm/Makefile.am
helpers/ntlm_auth/smb_lm/ntlm_smb_lm_auth.cc
lib/Makefile.am
lib/ntlmauth/Makefile.am [new file with mode: 0644]
lib/ntlmauth/ntlmauth.cc [moved from libntlmauth/ntlmauth.cc with 99% similarity]
lib/ntlmauth/ntlmauth.h [moved from libntlmauth/ntlmauth.h with 100% similarity]
lib/ntlmauth/support_bits.cci [moved from libntlmauth/support_bits.cci with 100% similarity]
lib/rfcnb/CHANGELOG [new file with mode: 0644]
lib/rfcnb/Makefile.am [new file with mode: 0644]
lib/rfcnb/ReadMe.1st [new file with mode: 0644]
lib/rfcnb/byteorder.h [new file with mode: 0644]
lib/rfcnb/notes [new file with mode: 0644]
lib/rfcnb/rfcnb-common.h [new file with mode: 0644]
lib/rfcnb/rfcnb-error.h [new file with mode: 0644]
lib/rfcnb/rfcnb-io.c [new file with mode: 0644]
lib/rfcnb/rfcnb-io.h [new file with mode: 0644]
lib/rfcnb/rfcnb-priv.h [new file with mode: 0644]
lib/rfcnb/rfcnb-util.c [moved from helpers/basic_auth/MSNT/rfcnb-util.c with 55% similarity]
lib/rfcnb/rfcnb-util.h [new file with mode: 0644]
lib/rfcnb/rfcnb.h [new file with mode: 0644]
lib/rfcnb/session.c [new file with mode: 0644]
lib/rfcnb/std-includes.h [new file with mode: 0644]
lib/smblib/Changes [new file with mode: 0644]
lib/smblib/Makefile.am [new file with mode: 0644]
lib/smblib/ReadMe.1st [new file with mode: 0644]
lib/smblib/bad-chain.c [new file with mode: 0644]
lib/smblib/exper.c [new file with mode: 0644]
lib/smblib/file.c [new file with mode: 0644]
lib/smblib/find_password.c [new file with mode: 0644]
lib/smblib/md4.c [moved from helpers/basic_auth/MSNT/md4.c with 99% similarity]
lib/smblib/md4.h [moved from libntlmauth/smb-md4.h with 100% similarity]
lib/smblib/smb-errors.c [new file with mode: 0644]
lib/smblib/smbdes.c [moved from helpers/basic_auth/MSNT/smbdes.c with 100% similarity]
lib/smblib/smbdes.h [moved from helpers/basic_auth/MSNT/smbdes.h with 100% similarity]
lib/smblib/smbencrypt.c [moved from helpers/basic_auth/MSNT/smbencrypt.c with 93% similarity]
lib/smblib/smbencrypt.h [moved from helpers/basic_auth/MSNT/smbencrypt.h with 57% similarity]
lib/smblib/smblib-api.c [new file with mode: 0644]
lib/smblib/smblib-common.h [new file with mode: 0644]
lib/smblib/smblib-priv.h [new file with mode: 0644]
lib/smblib/smblib-util.c [moved from libntlmauth/smblib-util.c with 51% similarity]
lib/smblib/smblib.c [new file with mode: 0644]
lib/smblib/smblib.h [moved from helpers/basic_auth/MSNT/smblib.h with 58% similarity]
lib/smblib/std-defines.h [new file with mode: 0644]
lib/smblib/usage.txt [new file with mode: 0644]
libntlmauth/Makefile.am [deleted file]
libntlmauth/rfcnb-io.c [deleted file]
libntlmauth/rfcnb-priv.h [deleted file]
libntlmauth/rfcnb-session.c [deleted file]
libntlmauth/rfcnb-util.c [deleted file]
libntlmauth/rfcnb.h [deleted file]
libntlmauth/smb-byteorder.h [deleted file]
libntlmauth/smb-des.c [deleted file]
libntlmauth/smb-des.h [deleted file]
libntlmauth/smb-encrypt.c [deleted file]
libntlmauth/smb-md4.c [deleted file]
libntlmauth/smb.h [deleted file]
libntlmauth/smblib-priv.h [deleted file]
libntlmauth/smblib.c [deleted file]
libntlmauth/smblmauth.c [deleted file]
libntlmauth/smblmauth.h [deleted file]