Hi,

Is it possible for a PostAuthHook to identify which of multiple AuthBy 
methods in a realm have triggered it?

I have a ContinueWhileReject realm with Authbys of FILE, then LDAP, then 
RADIUS. What I'd like to do is have a postauthhook subroutine react only to 
successful LDAP authentications...

The hook itself writes the user details into the file consulted by the AuthBy 
File - i.e. it is effectively a cache of successful LDAP lookups. Obviously I 
don't want the hook triggered by a success against the initial cache file 
lookup (!), nor do I want successful proxy RADIUS authentications written to 
the cache.

Any hints/help? All I can think of at the moment is transferring the hook 
code directly into the LDAP module itself, which I'd rather not do since I'd 
like to be able to turn off the cacheing easily (i.e. by commenting out the 
postauthhook line of the cfg and restarting).

M.

--
Mark O'Leary, Manchester Computing, UK
PGP Key and Further Details: 
http://lucy.mcc.ac.uk/mark/mark.html

===
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