Bulk password reset after disabling ldap

Hello All,

We’re using RT 5.0 and trying to do a bulk reset of all users passwords after turning off ldap. Having issues resting all users accounts with rest api. Thank you all for your assistance!

So if I understand correctly the issue, you turned off the external authentication, set up internal and need to set new passwords for all the users? Perhaps you need to do it in some script running from the system. I assume something like this should work:

#!/usr/bin/env perl
use lib ("/opt/rt4/lib");
use strict;
use warnings;
use utf8;
binmode STDOUT, ':utf8'; #get rid off "Wide character in print..."
use 5.010;

use RT -init;

my $users = RT::Users->new(RT::SystemUser);
$users->LimitToPrivileged;

while (my $user=$users->Next) {
  $user->ResetPassword(); # **
}

** See documentation for details.

I assume you have changed also the auth configuration.

Is this what you are asking for?