Skip to Main Content

Integration

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Problem user level authentication - AUTHSVR/USER_AUTH/ACL/MANDATORY_ACL

915367Mar 27 2012 — edited Apr 5 2012
Hello All,
I think I am too close to my problem.

We are trying to implement security using the following configuration:

UBBConfig:
====================================
*Resources
...
SECURITY ACL (or MANDATORY_ACL or USER_AUTH)
AUTHSVC "..AUTHSVC" ("AUTHSVC" for USER_AUTH)
...

*Groups
"AUTHGRP" LMID="simple" GRPNO=1
...

*Servers
"AUTHSVR" SRVGRP="AUTHGRP" SRVID=1 CLOPT="-A"
simpsrv ...
...
====================================

tmloadcf UBBConfig
asks for application password:
I set it = app1234

I add a group: tpgrpadd -g 10 TPGRP1
I add a user: tpusradd -g 10 -c TPCLI1 TPUSR1
assign password: usr1234

Then tmboot -y

In simpcl.c I do the following before making a tpcall to TOUPPER in simpsrv:
strcpy(userID, argv[2]);
strcpy(appPassword, argv[3]);
strcpy(clientID, argv[4]);
/* Attach to System/T as a Client Process */
int sizeOfTPINIT = sizeof (TPINIT);
TPINIT pTPINIT = (TPINIT) tpalloc("TPINIT", NULL, sizeOfTPINIT);
strcpy(pTPINIT->usrname, userID);
strcpy(pTPINIT->passwd, appPassword);
strcpy(pTPINIT->cltname, clientID);

int retVal = tpinit(pTPINIT);
if (retVal == -1)
return ERROR;
else
go ahead and do tpcall to TOUPPER

on executing the client like the following I get authentication failure.
Cannot find any solution. Is there something I am missing?

$ ./simpcl hello TPUSR1 app1234 TPCLI1
234321.voyager!AUTHSVR.3191.2183915264.0: CMDTUX_CAT:4130: INFO: Authentication failed for user TPUSR1/TPCLI1
234321.voyager!?proc.3818.1365624576.0: 03-26-2012: Tuxedo Version 11.1.1.2.0, 64-bit
234321.voyager!?proc.3818.1365624576.0: LIBTUX_CAT:6311: ERROR: tpcall(authsvc) failed in init_sec_context, TPESVCFAIL - application level service failure
234321.voyager!?proc.3818.1365624576.0: LIBTUX_CAT:6247: ERROR: Unable to establish security context. Error code 70, minor_status 4294967289
234321.voyager!?proc.3818.1365624576.0: LIBTUX_CAT:6234: ERROR: Authentication fails with error code 70
Tpinit failed: TPEPERM - bad permissions


Thanks and Regards,
Mrugendra

P.S.
The above trial was on Linux (Debian 64bit).
I have tried it on TUXEDO10gR3 (32bit) on Solaris as well with the same result

Edited by: user1912100 on Mar 26, 2012 11:56 PM
This post has been answered by Todd Little-Oracle on Mar 27 2012
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 3 2012
Added on Mar 27 2012
5 comments
1,475 views