LDAP Accounting

Olivier Beytrison olivier at heliosnet.org
Mon Dec 10 14:30:24 CET 2012


On 10.12.2012 01:33, Arran Cudbard-Bell wrote:

> 	accounting {
> 		reference = "%{tolower:type.%{Acct-Status-Type}}"
> 		
> 		type {
> 			start {
> 				update {
> 					description := "Online at %S"
> 				}
> 			}
> 			
> 			interim-update {
> 				update {
> 					description := "Online at %S"
> 				}
> 			}
> 			
> 			stop {
> 				update {
> 					description := "Offline at %S"
> 				}
> 			}
> 		}
> 	}
> 

In the default ldap files, it is stated that we can use the following
section for post-auth :
post-auth {
    update {
      description := "Authenticated at %S"
    }
  }
but on run-time, it complains that the reference is not found.

(0)  - entering group post-auth {...}
rlm_ldap (ldap): Reserved connection (4)
(0) ldap :      expand: '.' -> '.'
WARNING: No such configuration item .
rlm_ldap (ldap): Released connection (4)
(0)   [ldap] = fail

post-auth{} and accounting{} don't have the exact same layout, so the
code need to adapt and not fail ;)

-- 

 Olivier Beytrison
 Network & Security Engineer, HES-SO Fribourg
 Mobile: +41 (0)78 619 73 53
 Mail: olivier at heliosnet.org


More information about the Freeradius-Devel mailing list