I am not a programmer by any means so thats a little over my head, unless you know where someone has already done this and they have scripts or code to offer?
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Tracy Sent: Tuesday, June 03, 2003 4:39 PM To: [EMAIL PROTECTED] Subject: [xmail] External Password Authentication Sorry for the new mail/thread, I lost the original when my mail client crashed.... Seems to me that if you just want to do authentication of POP3 and SMTP user accounts, and you're running a single NT domain and mail domain, you could do that easily enough using External Authentication. As I understand it, you would need to set up a .tab file for the domain in your <mailroot>\userauth\pop3 (and smtp) folder with the following contents: "userauth" "NTAuth" "@@USER" "@@PASSWD" "yourNTdomain" Where "NTAuth" is the name of a small C program that takes the user name ("@@USER"), password ("@@PASSWD"), and your NT domain name ("yourNTdomain") as arguments and authenticates them against the NT domain (for instance, using LogonUser). The C code to do this shouldn't be hard - something along the lines of (untested code follows): #include "stdafx.h" int main(int argc, char* argv[]) { BOOL ValidUser = -1; HANDLE hToken = 0; ValidUser = LogonUser(argv[0], argv[2], argv[1], LOGON32_LOGON_NETWORK, LOGON32_PROVIDER_DEFAULT, *hToken); if (ValidUser) CloseHandle(hToken); return (int)ValidUser; } Anyway, I *think* that would work.... Might give it a whirl and see... - To unsubscribe from this list: send the line "unsubscribe xmail" in the body of a message to [EMAIL PROTECTED] For general help: send the line "help" in the body of a message to [EMAIL PROTECTED] --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.486 / Virus Database: 284 - Release Date: 5/29/2003 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.486 / Virus Database: 284 - Release Date: 5/29/2003 - To unsubscribe from this list: send the line "unsubscribe xmail" in the body of a message to [EMAIL PROTECTED] For general help: send the line "help" in the body of a message to [EMAIL PROTECTED]
