freeradius and the current date

Graham Leggett minfrin at sharp.fm
Thu Mar 5 15:56:17 CET 2015


Hi all,

I am looking to perform an LDAP search in freeradius that includes the option to specify users that have not expired, where expiry is contained an a standard LDAP attribute. Something similar to this:

(&(uid=%{User-Name})(myExpiryTimestamp>=%{[TIMESTAMP_NOW]}))

(In other words, I am looking for a suitable unlang attribute that represents “time now on radius server”)

The closest I’ve found are these deprecated one character variables as follows:

http://wiki.freeradius.org/config/Run%20time%20variables

Unfortunately they are marked as deprecated with no indication of what replaces them.

The source code for rlm_date seems to indicate that date formatting is possible, but there is no functionality that I can see to provide the current date, which is a shame. Should this module be a good place for this kind of functionality or should I be looking somewhere else for this?

Regards,
Graham
—




More information about the Freeradius-Users mailing list