<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
We use a sql backend. Just after my sql module (in the authorise
section) i added the following bloc.<br>
<br>
<blockquote cite="mid:4C90D892.2080108@imperial.ac.uk" type="cite">
if (notfound) {
<br>
update reply {
<br>
Tunnel-Type := 13<br>
Tunnel-Medium-Type := 6<br>
Tunnel-Private-Group-ID := 42<br>
<br>
}
<br>
}
</blockquote>
When a user is unknown, the sql module returns notfound and this
block is evaluated as TRUE.<br>
But the return value is not the VLAN as expected :<br>
? Evaluating (notfound) -> TRUE<br>
++? if (notfound) -> TRUE<br>
++- entering if (notfound) {...}<br>
+++[reply] returns notfound<br>
++- if (notfound) returns notfound<br>
? Evaluating (notfound) -> TRUE<br>
++? if (notfound) -> TRUE<br>
++- entering if (notfound) {...}<br>
+++[reply] returns notfound<br>
++- if (notfound) returns notfound<br>
<br>
<br>
<br>
Regards,<br>
<br>
<div class="moz-signature">-- <br>
<style type="text/css">.name { font-family: Verdana,sans-serif; color: rgb(236, 112, 7); font-size: 10pt; }.function { font-family: Verdana,sans-serif; color: rgb(236, 112, 7); font-style: italic; font-size: 7pt; }.link { text-decoration: none; font-family: Verdana,sans-serif; color: rgb(153, 153, 153); font-size: 7pt; font-weight: bold; }.phone { font-family: Verdana,sans-serif; color: rgb(102, 102, 102); font-size: 7pt; font-weight: bold; }img { border: 0pt none; }ul { list-style-type: none; padding-left: 1px; }</style>
<strong class="name">Fabien COMBERNOUS</strong><br>
<em class="function">unix system engineer</em><br>
<a class="link" href="http://www.kezia.com/" title="Kezia website">www.kezia.com</a><br>
<strong class="phone">Tel: +33 (0) 467 992 986</strong><br>
<img src="cid:part1.02020907.09070608@kezia.com" alt="Kezia Group">
</div>
</body>
</html>