Create date from system in ldap module

Arran Cudbard-Bell a.cudbardb at freeradius.org
Mon Mar 17 19:05:31 CET 2014


On 17 Mar 2014, at 13:05, Alan DeKok <aland at deployingradius.com> wrote:

> Bogdan Siara wrote:
>> I uuse exec module in ldap filter:
>> filter =
>> "(&(uid=%{User-Name})(o=COMPANY)(pwdChangedTime>=%{exec:/usr/bin/data.pl
> 
>  Tou can just use %Y%m%H directly in FreeRADIUS.

No, he's generating a timestamp offset by -90 days.

>  Or in v3, use rlm_date.

It'd be a combination of preprocess (to get Event-Timestamp) %{integer:} 
%{date:} and %{expr:} if it all needs to be done internally without one
letter expansions.

Arran Cudbard-Bell <a.cudbardb at freeradius.org>
FreeRADIUS Development Team

FD31 3077 42EC 7FCD 32FE 5EE2 56CF 27F9 30A8 CAA2

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 881 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.freeradius.org/mailman/private/freeradius-users/attachments/20140317/df6e1aac/attachment.pgp>


More information about the Freeradius-Users mailing list