[rt-users] Importing Active Directory users through Cron

fleon fleon at seguroscatatumbo.com
Fri Oct 10 09:43:05 EDT 2014


I made this script, it isn't 100% accurate but it's good enough for my
purposes, $bigEpochTime->bstr returns the information i need. How do i call
this so the RT config can read its value?

#!/usr/bin/perl
use strict;
use warnings;
use Math::BigInt;

use constant BIGEPOCH => '116444736000000000';

my $passwordPeriod=90*24*60*60;
my $bigEpochTime = Math::BigInt->new(time() - $passwordPeriod);

#multiply by 10000000 to get 100 nanosecond intervals since epoch
$bigEpochTime->bmul('10000000');
$bigEpochTime->badd(BIGEPOCH);
print ($bigEpochTime->bstr);




--
View this message in context: http://requesttracker.8502.n7.nabble.com/Importing-Active-Directory-users-through-Cron-tp58790p58795.html
Sent from the Request Tracker - User mailing list archive at Nabble.com.



More information about the rt-users mailing list