Open rnrstar opened 4 years ago
Hi @rnrstar,
Does the user that you created have a password set? You must set the users password before enabling them, otherwise you will receive this error from ActiveDirectory.
When I create the user, I'm also setting the password, see below. I've tried to login using that password and it doesn't appear to work. Is there another way I should be setting the password?
$pw = "NEW.Trainee." . $request->extension_id;
// Now create the user in active directory.
$user = Adldap::make()->user();
$user->setPassword($pw);
// I'm setting other things like cn, etc. I've just omitted them as they don't seem to be the issue and to shorten the code that's pasted here.
$user->save();
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.