Replies: 1 comment
-
find a solution by overriding makeConnection /**
* Make a new LDAP connection.
*
* @param array $config
*
* @return Connection
*/
protected function makeConnection($config)
{
DomainConfiguration::extend('identifier_attribute','sAMAccountName');
return app(Connection::class, ['config' => $config]);
} Hopes this is the proper way to use the method extend. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I would like to add an env variable which would be called LDAP_{name}_IDENTIFIER_ATTRIBUTE.
I have a custom LDAPCustomServiceProvider which look like this.
Unfortunattely when i try to run it i have the following error
I see that there is an extend method in DomainConfiguration but i don't understand how to use it.
Thanks in advance for your help.
Beta Was this translation helpful? Give feedback.
All reactions