[转帖]Tuxedo Problem user level authentication_MQ, Tuxedo及OLTP讨论区_Weblogic技术|Tuxedo技术|中间件技术|Oracle论坛|JAVA论坛|Linux/Unix技术|hadoop论坛_联动北方技术论坛  
网站首页 | 关于我们 | 服务中心 | 经验交流 | 公司荣誉 | 成功案例 | 合作伙伴 | 联系我们 |
联动北方-国内领先的云技术服务提供商
»  游客             当前位置:  论坛首页 »  自由讨论区 »  MQ, Tuxedo及OLTP讨论区 »
总帖数
1
每页帖数
101/1页1
返回列表
0
发起投票  发起投票 发新帖子
查看: 3128 | 回复: 0   主题: [转帖]Tuxedo Problem user level authentication        下一篇 
dream0110
注册用户
等级:中士
经验:242
发帖:87
精华:0
注册:2012-2-15
状态:离线
发送短消息息给dream0110 加好友    发送短消息息给dream0110 发消息
发表于: IP:您无权察看 2014-11-3 15:11:26 | [全部帖] [楼主帖] 楼主

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


--转自
北京联动北方科技有限公司




赞(0)    操作        顶端 
总帖数
1
每页帖数
101/1页1
返回列表
发新帖子
请输入验证码: 点击刷新验证码
您需要登录后才可以回帖 登录 | 注册
技术讨论