https://pulp.plan.io/https://pulp.plan.io/favicon.ico2015-02-28T23:25:24ZPulpPulp - Issue #708: Pulp does not authenticate with mongodb using username with an empty password if specifiedhttps://pulp.plan.io/issues/708?journal_id=16322015-02-28T23:25:24Zbmbouterbmbouter@redhat.com
<ul></ul><p>I think this bug is as simple as adjusting this section [0] of code so that if username is not the default (empty string) then both username and password will be included as connection_kwargs. The default password is an empty string so if the user does not adjust the password of server.conf [database] section then an empty password should be allowed.</p>
<p>[0]: <a href="https://github.com/pulp/pulp/blob/master/server/pulp/server/db/connection.py#L87-L93" class="external">https://github.com/pulp/pulp/blob/master/server/pulp/server/db/connection.py#L87-L93</a></p>
<p>+ This comment was cloned from <a href="https://bugzilla.redhat.com/show_bug.cgi?id=1194676#c1" class="external">Bugzilla #1194676 comment 1</a> +</p> Pulp - Issue #708: Pulp does not authenticate with mongodb using username with an empty password if specifiedhttps://pulp.plan.io/issues/708?journal_id=16582015-03-02T15:36:19Zcduryeecduryee@redhat.com
<ul><li><strong>Status</strong> changed from <i>NEW</i> to <i>ASSIGNED</i></li><li><strong>Assignee</strong> set to <i>cduryee</i></li></ul> Pulp - Issue #708: Pulp does not authenticate with mongodb using username with an empty password if specifiedhttps://pulp.plan.io/issues/708?journal_id=17302015-03-02T19:56:47Zcduryeecduryee@redhat.com
<ul><li><strong>Assignee</strong> changed from <i>cduryee</i> to <i>igulina@redhat.com</i></li></ul><p>Can you give more info about how you created the 'gena' user originally? I am having trouble reproducing this case.</p> Pulp - Issue #708: Pulp does not authenticate with mongodb using username with an empty password if specifiedhttps://pulp.plan.io/issues/708?journal_id=17662015-03-02T22:40:48Zcduryeecduryee@redhat.com
<ul><li><strong>Assignee</strong> changed from <i>igulina@redhat.com</i> to <i>cduryee</i></li></ul> Pulp - Issue #708: Pulp does not authenticate with mongodb using username with an empty password if specifiedhttps://pulp.plan.io/issues/708?journal_id=26902015-03-20T19:15:04Zbmbouterbmbouter@redhat.com
<ul><li><strong>Severity</strong> changed from <i>Medium</i> to <i>2. Medium</i></li></ul> Pulp - Issue #708: Pulp does not authenticate with mongodb using username with an empty password if specifiedhttps://pulp.plan.io/issues/708?journal_id=29672015-03-30T17:27:20Zcduryeecduryee@redhat.com
<ul><li><strong>Status</strong> changed from <i>ASSIGNED</i> to <i>POST</i></li></ul><p><a href="https://github.com/pulp/pulp/pull/1750" class="external">https://github.com/pulp/pulp/pull/1750</a></p> Pulp - Issue #708: Pulp does not authenticate with mongodb using username with an empty password if specifiedhttps://pulp.plan.io/issues/708?journal_id=29702015-03-30T19:14:25Zcduryeecduryee@redhat.com
<ul><li><strong>Status</strong> changed from <i>POST</i> to <i>MODIFIED</i></li></ul> Pulp - Issue #708: Pulp does not authenticate with mongodb using username with an empty password if specifiedhttps://pulp.plan.io/issues/708?journal_id=29712015-03-30T19:16:34Zcduryeecduryee@redhat.com
<ul><li><strong>% Done</strong> changed from <i>0</i> to <i>100</i></li></ul><p>Applied in changeset <a class="changeset" title="Allow passwordless mongodb connections to be configured MongoDB allows passwordless logins. Howe..." href="https://pulp.plan.io/projects/pulp/repository/pulp/revisions/6fcae917d1f0038611b73c00b02ccc3a73a751d8">pulp|6fcae917d1f0038611b73c00b02ccc3a73a751d8</a>.</p> Pulp - Issue #708: Pulp does not authenticate with mongodb using username with an empty password if specifiedhttps://pulp.plan.io/issues/708?journal_id=37892015-04-28T15:28:14Zcduryeecduryee@redhat.com
<ul><li><strong>Platform Release</strong> changed from <i>2.6.1</i> to <i>2.6.2</i></li></ul> Pulp - Issue #708: Pulp does not authenticate with mongodb using username with an empty password if specifiedhttps://pulp.plan.io/issues/708?journal_id=44162015-05-19T00:00:27Zdkliban@redhat.com
<ul><li><strong>Status</strong> changed from <i>MODIFIED</i> to <i>5</i></li></ul> Pulp - Issue #708: Pulp does not authenticate with mongodb using username with an empty password if specifiedhttps://pulp.plan.io/issues/708?journal_id=44922015-05-25T11:53:59Zigulina@redhat.comigulina@redhat.com
<ul><li><strong>Status</strong> changed from <i>5</i> to <i>6</i></li></ul><blockquote>
<blockquote>
<p>rpm -qa pulp-server</p>
</blockquote>
</blockquote>
<p>pulp-server-2.6.2-0.2.beta.fc20.noarch</p>
<p>with</p>
<p>username: gena<br>
password:</p>
<p>in /etc/pulp/server.conf</p>
<blockquote>
<blockquote>
<p>mongo pulp_database -u gena</p>
</blockquote>
</blockquote>
<p>MongoDB shell version: 2.4.6<br>
connecting to: pulp_database</p>
<blockquote>
<p>^C</p>
</blockquote>
<p>bye</p>
<blockquote>
<blockquote>
<p>sudo -u apache pulp-manage-db</p>
</blockquote>
</blockquote>
<p>Mongo database for connection is version 2.4.6<br>
Loading content types.<br>
Loading type descriptors [docker.json, rpm_support.json, puppet.json, iso_support.json, nodes.json]<br>
Parsing type descriptors<br>
Validating type descriptor syntactic integrity<br>
Validating type descriptor semantic integrity<br>
Updating the database with types [docker_image, distribution, drpm, erratum, package_group, package_category, package_environment, rpm, srpm, yum_repo_metadata_file, puppet_module, iso, repository, node]<br>
Content types loaded.<br>
Ensuring the admin role and user are in place.<br>
Admin role and user are in place.<br>
Beginning database migrations.<br>
Migration package pulp.server.db.migrations is up to date at version 12<br>
Migration package pulp_puppet.plugins.migrations is up to date at version 2<br>
Migration package pulp_rpm.plugins.migrations is up to date at version 21<br>
Database migrations complete.</p>
<blockquote>
<blockquote>
<p>for s in {qpidd,pulp_celerybeat,pulp_resource_manager,pulp_workers,httpd}; do sudo systemctl restart $s; done;<br>
pulp-admin -u admin -p admin rpm repo list</p>
</blockquote>
</blockquote>
<p><span><del>--------------------------------------------------------------------</del></span><br>
RPM Repositories<br>
<span><del>--------------------------------------------------------------------</del></span></p>
<p>Id: zoo_repo<br>
Display Name: zoo_repo<br>
Description: None<br>
Content Unit Counts:<br>
Erratum: 4<br>
Package Category: 1<br>
Package Group: 2</p>
<blockquote>
<blockquote>
<p>pulp-admin login -u admin -p admin</p>
</blockquote>
</blockquote>
<p>Successfully logged in. Session certificate will expire at Jun 1 11:56:14 2015<br>
GMT.</p>
<blockquote>
<blockquote>
<p>pulp-admin rpm repo create --repo-id test</p>
</blockquote>
</blockquote>
<p>Successfully created repository [test]</p>
<blockquote>
<blockquote>
<p>pulp-admin rpm repo delete --repo-id test</p>
</blockquote>
</blockquote>
<p>This command may be exited via ctrl+c without affecting the request.</p>
<p>[\]<br>
Running...</p>
<p>Repository [test] successfully deleted</p> Pulp - Issue #708: Pulp does not authenticate with mongodb using username with an empty password if specifiedhttps://pulp.plan.io/issues/708?journal_id=61242015-09-14T12:52:10Zdkliban@redhat.com
<ul><li><strong>Status</strong> changed from <i>6</i> to <i>CLOSED - CURRENTRELEASE</i></li></ul> Pulp - Issue #708: Pulp does not authenticate with mongodb using username with an empty password if specifiedhttps://pulp.plan.io/issues/708?journal_id=401382019-04-15T21:05:34Zbmbouterbmbouter@redhat.com
<ul><li><strong>Tags</strong> <i>Pulp 2</i> added</li></ul>