on 10-22-2008 1:40 PM
Hello all,
we want to migrate a custom login module, developed using "JAAS Login Modules For WAS6_40.pdf" into our NWDI.
Therefor we created two new DCs, a plain Java for Login Module Code and a J2EE Server Component Library for deployement. How can i reference the JAR of Java for Login Module Code?
Regards Oliver
Oliver,
check these links
http://help.sap.com/saphelp_nw70/helpdata/en/46/3ce3e4df201d63e10000000a11466f/frameset.htm
Thanks
Bala Duvvuri
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Bala,
thanks for reply, but i think there is a missunderstanding, sry when my question was missleading. We do not have external libraries involved. We have two DCs
1. Java DC: Containing code of of LoginModule (extend AbstractLoginModule)
2. J2EE Server Library DC: Used to deploy Java DC on WebAS (SDA)
This was developed following the guide "JAAS Login Modules For WAS6_40.pdf" using NWDS but not using NWDI.
Therefor the JAVA DC was referenced to the J2EE Server Library by using the "server/provider.xml". This is not possible anymore, when using the NWDI. So my question is more or less, how to develop and deploy a custom login module usiong the NWDI.
Regards Oliver
Hello Pascal,
yes it`s working. I was just confused, cause in NWDI for "J2EE Server Component: library" there is no server/provider.xml anymore, and the Public Part of Java DC is containing the package tree(s), while in a WebService project the Public Part is type EJB-JAR. I was looking for something similar in Java DC, but did not find.
Anyway, now it is working, but we have another problem, we are using "com.sap.security.core.logon.imp.SecurityPolicy" in our LoginModule, e.g. for SecurityPolicy.USER_IS_CURRENTLY_NOT_VALID message.
But when i try to add "com.sap.security.core.sda" as Used DC, i get an "Invalid dependency" error. Do you know why?
Thanks and regards Oliver
Hello Pascal,
the built and the deployment of the LoginModule now works with the NWDI. Unfortunatly we get a strange behaviour, when referencing the Security provider to the library deployed with NWDI. When try to login, we get the message:
Login Failure: all modules ignored
When referencing to old manually deployed LoginModuleLibrary, login works as expected. Both libraries contain the same classes, only difference: Library name and JAR name.
Library "old": br.com~CompassLoginLibrary ->CompassLogin.jar
Library NWDI:br.comcompasslogin_module_library -> br.comcompasslogin_module~libraryjar.jar
Does the classloader have problems with the JAR name? I don`t get any error message in any log. If i change the LoginModuleClassLoader reference back to "library:br.com~CompassLoginLibrary" everything works as expected.
Regards Oliver
Hi Olivier,
I'm having the exact same issue as you are having. I've built a SAML Mapping Module as a project in NWDS and deployed manually with SDM. When I moved it into NWDI, I get the same behaviour as you.
First of all, I think it's to do with the missing entries in provider.xml file (which is generated automatically). But I can't see any exceptions in the logs that help me very much. All I'm thinking is to configure the J2EE Library DC so that the provider.xml contains the correct references. But how??
Regarding your problem with the core security.sda DC, I don't think the ACLs on that DC allows you to directly use it. It's by design. You can use the API, though... Maybe it contains some interface to get the required constants.
.: HP
Hi Oliver,
I managed to fix this. As Pascal mentiones, the UsedDC was the key here. You just need to specify weak runtime usage towards security_api interface and also com.sap.mw.jco library (in addition to "at build time"). The generated provider.xml file then contains the neccessary references and your login module works.
Hope it helps!
.: HP
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.