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
Is there any method that can detect the connection whether it is an active directory or openLdap accordingly use classes? As both have different classes to use.
Thank you.
The text was updated successfully, but these errors were encountered:
Unfortunately there's no direct way of retrieving what type of LDAP server you are connected to. Some servers may provide some hints/evidence in their Root DSE object (can be retrieved by calling \LdapRecord\Models\Entry::getRootDse()), but this isn't consistently implemented across all providers.
The only way to do this is to identify them as such in your application, which you can do by naming the connections by supplying their name in the second parameter of the Container::addConnection method:
Is there any method that can detect the connection whether it is an active directory or openLdap accordingly use classes? As both have different classes to use.
Thank you.
The text was updated successfully, but these errors were encountered: