Skip to content
This repository was archived by the owner on May 17, 2021. It is now read-only.
This repository was archived by the owner on May 17, 2021. It is now read-only.

Usage of user's LDAP/AD password #151

@edrush

Description

@edrush

Hi,

I seem to have a lack of understanding the principle here: we'd like to use the setup of FOSUserBundle combined with FR3DLdapBundle. I did read about it, followed the documentation, I am also able to login via LDAP and a new user entity is getting persisted in my database.

But what about the user's password? After successfully authenticating against LDAP, somewhere deep in Symfony's core there is the DaoAuthenticationProvider, telling me that 'The presented password is invalid.', correct, since the user object's password is not set. I suppose this is some kind of correct. Maybe I should never get to this provider? I can imagine to create a custom hydrator and make it set the password to the new user object. But I guess that is not the way it should work.

I was expecting that either the password never gets stored in my database and will always be authenticated against LDAP/Active Directory. Or it will get stored redundantly, always synced from LDAP/Active Directory.

I didn't find, yet, an explanation how this is meant to work. I appreciate your help and/or questions, maybe it is just some wrong assumption...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions