Novell Home

OpenAdaptor and Password Expiration Notification

Novell Cool Solutions: Feature
By Andrey Karyagin

Digg This - Slashdot This

Posted: 22 Nov 2006
 

Problem

A Forum reader recently asked:

"I have some problems with Password Expiration Email Notification - can anyone help?"

And here's the response from Andrey Karyagin ...

Solution

I can offer you much more powerful approach. It is based on the open source utility named OpenAdaptor(TM). You can freely download it from http://www.openadaptor.org. It is written entirely in Java and may be used on any platform having JDK version 1.3.1 or later.

A few months ago I successfully implemented the following OA's configuration file (ldap2email.props) to obtain email notification about loginexpirationtime LDAP attribute status. Just replace loginexpirationtime with passwordexpirationtime below and adjust LDAP server and mail server parameters.

Click here to view the ldap2email.props file.

With OpenAdaptor you can easily implement your own methods to manipulate the LDAP catalogue without any programming efforts. I've successfully tested the ldap2email.props described above on my NetWare 6.5SP5 and Win2000 SP4 Advanced Server both running eDirectory 8.7.3.8.

On Win2000 i use the following batch file (ldap2email.bat) to execute OpenAdaptor:

@echo off
REM openadaptor example classpath creation script for Windows
REM and JDK jdk.1.4

set CLASSES_DIR=../classes

REM The release dir (in this case ..) is needed in the CLASSPATH for the
REM for the AFEditor to find help documentation.

set CLASSPATH=".;.."

set CLASSPATH=%CLASSPATH%;%CLASSES_DIR%/openadaptor.jar

set CLASSPATH=%CLASSPATH%;%CLASSES_DIR%/jdk_1_4/regexp.jar
set CLASSPATH=%CLASSPATH%;%CLASSES_DIR%/Tidy.jar
set CLASSPATH=%CLASSPATH%;%CLASSES_DIR%/axis.jar
set CLASSPATH=%CLASSPATH%;%CLASSES_DIR%/commons-discovery.jar
set CLASSPATH=%CLASSPATH%;%CLASSES_DIR%/commons-logging.jar
set CLASSPATH=%CLASSPATH%;%CLASSES_DIR%/commons-net-1.2.2.jar
set CLASSPATH=%CLASSPATH%;%CLASSES_DIR%/dom4j-1.5.jar
set CLASSPATH=%CLASSPATH%;%CLASSES_DIR%/edtftpj-1.5.1.jar
set CLASSPATH=%CLASSPATH%;%CLASSES_DIR%/fscontext.jar
set CLASSPATH=%CLASSPATH%;%CLASSES_DIR%/jaas.jar
set CLASSPATH=%CLASSPATH%;%CLASSES_DIR%/jakarta-oro-2.0.8.jar
set CLASSPATH=%CLASSPATH%;%CLASSES_DIR%/jaxrpc.jar
set CLASSPATH=%CLASSPATH%;%CLASSES_DIR%/jdom.jar
set CLASSPATH=%CLASSPATH%;%CLASSES_DIR%/jsch-0.1.19.jar
set CLASSPATH=%CLASSPATH%;%CLASSES_DIR%/junit.jar
set CLASSPATH=%CLASSPATH%;%CLASSES_DIR%/log4j-1.2.9.jar
set 
CLASSPATH=%CLASSPATH%;%CLASSES_DIR%/mysql-connector-java-3.0.9-stable-bin.jar
set CLASSPATH=%CLASSPATH%;%CLASSES_DIR%/providerutil.jar
set CLASSPATH=%CLASSPATH%;%CLASSES_DIR%/regexp.jar
set CLASSPATH=%CLASSPATH%;%CLASSES_DIR%/saaj.jar
set CLASSPATH=%CLASSPATH%;%CLASSES_DIR%/smack.jar
set CLASSPATH=%CLASSPATH%;%CLASSES_DIR%/xalan.jar
set CLASSPATH=%CLASSPATH%;%CLASSES_DIR%/xerces.jar
set CLASSPATH=%CLASSPATH%;%CLASSES_DIR%/xml-apis.jar
set CLASSPATH=%CLASSPATH%;%CLASSES_DIR%/xml4j.jar

REM The commented-out section of the CLASSPATH definition below
REM contains all of the third-party jar/zip files used in building
REM this openadaptor release, but which are not be distributed with
REM the release for licensing or other reasons.

set CLASSPATH=%CLASSPATH%;%CLASSES_DIR%/activation.jar
set CLASSPATH=%CLASSPATH%;%CLASSES_DIR%/mail.jar

rem echo %CLASSPATH%
java org.openadaptor.adaptor.RunAdaptor ldap2email.props A


Novell Cool Solutions (corporate web communities) are produced by WebWise Solutions. www.webwiseone.com

© 2014 Novell