Saving LDAP User Entity in Database without Password

Theory: Is there a way to store an Ldap User in your own database, necassarly for relations, without the password and somehow still make refreshUser work?

I have changed my system to work without having to store the pwd by checking on every login if the password matches the ldap server user password.
Symfony calls on every request the refreshUser method of your Provider, I have a custom LDAP Provider, to refresh the user using doctrine from the database. Symfony insures so that the object is always upToDate after an edit.

The problem is that this method call the User Entity getPassword() method, which is not implement due to none pwd in db.

I have seen an approach to fix it, which is saving the Entity in an session and everytime when refreshUser() is called, returning the session entity. But then there is no way to get it always updated after edit. And I don’t want to ruin the symfony infrastructure.

So is there an way to refreshUser() with maybe calling the LDAP Server again and asking if informations still match?