8.05 and prior - NO. 8.11 don't know.
Work around for external database
Create an odbc connector the same as the IMAILSECDB. I let Imailsecdb be
strictly for IMAIL
a second connector is for personal apps.

Then use something like these ASP scripts.

***************** submitldif.asp ************

<%
Dim DataConn
Dim CmdSimpleSelect
Dim MYSQL
Dim strUser
Dim strPass
Dim strPass2
Dim AspPass
Dim AspFlags
Dim OutputWeb
Dim AcctDisable
strUser="userunknown"
strpass="passunknown"
strpass2="passunknown"
strUser = Trim(Request("user"))
strPass = Trim(Request("pass1"))
strPass2 = Trim(Request("pass2"))
Set DataConn = Server.CreateObject("ADODB.Connection")
Set CmdSimpleSelect = Server.CreateObject("ADODB.Recordset")
DataConn.Open "DSN=ILOOK"
MYSQL = "SELECT USERID, PASSWORD, MAILADDR, FLAGS FROM mail_ameripride_org
where (USERID='" & strUser & "') OR (MAILADDR='" & strUser & "')"
CmdSimpleSelect.Open MYSQL, DataConn
if (CmdSimpleSelect.EOF) then
outputweb=false
Else
AspPass=trim(CmdSimpleSelect("PASSWORD"))
AspFlags=CmdSimpleSelect("Flags")
If aspFlags >= 4096 then aspFlags=AspFlags-4096
If aspFlags >= 1024 then aspFlags=AspFlags-1024
If aspFlags >= 512 then aspFlags=AspFlags-512
If aspFlags >= 256 then aspFlags=AspFlags-256
If aspFlags >= 128 then aspFlags=AspFlags-128
If aspFlags >= 4 then aspFlags=AspFlags-4
if aspFlags >= 2 then aspFlags=AspFlags-2
AcctDisable=False
if aspFlags=1 then AcctDisable=True
Outputweb=false
If (AcctDisable=False) and (AspPass=strPass) THEN Outputweb=true
End if
if strPass <> strPass2 then outputweb=false
If Outputweb=true then Response.Redirect
"http://mail.ameripride.org/user-download-area/addrbkoe.ldif";
IF Outputweb=False then Response.Redirect
"http://mail.ameripride.org/asp/loginldif.asp";
CmdSimpleSelect.Close
Set CmdSimpleSelect = Nothing
DataConn.Close
Set DataConn = Nothing
%>

***** loginldif.asp **********************

<html>
<head>
<title>Check Password Page - LDIF Download</title>
</head>
<body>
<h1>LDIF Address Book Download</h1>
<hr>
<p>This is the LDIF address book download area. Please enter your username
and
password (twice) to download the address book for importing in to Outlook
Express. We need this information to verify that you have rights to download
the
private information...</p>
<form METHOD="POST" ACTION="submitldif.asp">
<p>Please enter your username and password:</p>
<blockquote>
<table>
<tr>
<td ALIGN="right"><em>Email User Name (every before the @)</em></td>
<td><input TYPE="TEXT" NAME="user" SIZE="32" MAXLENGTH="50"></td>
</tr>
<tr>
<td ALIGN="right"><em>Email Password</em></td>
<td><input TYPE="PASSWORD" NAME="pass1" SIZE="32" MAXLENGTH="50"></td>
</tr>
<tr>
<td ALIGN="right"><em>Confirm Email Password</em></td>
<td><input TYPE="PASSWORD" NAME="pass2" SIZE="32" MAXLENGTH="50"></td>
</tr>
</table>
</blockquote>
<input TYPE="SUBMIT" VALUE="Submit Form"> <input TYPE="RESET" VALUE="Reset
Form">
</form>
<hr>
</body>
</html>

----- Original Message ----- 
From: "Robert Radtke" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, June 24, 2004 9:43 AM
Subject: [IMail Forum] LDAP Authentication


> Hello,
>
> Does anyone know if the LDAP database contains any password information? I
> would like to use the Imail LDAP server as an authentication source for a
> web application, but it doesn't look like there is enough data stored by
> default to do this.
>
> Has anyone tried anything like this?
>
> Thanks,
>
> Robert
>
>
> To Unsubscribe: http://www.ipswitch.com/support/mailing-lists.html
> List Archive: http://www.mail-archive.com/imail_forum%40list.ipswitch.com/
> Knowledge Base/FAQ: http://www.ipswitch.com/support/IMail/
>
> *Scanned for viruses by Declude Virus*
>
>


*Scanned for viruses by Declude Virus*


To Unsubscribe: http://www.ipswitch.com/support/mailing-lists.html
List Archive: http://www.mail-archive.com/imail_forum%40list.ipswitch.com/
Knowledge Base/FAQ: http://www.ipswitch.com/support/IMail/

Reply via email to