0?参数 [0]:..。public static void main(String[] args) throws IOException, TimeoutException{if (args.length==0) { System.out.println("java -jar tacacs.jar "); }else{Str" /> exampleAuthenPAP 不工作 exampleAuthenPAP does not work[TACACS]-开源讨论-调试网
发表文章

[Java] exampleAuthenPAP 不工作 exampleAuthenPAP does not work[TACACS]

ceprateek 2017-10-9 32

公共静态空主 (字符串 [] 参数) 抛出抛出, TimeoutException
{
如果 (参数长度 == 0) {System.out.println ("java jar tacacs+. jar");}
其他
{
字符串主机 = 参数长度 > 0?参数 [0]: null;
字符串键 = "";
TacacsClient tc = 新 TacacsClient (主机、密钥);

		// substitute another example here for testing
		exampleAuthenPAP(args, tc);
		// If you run another command, first check tc.isStillConnected().
		tc.shutdown();
	}
}

exampleAuthenPAP 表示登录失败, 无法使用有效的用户凭据。

原文:

public static void main(String[] args) throws IOException, TimeoutException
{
if (args.length==0) { System.out.println("java -jar tacacs.jar "); }
else
{
String host = args.length>0 ? args[0] : null;
String key = "";
TacacsClient tc = new TacacsClient(host, key);

		// substitute another example here for testing
		exampleAuthenPAP(args, tc);
		// If you run another command, first check tc.isStillConnected().
		tc.shutdown();
	}
}

The exampleAuthenPAP says login failed for a valid user credential.

相关推荐
最新评论 (5)
AugurSystems 2017-10-9
1

你好。 我不认为任何更改, 将打破 PAP 登录。 请验证测试中使用的 "主机" 和 "密钥" 是否也正确?

原文:

Hi. I don't think anything changed that would have broken PAP login. Could you please verify that the 'host' and 'key' that were used in your test are also correct?

ceprateek 2017-10-9
2

嗨, 谢谢你抽出时间来回应。

服务器的详细信息是正确的, 我想知道用户是否在服务器中定义, 因为他们应该是。我已经定义了 tac_plus 中的用户, 如下所示:
用户 = 管理员 {
登录 = 明文 Cisco123!
成员 = vtsadministrator
}

这是您在 PAP 登录时看到的问题吗?

谢谢
Prateek

原文:

Hi, Thanks for taking the time for the response.

The server details are correct, I was wondering if the users are defined in the server as they should be. I have defined users in tac_plus.conf as follows:
user = admin {
login = cleartext Cisco123!
member = vtsadministrator
}

Is this an issue you see for PAP login ?

Thanks
Prateek

janicki 2017-10-9
3

我不是很熟悉 tac_plus, 但我找到了一个描述该文件的页面: http://manpages.ubuntu.com/manpages/trusty/man5/tac_plus.conf.5.html我复制了下面用户属性的描述。 注意 "pap" 和 "opap" 属性。

                  user = bart {
                      arap = cleartext "arap password"
                      chap = cleartext "chap password"
                      enable = <password_spec>
                      pap  = cleartext "inbound pap password"
                      opap = cleartext "outbound pap password"
                      pap  = des <des_string>
                      pap  = file <filename>
                      pap  = PAM
                      login = <password_spec>
                      global = cleartext "outbound pap password"
                  }

但是, 这超出了我们的 tacacs+ + Java 库的范围。 您可能需要在服务器配置中找到其他来源的帮助, 对不起。 我们没有测试我们的库 Tac_plus 实现的 tacacs+ +, 所以我们没有经验配置该服务器。

原文:

I'm not personally familiar with tac_plus.conf, but I found a page that describes the file: http://manpages.ubuntu.com/manpages/trusty/man5/tac_plus.conf.5.html I copied the description of the user attributes below. Notice the 'pap' and 'opap' properties.

                  user = bart {
                      arap = cleartext "arap password"
                      chap = cleartext "chap password"
                      enable = <password_spec>
                      pap  = cleartext "inbound pap password"
                      opap = cleartext "outbound pap password"
                      pap  = des <des_string>
                      pap  = file <filename>
                      pap  = PAM
                      login = <password_spec>
                      global = cleartext "outbound pap password"
                  }

However, this is beyond the scope of our TACACS+ Java library. You may need to find another source for help with your server's config, sorry. We didn't test our library against the Tac_plus implementation of TACACS+, so we have no experience configuring that server.

ceprateek 2017-10-9
4

你好

这肯定有帮助, 我可以使用服务器的 PAP。
出于文档目的, 我将用户定义为:
用户 = 操作员 {
登录 = 明文 operator123
pap = 明文 "operator123"
}

原文:

Hi,

This definitely helped and I was able to use the server for PAP.
For documentation purpose I defined the user as:
user = operator {
login = cleartext operator123
pap = cleartext "operator123"
}

janicki 2017-10-9
5

我很高兴你想通了! 谢谢你报告的结果, 祝你的项目好运。

原文:

I'm glad you figured it out! Thanks for reporting the result, and good luck with your project.

返回
发表文章
ceprateek
文章数
1
评论数
2
注册排名
60748