Bind Prefix
Hi, we are using active directory at a large company and I ran into the issue of UN prefixes. Essentially I had add the CORP\ prefix to the bind function in conjunction with the Bind Before User option in order to make your bundle work for us.
/vendor/imag/ldap-bundle/IMAG/LdapBundle/Manager/LdapConnection.php:
public function bind($user_dn, $password='') { return @ldap_bind($this->ress, 'CORP'.$user_dn, $password); }
I didnt know how else to accomplish the prefix. What is worse is the name_attribute which is samaccountname then doesn't need the CORP\ prefix.
If there is any easy way to do this without hard coding into the bundle like I did above?
Thanks
same issue here
You can make a CompilerPass and set Service "imag_ldap.ldap_connection" with your Connection-Class. Their you can override the bind-methode
+1 here. I've successfully overrided bind method, but that is not good.