my $osrf_config = '/openils/conf/opensrf_core.xml';
my $username = '';
my $password = '';
+my $workstation = '';
my $tempdir = '';
my $spoolfile = '';
my $wait_time = 5;
'verbose' => \$verbose,
'username=s' => \$username,
'password=s' => \$password,
+ 'workstation' => \$workstation,
'tempdir=s' => \$tempdir,
'spoolfile=s' => \$spoolfile,
'wait=i' => \$wait_time,
--password
Evergreen user account password
+ --workstation
+ Evergreen workstation
+
--tempdir
MARC data received via the network is stored in a temporary
file so Vandelay can access it. This must be a directory
}
-die "--username AND --password required. --help for more info.\n"
- unless $username and $password;
+die "--username, --password, AND --workstation required. --help for more info.\n"
+ unless $username and $password and $workstation;
die "--bib-queue OR --auth-queue required. --help for more info.\n"
unless $bib_queue or $auth_queue;
# the authtoken will timeout after the configured inactivity period.
# When that happens, get a new one.
sub new_auth_token {
- oils_login($username, $password, 'staff')
+ oils_login($username, $password, 'staff', $workstation)
or die "Unable to login to Evergreen as user $username";
}
'open-ils.auth.authenticate.init', $username, $nonce);
err("No auth seed") unless $seed;
+ my $opts = { username => $username,
+ password => md5_hex($seed . md5_hex($password)),
+ type => $type };
+
+ if(defined($workstation)) {
+ $opts->{workstation} = $workstation;
+ }
+
my $response = $apputils->simplereq( $AUTH,
- 'open-ils.auth.authenticate.complete',
- { username => $username,
- password => md5_hex($seed . md5_hex($password)),
- type => $type, nonce => $nonce });
+ 'open-ils.auth.authenticate.complete', $opts);
err("No auth response returned on login") unless $response;
--- /dev/null
+Changes to marc_stream_importer.pl command line options
+-----------------------
+
+To work properly with Vandelay session tracking a --workstation
+option is now required for the marc_stream_importer.pl script.
+It needs to be an existing workstation name in your system and
+if it is missing from the command line the script will fail and
+you will be notified.