Hi,<div><br></div><div>Is their a way to return status code of an external script to the module.</div><div><br></div><div>Let me explain the problem:</div><div>PEAP-MSCHAPv2 with ldap and fallback is also there i.e. if ldap  server is not reachable do local auth.</div>

<div>Now mschapv2 authentication with ldap is to be done using ntlm_auth  , </div><div>So basically I want to know what ntlm_auth has returned ?</div><div>it actually returns "<b>Reading winbind reply failed! (0xc0000001) </b>" when ldap is not reachable (net join has failed winbindd hasn't started)</div>

<div>ldap is reachable but userid/password incorrect <b>Logon failure (0xc000006d)  </b></div><div><b><br></b></div><div>For both cases Exec is return reject=1 as module return code, radius should only do local authentication ldap is not-reachable and not when ldap reject , but because exec output is always reject I cant distinguish the real cause of failure.</div>

<div><br></div><div>Only way I can know what actually <b>ntlm_auth returns</b> ? if I know that I can take decision in radiusd.conf.</div><div><br></div><div><br></div>