Ldap auth for existing db user #472
-
So I'm sure I'm missing something since I've been at this all day. I typically create new users in the database prior to their AD account being created. We also support non-AD users too. Currently using jetstream with laravel 8. When I attempt to login LdapRecord is finding the AD user. However it is not finding the associated DB user in order sync the domain and guid fields for the first time. Because of this it is trying to import the ldap user as a new DB user which fails because of some other unrelated reasons (missing required fields). I tested this on my old implementation of Adldaps and if I deleted the guid field in the DB it would just get added back on next login. I'm not sure what I'm missing with this implementation. I did switch to email for auth instead of username, but would not think that would make a difference. I hope that makes sense. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
Hi @delta1186, Have you set up the sync existing configuration option? This is required so LdapRecord knows how to locate existing users in the database without a pre-synchronized GUID. Let me know if you have issues or any other questions 👍 |
Beta Was this translation helpful? Give feedback.
Hi @delta1186,
Have you set up the sync existing configuration option? This is required so LdapRecord knows how to locate existing users in the database without a pre-synchronized GUID.
Let me know if you have issues or any other questions 👍