You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 24, 2023. It is now read-only.
After creating a user I'm trying to enable the account and I'm getting the above error message. The user that is used to connect to LDAP has belongs to domain admins.
<!-- Steps to Reproduce is optional. -->
// Save the user to AD.
if($user->save())
{
if($suser = Adldap::search()->whereEquals('cn',$nur->first_name . " " . $nur->last_name)->firstOrFail())
{
echo "Found the user";
$suser->setUserAccountControl('512');
$suser->update();
}
else
{
die("failed to find user");
}
}