[RADIATOR] R:  LDAP shadowExpire
    Fabio Prina 
    Fabio.Prina at easynet.com
       
    Wed Feb  5 03:58:16 CST 2014
    
    
  
Thanks Robert,
I tried to use a PostSearchHook like the documentation example; but with a get_reply instead the your get_check
and it didn't work
This is "my" working Hook:
	PostSearchHook sub { 
		my $shadowExpire = @{$_[4]->get('shadowExpire')}[0] ;
		$_[3]->get_check->add_attr('Expiration', $shadowExpire * 86400 );
	}
Thanks again 
--
Fabio
-----Messaggio originale-----
Da: radiator-bounces at open.com.au [mailto:radiator-bounces at open.com.au] Per conto di Robert Fisher
Inviato: martedì 4 febbraio 2014 19.39
A: radiator at open.com.au
Oggetto: Re: [RADIATOR] LDAP shadowExpire
You could accomplish this in a PostSearchHook.   The documentation
includes an example for adding a reply item based off a multiplied value, so guessing something like:
PostSearchHook sub {
     my $shadowExpire = $_[4]->get('shadowExpire');
     $_[3]->get_check->add_attr("Expiration", $shadowExpire * 86400); }
Robert Fisher
Systems Administrator
Sitestar Internet Services
On 2/4/2014 10:11 AM, Fabio Prina wrote:
> Hi All,
>
> I'm using posixAccount/shadowAccount users in a LDAP and I would like 
> to use the shadowExpire attribute to check the Expiration ... but the 
> value is expressed days since the 01/01/1970 and not seconds
>
> Maybe is a stupid question but is there a way to use this attribute? 
> Like multiply by 86400 before the check
>
> Thanks
> --
> Fabio
> _______________________________________________
> radiator mailing list
> radiator at open.com.au
> http://www.open.com.au/mailman/listinfo/radiator
_______________________________________________
radiator mailing list
radiator at open.com.au
http://www.open.com.au/mailman/listinfo/radiator
    
    
More information about the radiator
mailing list