Hello Bruno -

On Fri, 27 Oct 2000, Bruno Tiago Rodrigues wrote:
> hi
> 
> we've been fiddling along with Hooks in order to do some customized
> authorization code on our dial-in accesses. the user is first authenticated
> by LDAP (so far so good) but the Hook code is always executed, even if the
> LDAP authentication failed.
> 
> the config file is something like
> 
> <Realm>
>     <AuthBy LDAP2>
>         Identifier foobar
>         Host    foobar
>         Port    999
>         (...)
>     </AuthBy>
>     PostAuthHook file:"/path/to/hook_file"
> </Realm>
> 
> is there any way I can test for AuthByLDAP2 successful authentication inside
> the hook? (note that I can pass AuthBy variables inside the hook, as I'm
> doing now) . Is there any way for Radiator to stop processing and don't even
> get inside the hook code? Some sort of "abort" directive?
> 

Have a look at the example hooks in the file "goodies/hooks.txt". You simply
need to check the result status on entry to your hook.

hth

Hugh

-- 
Radiator: the most portable, flexible and configurable RADIUS server 
anywhere. SQL, proxy, DBM, files, LDAP, NIS+, password, NT, Emerald, 
Platypus, Freeside, Interbiller, TACACS+, PAM, external, etc, etc.
Available on Unix, Linux, FreeBSD, Windows 95/98/2000, NT, MacOS X.



===
Archive at http://www.starport.net/~radiator/
Announcements on [EMAIL PROTECTED]
To unsubscribe, email '[EMAIL PROTECTED]' with
'unsubscribe radiator' in the body of the message.

Reply via email to