简体   繁体   English

Java-JNDI / Active Directory / Kerberos / WebLogic Server-密码配置

[英]Java - JNDI / Active Directory / Kerberos / WebLogic Server - Password Configuration

I want to fetch data from an Active Directory using Java and JNDI from my EJB. 我想使用Java和JNDI从我的EJB从Active Directory中获取数据。 Doing this search I need to define a user and a password. 进行此搜索时,我需要定义用户和密码。 I was thinking of creating a service account (for my server) in the AD. 我当时正在考虑在广告中创建一个服务帐户(为我的服务器)。

I will also be using Kerberos protocol and WebLogic Server. 我还将使用Kerberos协议和WebLogic Server。 As I understand it now, I need to create a keytab file that will contain this service account's credentials. 据我了解,我需要创建一个密钥表文件,其中将包含该服务帐户的凭据。 This keytab file will then be configured in the WebLogic Server? 然后将在WebLogic Server中配置此密钥表文件吗?

So, this means that I will have to state the username/password both for the keytab file and in my EJB ( to fetch the data from the AD using JNDI ). 因此,这意味着我将必须在keytab文件和EJB中都声明用户名/密码( 以使用JNDI从AD中获取数据 )。 What is the best approach for this? 最好的方法是什么? Can the keytab file be defined dynamically? 密钥表文件可以动态定义吗? Which would simplify changing the password and only doing this at one place. 这样可以简化更改密码并仅在一个地方进行的操作。

让您的计算机加入域,使用计算机帐户启动WebLogic Server或授予对计算机密钥表的访问权限,使用DirContextSourceFactory创建JDNI资源,然后您就可以根据需要访问AD。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM