10-04-2012, 09:14 AM
[eluser]jerrac[/eluser]
Have any of you ever run into a LDAP library in the same style as Active Record?
So, to find a ldap entry by their uid, I'd say something like:
To update an attribute:
And so on.
Pear/Net_LDAP2 doesn't work like that. And it doesn't look like Zend Framework 2's LDAP library works that way either.
Have any of you ever run into a LDAP library in the same style as Active Record?
So, to find a ldap entry by their uid, I'd say something like:
Code:
$this->ldap->get($arrayofattributes)->where('uid','23416');
To update an attribute:
Code:
$this->ldap->set('mail','[email protected]')->where('givenname','yo');
And so on.
Pear/Net_LDAP2 doesn't work like that. And it doesn't look like Zend Framework 2's LDAP library works that way either.