LdapRecord
LdapRecord copied to clipboard
A fully-featured LDAP framework.
The remaining `Utilities` methods such as `stringGuidToHex`, `binaryGuidToString`, and `binarySidToString` should be moved to other classes like `Attributes\Guid` and `Attributes\Sid`.
The `encodeAttributes($attributes)` method in `Models\Concerns\HasAttributes` should not be `public`, as it is not intended to be called manually. ```php public function encodeAttributes($attributes) { array_walk_recursive($attributes, function (&$value) { $value = $this->encodeValue($value);...
The argument order for `fromDateTime` must follow `asDateTime` in v3: ```php public function fromDateTime($type, $value) { return (new Timestamp($type))->fromDateTime($value); } public function asDateTime($value, $type) { return (new Timestamp($type))->toDateTime($value); } ```
The current implementation of `determineModelFromRelated` requires every possible `objectClass` to match the model in order for it to be converted from `Entry`. This becomes an issue when, for example, not...
**Describe the feature you'd like:** Could you bump version of psr/simple-cache to 1.0|2.0|3.0 to be compatible with laravel's package requirement
### Discussed in https://github.com/DirectoryTree/LdapRecord/discussions/378 Originally posted by **pafernandez-oesia** December 29, 2021 Hi! Is there any way to check if the server has returned a control? I have to check for...
https://github.com/DirectoryTree/LdapRecord/pull/328
Hi @stevebauman, I'm looking for a way to preserver attributes when they are set in select() method. For exemple I need to retrieve attributes even if they are null or...
**Environment:** - LDAP Server Type: ActiveDirectory - PHP Version: 8.1.4 / 8.1.11 **Describe the bug:** After updating LdapRecord from 2.16 to v2.18 I couldn't create new users anymore with the...
**Environment:** - LDAP Server Type: ActiveDirectory - PHP Version:8.0 **Describe the bug:** For some reason $user->unicodepwd is not automatically encoded IF I'm using custom model. ``` use LdapRecord\Models\Model; class User...