HELP Debugging OEREALM-FORM Authentication

Posted by Paul Koufalis on 14-Aug-2014 16:02

This works on my laptop but not on my Linux box with a regular Tomcat environment.  I may very well have forgotten a step:

- Changed web.xml to user oerealm-form

- Changed appsec-oerealm-form to point to my AppServer and the appropriate class name

- Deployed the class files to my AppServer PROPATH directory 

- Changed log4j.properties for DEBUG logging

- I am using static/auth/login.html

- static/auth/j_spring_security_check is returning "Unauthorized"

In adapters/logs/myapp.log I see:

2014-08-14 15:49:45,469 1540327 [http-nio-8080-exec-87] ERROR com.progress.rest.security.OERealmUserDetailsImpl loadUserByUsername - Username load error for root re: general error: org.springframework.security.core.userdetails.UsernameNotFoundException: User account not found

2014-08-14 15:49:45,469 1540327 [http-nio-8080-exec-87] ERROR com.progress.rest.security.OERealmUserDetailsImpl loadUserByUsername - Username load error for root re: general error: org.springframework.security.core.userdetails.UsernameNotFoundException: User account not found

In my Apsv.server.log I see:

[14/08/14@16:49:45.468-0400] P-016268 T-149772064 3 AS AS requestID= <REQ|null|00000008>
[14/08/14@16:49:45.468-0400] P-016268 T-149772064 4 AS AS -- TRACE: Open4GLWriteLast 72. (8401)
[14/08/14@16:49:45.468-0400] P-016268 T-149772064 4 AS AS -- TRACE: Open4GLWrite 72. (8402)
[14/08/14@16:49:45.468-0400] P-016268 T-149772064 4 AS AS -- TRACE: cso4GL: Before loadProc() (8458)
[14/08/14@16:49:45.468-0400] P-016268 T-149772064 4 AS AS -- TRACE: STATELESS: locating proxy-id 69733a78 (sp2kRealm:ValidateUser) for operation 16 (8458)
[14/08/14@16:49:45.468-0400] P-016268 T-149772064 3 AS AS -- TRACE: SINGLETON Non-Void Method 'sp2kRealm:ValidateUser' START (16820)
[14/08/14@16:49:45.468-0400] P-016268 T-149772064 4 AS AS -- TRACE: STATELESS: located proxy-id 69733a78 (sp2kRealm:ValidateUser) for operation 16 (8458)
[14/08/14@16:49:45.468-0400] P-016268 T-149772064 4 AS AS -- TRACE: cso4GL: After successful loadProc() (8458)
[14/08/14@16:49:45.468-0400] P-016268 T-149772064 4 AS AS -- TRACE: Set open 4GL server state to 2. (8400)
[14/08/14@16:49:45.468-0400] P-016268 T-149772064 4 AS AS -- TRACE: cso4GL: In execProc() - before execution. (8458)
[14/08/14@16:49:45.468-0400] P-016268 T-149772064 4 AS AS -- TRACE: STATELESS: running stateless internal function on proxy-id 69733a78 (8458)
[14/08/14@16:49:45.468-0400] P-016268 T-149772064 2 AS 4GLTRACE Invoke ValidateClient [ValidateUser - sp2kRealm @ 469]
[14/08/14@16:49:45.468-0400] P-016268 T-149772064 3 AS 4GLTRACE Return from ValidateClient "yes" [sp2kRealm]
[14/08/14@16:49:45.468-0400] P-016268 T-149772064 3 AS AS -- TRACE: SINGLETON Non-Void Method END SUCCESS (16821)
[14/08/14@16:49:45.469-0400] P-016268 T-149772064 4 AS AS -- TRACE: cso4GL: In execProc() - successful execution. (8458)
[14/08/14@16:49:45.469-0400] P-016268 T-149772064 4 AS AS -- TRACE: cso4GL: In execCall() - execProc() success. (8458)
[14/08/14@16:49:45.469-0400] P-016268 T-149772064 4 AS AS -- TRACE: Set open 4GL server state to 3. (8400)
[14/08/14@16:49:45.469-0400] P-016268 T-149772064 4 AS AS Server Message state = MSGSTATE_SENDRESP
[14/08/14@16:49:45.469-0400] P-016268 T-149772064 4 AS AS -- TRACE: Set open 4GL server state to 1. (8400)
[14/08/14@16:49:45.469-0400] P-016268 T-149772064 4 AS AS -- TRACE: open4GLRead 51. (8403)
[14/08/14@16:49:45.469-0400] P-016268 T-149772064 4 AS AS Server Message state = MSGSTATE_FINISHRQ
[14/08/14@16:49:45.469-0400] P-016268 T-149772064 4 AS AS Server Message state = MSGSTATE_IDLE

On my laptop it continues doing a bunch more calls to the hybridrealm class.

I hope it's something dumb.

All Replies

Posted by Paul Koufalis on 14-Aug-2014 19:35

OMG I'm going to kill someone (i.e. myself!). I forgot to write in my notes that you ABSOLUTELY have to assign  _USER._user_number.  Arrrggghhh!!!!

I opened Mike's "OERealm-draft.pdf" and there it was on page 2:

2. Execute a request to locate the user account by name and return the account's numerical identifier

This thread is closed