cancel
Showing results for 
Search instead for 
Did you mean: 

Custom Login Module Does Not Work

Former Member
0 Kudos

Hello,

Can someone give me some suggestions on what I should look at to fix the following error. I created jaas custom login module. Within the module I authenticate against an active directory. I've put many trace statements throughout the login module code. So I can actually follow everystep of the way through the login process. The user authenticates correctly and in the commit() method of the login module, the security principal is created and added to the principals and true is returned from the method. Everything looks like it worked correctly... but the user doesn't actually get into the portal. The login screen is redisplayed. This login module is the only login module in the stack being used to authenticate. According to the tracing, everything should of worked. Does anyone have any suggestions on what I should look at?

thanks,

Keith

NW04 SP14

Accepted Solutions (0)

Answers (1)

Answers (1)

MarcelRabe
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Keith,

just out of curiousity, why did you create a jaas module for this, instead of using the out-of-the-box module?

Marcel

Former Member
0 Kudos

Marcel,

The reason we are using a custom login is we want to handle different situations when logging in, for example, if a password is expired we re-direct to a change password page that allows the user to update their password.

In our EP6 sp2 environment, this is working. I then recoded the login module so it would work in NW04, be we are having no luck.

Here is the weird thing, it works on some userid's but not on others. For example, with a userid like "kjanks" it works fine. But with a userid like "t.portal08" it fails, then your back at the login screen with the userid field displaying the userid, but the password field is empty. You can then click the login button again without doing anything else and then it works and you get in the portal. So it seems like the "." in the one userid is causing trouble.

Any Ideas?

thanks,

Keith

tim_alsop
Active Contributor
0 Kudos

We are also getting this same problem with NW04 SP14. Previously our login module was working when we were using SP12, and after the upgrade to SP14 we found our login module was not allowing passwords to be changed.

We then decided to try (on sp14) remove our login module from the 'ticket' policy in visual admin, and try using the default login module supplied by SAP - this doesn't work either when the users password needs changing. We didn't have this problem when we were running with SP12, so it looks like some change in SP14 broke the password change capability.