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

Usage of user's LDAP/AD password #151

Open
edrush opened this issue Mar 28, 2018 · 4 comments
Open

Usage of user's LDAP/AD password #151

edrush opened this issue Mar 28, 2018 · 4 comments

Comments

@edrush
Copy link

edrush commented Mar 28, 2018

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...

@edrush
Copy link
Author

edrush commented Apr 5, 2018

Hi, any help would be appreciated...am I the only one to struggle on this, do you need more explanation?

Regards!

@edrush
Copy link
Author

edrush commented Apr 10, 2018

Ok sorry, the reason was a security configuration issue. We spread configuration over multiple files...

@edrush edrush closed this as completed Apr 10, 2018
@edrush
Copy link
Author

edrush commented Apr 11, 2018

No, that was not the problem. Does anyone use this package with Symfony3?

@edrush edrush reopened this Apr 11, 2018
@edrush
Copy link
Author

edrush commented Apr 11, 2018

So why would Symfony want to compare passwords again, after LDAP successfully authenticated. I have the feeling I shouldn't get into DaoAuthenticationProvider.

@edrush edrush closed this as completed Apr 11, 2018
@edrush edrush reopened this Apr 11, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant