Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. NTLM AUTH for SMTP server

NTLM AUTH for SMTP server

Scheduled Pinned Locked Moved C / C++ / MFC
questioncsssysadmincryptographyhelp
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Aabid
    wrote on last edited by
    #1

    Good day Friends! Here comes a new challenge! Need to discuss whether it is right or what? My problem is that the challenge sent by the server should be 8 bytes as i read from the documentation. As i decode the hash send by the server and Extract Challenge from it, it gives me only 7 characters including null character. should i generate the response by using that 7 byte challenge or somewhere i am wrong. is the challenge must be 8 bytes? In short my question is:: can a challenge be less than 8 bytes?

    M 1 Reply Last reply
    0
    • A Aabid

      Good day Friends! Here comes a new challenge! Need to discuss whether it is right or what? My problem is that the challenge sent by the server should be 8 bytes as i read from the documentation. As i decode the hash send by the server and Extract Challenge from it, it gives me only 7 characters including null character. should i generate the response by using that 7 byte challenge or somewhere i am wrong. is the challenge must be 8 bytes? In short my question is:: can a challenge be less than 8 bytes?

      M Offline
      M Offline
      Moak
      wrote on last edited by
      #2

      Aabid wrote:

      My problem is that the challenge sent by the server should be 8 bytes as i read from the documentation. As i decode the hash send by the server and Extract Challenge from it, it gives me only 7 characters including null character.

      The documentation says that authentication is base64 encoded data. It looks like this:

      AUTH NTLM <base64encoded type 1 message> //client
      334 <base64encoded type 2 challenge message> //server... the challenge itself is an 8-byte block of random data
      <base64encoded type 3 response> //client
      235 NTLM authentication successful //server

      For details see The NTLM Authentication Protocol[^], at the end is another example for SMTP. /M

      Webchat in Europe :java: Now with 26% more Twitter

      modified on Wednesday, March 24, 2010 10:39 AM

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups