use LdapRecord\Models\ActiveDirectory\User as ActiveDirectoryUser;
class User extends ActiveDirectoryUser {
}
$user = User::where('objectGuid', '=', hexToBin($id))->firstOrFail();
// User exists
$user->delete();
This gives error:
ldap_delete(): Delete: Operation not allowed on non-leaf
*EDIT
It's weird. I can delete other users, but I'm having problems with 2 users.
Environment:
Describe the bug:
This gives error: ldap_delete(): Delete: Operation not allowed on non-leaf
*EDIT It's weird. I can delete other users, but I'm having problems with 2 users.