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
--转自