Question
I have implemented the following infrastructure on our corporate Intranet TWiki site:
An automated task generates a list of users (valid-twiki-users.txt), from Active Directory, who are authorized to access the TWiki site. In addition, all *Group.txt files are created and populated with the users from our Active Directory. Anyone who logs onto the corporate domain will have their logon credentials sent to Apache by the browser via
mod_ntlm2. Apache will then populate the
REMOTE_USER variable which is used by TWiki.
A custom login was created which does the following:
- If
REMOTE_USER is not set, it will deny access to the site and display an error page. If REMOTE_USER is set, it then searches that valid-twiki-users.txt file.
- If the lan id is not found, it will deny access to the site and display an error page.
- If the lan id is found, it then determines if the user is already registered. If they are, it then passes to the standard TWiki logon and they are logged in. If not, it passess key fields created in the valid-twiki-users.txt file and passes that to the TWiki registration process. The user is then automatically registered and logged in.
Essentially, I have disabled "Anonymous" access to the site.

Since anonymous access is disabled, mailnotify no longer works. It appears as though it needs to login to the site. Is there a way around this? Also, what other functions require the ability to login to perform their functions?
Any help on this would be greatly appreciated.
Environment
--
JosephMecca - 04 Jun 2007
Answer
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.
I was able to get this working. For those of you who are interested: I had to set a flag to identify the script as being run by the command line. If so, the custom login will not execute and mailnotify will be able to run.
--
JosephMecca - 11 Jun 2007