Adldap2-Laravel icon indicating copy to clipboard operation
Adldap2-Laravel copied to clipboard

Not matching e-mail address even if still exists

Open tcagkansokmen opened this issue 3 years ago • 1 comments

Laravel Version: 8 Adldap2-Laravel Version: 6.1 PHP Version: 7.4

I have users table.

I'm trying to make their authentication with LDAP. But when user login, It tries to recreate It's record if 'username' and 'objecthuid' columns are empty. But there's still a user with same e-mail address, so that singularity validation returns error "there's still a record with that email address."

I want to work with LDAP like; "If email exist, then login and update. If not exist so create new record."

tcagkansokmen avatar Dec 22 '21 06:12 tcagkansokmen

Hi @tcagkansokmen,

LdapRecord supports this feature out of the box. I’d recommend moving to it:

https://ldaprecord.com/docs/laravel/v2/auth/database/configuration/#sync-existing-records

stevebauman avatar Dec 23 '21 14:12 stevebauman