<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:42:40 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>MongoDB Jira</title>
    <link>https://jira.mongodb.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.7.1</version>
        <build-number>970001</build-number>
        <build-date>13-04-2023</build-date>
    </build-info>


<item>
            <title>[CSHARP-2474] GSSAPI Authentication failing on LINUX RHEL7 with .NET Core 2.1</title>
                <link>https://jira.mongodb.org/browse/CSHARP-2474</link>
                <project id="10041" key="CSHARP">C# Driver</project>
                    <description>&lt;p&gt;I am currently running a c# .NET Core 2.1 application on OpenShift.&lt;/p&gt;

&lt;p&gt;My application connects to Mongo on the Linux container, when using plain authentication.&lt;/p&gt;

&lt;p&gt;When I try to GSSAPI with a keytab file I get the following error&lt;/p&gt;

&lt;p&gt;Error: One or more errors occurred. (A timeout occured after 30000ms selecting a server using CompositeServerSelector{ Selectors = MongoDB.Driver.MongoClient+AreSessionsSupportedServerSelector, LatencyLimitingServerSelector&lt;/p&gt;
{ AllowedLatencyRange = 00:00:00.0150000 }
&lt;p&gt; }. Client view of cluster state is { ClusterId : &quot;2&quot;, ConnectionMode : &quot;ReplicaSet&quot;, Type : &quot;ReplicaSet&quot;, State : &quot;Disconnected&quot;, Servers : [{ ServerId: &quot;&lt;/p&gt;
{ ClusterId : 2, EndPoint : &quot;Unspecified/-xxxxx:xxxx-&quot; }
&lt;p&gt;&quot;, EndPoint: &quot;Unspecified/&lt;del&gt;xxxxx:xxxx&lt;/del&gt;&quot;, State: &quot;Disconnected&quot;, Type: &quot;Unknown&quot;, HeartbeatException: &quot;MongoDB.Driver.MongoConnectionException: An exception occurred while opening a connection to the server. ---&amp;gt; System.DllNotFoundException: Unable to load shared library &apos;security.dll&apos; or one of its dependencies. In order to help diagnose loading problems, consider setting the LD_DEBUG environment variable: libsecurity.dll: cannot open shared object file: No such file or directory at MongoDB.Driver.Core.Authentication.Sspi.NativeMethods.AcquireCredentialsHandle(String principal, String package, SecurityCredentialUse credentialUsage, IntPtr logonId, IntPtr identity, Int32 keyCallback, IntPtr keyArgument, SspiHandle&amp;amp; credentialHandle, Int64&amp;amp; timestamp) at MongoDB.Driver.Core.Authentication.Sspi.SecurityCredential.Acquire(SspiPackage package, String username, SecureString password) at MongoDB.Driver.Core.Authentication.GssapiAuthenticator.FirstStep..ctor(String serviceName, String hostName, String realm, String username, SecureString password, SaslConversation conversation) at MongoDB.Driver.Core.Authentication.GssapiAuthenticator.GssapiMechanism.Initialize(IConnection connection, SaslConversation conversation, ConnectionDescription description) at MongoDB.Driver.Core.Authentication.SaslAuthenticator.AuthenticateAsync(IConnection connection, ConnectionDescription description, CancellationToken cancellationToken) at MongoDB.Driver.Core.Authentication.AuthenticationHelper.AuthenticateAsync(IConnection connection, ConnectionDescription description, CancellationToken cancellationToken) at MongoDB.Driver.Core.Connections.ConnectionInitializer.InitializeConnectionAsync(IConnection connection, CancellationToken cancellationToken) at MongoDB.Driver.Core.Connections.BinaryConnection.OpenHelperAsync(CancellationToken cancellationToken) &amp;#8212; End of inner exception stack trace &amp;#8212; at MongoDB.Driver.Core.Connections.BinaryConnection.OpenHelperAsync(CancellationToken cancellationToken) at MongoDB.Driver.Core.Servers.ServerMonitor.HeartbeatAsync(CancellationToken cancellationToken)&quot; }, { ServerId: &quot;&lt;/p&gt;
{ ClusterId : 2, EndPoint : &quot;Unspecified/-xxxxx:xxxx-&quot; }
&lt;p&gt;&quot;, EndPoint: &quot;Unspecified/&lt;del&gt;xxxxx:xxxx&lt;/del&gt;&quot;, State: &quot;Disconnected&quot;, Type: &quot;Unknown&quot;, HeartbeatException: &quot;MongoDB.Driver.MongoConnectionException: An exception occurred while opening a connection to the server. ---&amp;gt; System.DllNotFoundException: Unable to load shared library &apos;security.dll&apos; or one of its dependencies. In order to help diagnose loading problems, consider setting the LD_DEBUG environment variable: libsecurity.dll: cannot open shared object file: No such file or directory at MongoDB.Driver.Core.Authentication.Sspi.NativeMethods.AcquireCredentialsHandle(String principal, String package, SecurityCredentialUse credentialUsage, IntPtr logonId, IntPtr identity, Int32 keyCallback, IntPtr keyArgument, SspiHandle&amp;amp; credentialHandle, Int64&amp;amp; timestamp) at MongoDB.Driver.Core.Authentication.Sspi.SecurityCredential.Acquire(SspiPackage package, String username, SecureString password) at MongoDB.Driver.Core.Authentication.GssapiAuthenticator.FirstStep..ctor(String serviceName, String hostName, String realm, String username, SecureString password, SaslConversation conversation) at MongoDB.Driver.Core.Authentication.GssapiAuthenticator.GssapiMechanism.Initialize(IConnection connection, SaslConversation conversation, ConnectionDescription description) at MongoDB.Driver.Core.Authentication.SaslAuthenticator.AuthenticateAsync(IConnection connection, ConnectionDescription description, CancellationToken cancellationToken) at MongoDB.Driver.Core.Authentication.AuthenticationHelper.AuthenticateAsync(IConnection connection, ConnectionDescription description, CancellationToken cancellationToken) at MongoDB.Driver.Core.Connections.ConnectionInitializer.InitializeConnectionAsync(IConnection connection, CancellationToken cancellationToken) at MongoDB.Driver.Core.Connections.BinaryConnection.OpenHelperAsync(CancellationToken cancellationToken) &amp;#8212; End of inner exception stack trace &amp;#8212; at MongoDB.Driver.Core.Connections.BinaryConnection.OpenHelperAsync(CancellationToken cancellationToken) at MongoDB.Driver.Core.Servers.ServerMonitor.HeartbeatAsync(CancellationToken cancellationToken)&quot; }] }.)&lt;br/&gt;
&#160;&lt;/p&gt;

&lt;p&gt;Should the version running on Linux be looking for the security.dll?&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;I have following the instructions on the following page&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://mongodb-documentation.readthedocs.io/en/latest/ecosystem/tutorial/authenticate-with-csharp-driver.html#linux-systems&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://mongodb-documentation.readthedocs.io/en/latest/ecosystem/tutorial/authenticate-with-csharp-driver.html#linux-systems&lt;/a&gt;&lt;/p&gt;</description>
                <environment>Red Hat Enterprise Linux Server 7.4 (Maipo)&lt;br/&gt;
&lt;br/&gt;
&amp;quot;MongoDB.Driver&amp;quot; Version=&amp;quot;2.7.2&amp;quot;</environment>
        <key id="667818">CSHARP-2474</key>
            <summary>GSSAPI Authentication failing on LINUX RHEL7 with .NET Core 2.1</summary>
                <type id="2" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14711&amp;avatarType=issuetype">New Feature</type>
                                            <priority id="3" iconUrl="https://jira.mongodb.org/images/icons/priorities/major.svg">Major - P3</priority>
                        <status id="6" iconUrl="https://jira.mongodb.org/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="13201">Fixed</resolution>
                                        <assignee username="james.kovacs@mongodb.com">James Kovacs</assignee>
                                    <reporter username="ferdi">ferdi rezvan</reporter>
                        <labels>
                            <label>rp-track</label>
                    </labels>
                <created>Tue, 8 Jan 2019 22:57:36 +0000</created>
                <updated>Sat, 28 Oct 2023 11:48:51 +0000</updated>
                            <resolved>Fri, 12 Feb 2021 23:34:21 +0000</resolved>
                                                    <fixVersion>2.12.0</fixVersion>
                                    <component>Security</component>
                                        <votes>5</votes>
                                    <watches>13</watches>
                                                                                                                <comments>
                            <comment id="3614935" author="xgen-internal-githook" created="Fri, 12 Feb 2021 23:30:14 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;James Kovacs&apos;, &apos;email&apos;: &apos;jkovacs@post.harvard.edu&apos;, &apos;username&apos;: &apos;JamesKovacs&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CSHARP-2474&quot; title=&quot;GSSAPI Authentication failing on LINUX RHEL7 with .NET Core 2.1&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CSHARP-2474&quot;&gt;&lt;del&gt;CSHARP-2474&lt;/del&gt;&lt;/a&gt;/CSHARP-2481 Added documentation for Kerberos/GSSAPI on Linux.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-csharp-driver/commit/93cce5f31baad031e0ea3a101c27954a2c5b79d2&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-csharp-driver/commit/93cce5f31baad031e0ea3a101c27954a2c5b79d2&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3614635" author="xgen-internal-githook" created="Fri, 12 Feb 2021 20:34:59 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;James Kovacs&apos;, &apos;email&apos;: &apos;jkovacs@post.harvard.edu&apos;, &apos;username&apos;: &apos;JamesKovacs&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CSHARP-2474&quot; title=&quot;GSSAPI Authentication failing on LINUX RHEL7 with .NET Core 2.1&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CSHARP-2474&quot;&gt;&lt;del&gt;CSHARP-2474&lt;/del&gt;&lt;/a&gt; / CSHARP-2481: Implement libgssapi support for Kerberos auth on Linux.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-csharp-driver/commit/69618dd0a044a198f266f08c39a0b975a5ea6f27&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-csharp-driver/commit/69618dd0a044a198f266f08c39a0b975a5ea6f27&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3262898" author="emilio.scalise" created="Wed, 1 Jul 2020 16:17:17 +0000"  >&lt;p&gt;Thanks for the update &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=rachelle.palmer&quot; class=&quot;user-hover&quot; rel=&quot;rachelle.palmer&quot;&gt;rachelle.palmer&lt;/a&gt;, can I mention this to the customer or is it better to wait for completion of this?&lt;/p&gt;</comment>
                            <comment id="3221458" author="rachelle.palmer" created="Wed, 24 Jun 2020 14:12:11 +0000"  >&lt;p&gt;As an update on this issue: Our engineering team is starting work on this project this quarter; will update further as we get closer to completion. &lt;/p&gt;</comment>
                            <comment id="2109320" author="ferdi" created="Tue, 8 Jan 2019 23:02:34 +0000"  >&lt;p&gt;Just to add I also have&#160;&lt;/p&gt;

&lt;p&gt;&#160;&lt;br/&gt;
yum install krb5-workstation krb5-libs krb5-auth-dialog -y&#160;&lt;br/&gt;
yum install libgsasl -y&#160;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                                        </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                                                    <customfield id="customfield_13552" key="com.go2group.jira.plugin.crm:crm_generic_field">
                        <customfieldname>Case</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[[5002K00000d8dE5QAI, 5002K00000kEwwgQAC, 5002K00000rzTfeQAE]]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                    <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                    <customfield id="customfield_10857" key="com.pyxis.greenhopper.jira:gh-epic-link">
                        <customfieldname>Epic Link</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>CSHARP-2481</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hr6ktj:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9223372036854775807</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>