You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 24, 2023. It is now read-only.
After confirming that there were no objectCategory on the filter used. (my search in ldap doesnt need objectCategory that's why it was removed)
Found out that the problem was $user instanceof User is getting a false value since the query return an instance of Entry.
It says here that this really returns a value in an instance of Entry
Steps To Reproduce:
We need to create a custom schema and run this in our terminal to show the die we placed temporarily on the method.
I want to search using email and an objectClass of person. The valid ldap search i used before needs a mail attribute.
` public function objectClassPerson()
{
return "somePerson";
}
public function objectCategoryPerson()
{
return 'somePerson';
}
public function objectCategory()
{
return 'objectclass';
}
public function employeeId()
{
return 'uid';
}
public function commonName()
{
return 'cn';
}
public function anr()
{
return 'mail';
}
public function userId()
{
return 'uid';
}`
php artisan adldap:import someEmail
The text was updated successfully, but these errors were encountered:
Hi @groundbreaker08, you need to use the OpenLDAP schema in your adldap.php configuration file.
It says here that this really returns a value in an instance of Entry
This comment wasn't meant to be taken literally in the context of Adldap2 Model classes. I use the word "entry" in many comments throughout the code to refer to raw LDAP records. Even still, the Entry model is a sub-class of the base Model class and will pass this instance of check.
Once you set your schema to OpenLDAP, clear your configuration cache using php artsian config:clear and then try re-authenticating.
If you still encounter problems just let me know and I will re-open this issue.
Description:
After confirming that there were no objectCategory on the filter used. (my search in ldap doesnt need objectCategory that's why it was removed)
Found out that the problem was $user instanceof User is getting a false value since the query return an instance of Entry.
It says here that this really returns a value in an instance of Entry
Steps To Reproduce:
We need to create a custom schema and run this in our terminal to show the die we placed temporarily on the method.
I want to search using email and an objectClass of person. The valid ldap search i used before needs a mail attribute.
` public function objectClassPerson()
{
return "somePerson";
}
php artisan adldap:import someEmail
The text was updated successfully, but these errors were encountered: