title: CmisUnauthorizedException - connecting to sharepoint
body: <p>I am using CMIS to connect with SharePoint. I am getting Unauthorized exception while creating session  in SharePoint, So I couldn't upload the document in SharePoint. I am using NTML authentication to connect with SharePoint, but it's not authenticating the user, I am using default NTML implantation from CMIS  <strong>CmisBindingFactory.NTLM_AUTHENTICATION_PROVIDER</strong> _ is it supporting NTLM authentication? if not how to implement NTML authentication in CMIS?</p>
  <p>Please find the below code which I have tried.</p>
  <pre><code>SessionFactory sessionFactory = SessionFactoryImpl.newInstance();
      Map&lt;String, String&gt; parameter = new HashMap&lt;&gt;();
      parameter.put(SessionParameter.ATOMPUB_URL,
          url);
      
      parameter.put(SessionParameter.BINDING_TYPE, BindingType.ATOMPUB.value());
      // activate the OpenCMIS NTLM authentication provider.
      parameter.put(SessionParameter.AUTHENTICATION_PROVIDER_CLASS,
          CmisBindingFactory.NTLM_AUTHENTICATION_PROVIDER);
      // Session locale.
      parameter.put(SessionParameter.LOCALE_ISO3166_COUNTRY, &quot;&quot;);
      parameter.put(SessionParameter.LOCALE_ISO639_LANGUAGE, &quot;en&quot;);
      parameter.put(SessionParameter.LOCALE_VARIANT, &quot;US&quot;);
      parameter.put(SessionParameter.USER, userName);
      parameter.put(SessionParameter.PASSWORD, password);
  </code></pre>
  <p>Session session = sessionFactory.createSession();</p>