Skip to content

Not authorized to execute collMod during schema creation #2402

Closed
@nikophil

Description

@nikophil

Hello,

BC Break Report

Q A
BC Break yes
Version 2.3.0

Summary

Since we've upgraded to doctrine/mongo-odm 2.3.0 the authSource will always be admin even if another one is provided in the dsn with the authSource param. This leads to "authentication failed" errors.

How to reproduce

try to connect to a database which authentication database has another name than admin

thanks for your work 👍

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions