Skip to content
This repository was archived by the owner on Jul 24, 2023. It is now read-only.
This repository was archived by the owner on Jul 24, 2023. It is now read-only.

ldap_modify_batch(): Batch Modify: Server is unwilling to perform #802

@rnrstar

Description

@rnrstar
  • Laravel Version: 5.5.28
  • Adldap2-Laravel Version: 8.0
  • PHP Version: 7.0.33
  • LDAP Type: ActiveDirectory

Description:

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");
			}
		}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions