java - JBoss7 - How to access VAULT password in code
问题描述
Is there a defined way to decrypt a VAULT
password in a java util class?
I have a bind credential for an LDAP
login setup on a jboss5 instance and I need to convert it to a jboss 7 instance, but i am getting an Authentication exception error.
Error
ERROR [stderr] (default task-3) javax.naming.AuthenticationException: [LDAP: error code 49 - 80090308: LdapErr: DSID-0C09042A, comment: AcceptSecurityContext error, data 52e, v3839 ]
local.build.properties
ldap.auth.bindCredential=VAULT::authdevBindCred::password::1
Util.java
String ldapPass = System.getProperty("ldap.auth.bindCredential");
...
ldapEnv = new Hashtable<String, String>(11);
ldapEnv.put(Context.SECURITY_CREDENTIALS, ldapPass);
解决方案
推荐阅读
- babeljs - Babel:尝试使用中继预设时出错'找不到相对于目录的预设“中继”'
- python - Django SingleObjectMixin:找不到页面(404)
- php - 503 在 PHP 中传递 URL 中的句点时服务不可用
- regex - 如何使用条件运算符在 perl 映射操作中放置正则表达式
- python - Error Scrapy - Deferred 中未处理的错误:
- excel - excel中复制操作的功能
- java - 按下并选择另一个按钮后休息活动意图值?
- selenium - 在接受警报之前无法使用 getText() 方法从模式对话框中获取文本
- c++ - 在 CMakeLists.txt 中添加 FLTK 库
- boost - 来自代码::blocks 17.12 的错误,其中包含 MiGw 安装程序 gcc