Novell Home

Talk:Novell Access Manager Developer Tools and Examples

From Developer Community

I spent some time creating a custom Auth Class for AM3, and want to list some tricks I found useful during my process.

1. Unlike one of the examples, you can't put your custom auth class in the same package as the built-in ones (com.novell.nidp.authentication.local). I believe this didn't work for me. When I put it in a new package (mytestClass.myClass) it worked.

2. You can print logs to the IDP catalina.out file with NIDPLog.trace ("String"). For this, import import com.novell.nidp.logging.NIDPLog;

3. In order to get the class to compile, you will need the nidp.jar file, as well as the servlet-api.jar file (on the IDP under the /opt/novell/devman/jcc/lib folder.

4. Don't forget to run the setPrincipal(principal) function once you have successfully authenticated a user. I didn't see this in the examples, but it was required for my class to work.

Jesse Smith

Senior Developer

Novacoast

jsmith[at]novacoast.com


I also noticed that the sample at:

http://developer.novell.com/documentation/samplecode/nacm_sample/

is out of date with the samples in the download. It still uses the "authenticate" vs the "doAthetnicate" method.

Novell® Making IT Work As One

© 2009 Novell, Inc. All Rights Reserved.