...
How the Lookup Stack Works
Startup
First the Lookup class object is constructed
This loads the configuration from the config Object.
...
A loop is made going through each plugin in the authentication config.
Lookup Init Object is created.
it runs the apicheck function if this says they are compatible then it will run the init function, after this it will run the register_callback_routines function. The data from this function is then parsed onto the register_callback function
...
The userlookup function is called with a userlookupdata object with all known data set & the settings for the lookup set in , this is the start of the lookup procedure.
...
PreUserlookup
This is run with a preuserlookup object
UserLookup
This is run with a userlookup object after each pass through this it will run a callback on the usertranlatelookup which gets parsed the returned userlookup object
...
PostUserLookup
This is run with a postuserlookup object after this is run it checks if the lookups failed or not and sets the appropriate quick check flags, it then sees if it got multiple results and if so sets the unreliable flag.
...