Uploaded image for project: 'C++ Driver'
  1. C++ Driver
  2. CXX-121

Kerberos authentication does not work on Windows 8.1

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • legacy-0.0-26compat-2.6.0-rc1
    • None
    • Windows 8.1

    Description

      Attempting to do Kerberos authentication using the C++ client on Windows 8.1 fails at the AcquireCredentialsHandle stage with error "No credentials are available in the security package".

      The issue is not reproducible on Windows Server 2012 R2.

      The attached sample client app (which will be checked in eventually in the C++ client repo) reproduces the problem.

      To build this program on windows, use the following commands from VC++ commands shell (may need to be tweaked for the corresponding environment):

      scons --sharedclient --dynamic-windows --release --full  --prefix=C:\amd64ent --use-system-boost --cpppath=C:\boost_1_55_0 --extrapath=C:\openssl,C:\sasl,C:\snmp --libpath=C:\boost_1_55_0\lib64-msvc-[10|11|12].0 --variant-dir=m --use-sasl-client install-mongoclient --64 -j 4 --mute
       
      set PATH=%PATH%;C:\x86std\lib;C:\amd64std\lib;C:\x86ent\lib;C:\amd64ent\lib;c:\mongodb
       
      cl.exe /nologo /MD /EHsc -Ic:\mongo\src -Ic:\boost_1_55_0 -Ic:\amd64std simple_client_demo_auth.cpp /link /LIBPATH:c:\boost_1_55_0\lib32-msvc-10.0 c:\amd64std\lib\mongoclient.lib

      Attachments

        Activity

          People

            Unassigned Unassigned
            kaloian.manassiev@mongodb.com Kaloian Manassiev
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: