简体   繁体   English

存储Active Directory的管理员密码

[英]Storing the Manager Password of Active Directory

I am setting up the AD(LDAP) in spring; 我将在春季设置AD(LDAP); I have seen examples of storing the manager's(admin) password of the LDAP server in the properties file so that LDAPContextSource can be instantiated during the start up; 我已经看到了将LDAP服务器的管理员密码(admin)存储在属性文件中的示例,以便可以在启动过程中实例化LDAPContextSource。 For AD, I am kind of scared/feared of storing the manager's (admin) password in the properties; 对于AD,我很害怕/害怕在属性中存储经理的密码。 I can think of storing the password in the system's DB; 我可以考虑将密码存储在系统的数据库中。 but can anyone tell me the best way of doing this? 但是有人能告诉我这样做的最好方法吗?

Wherever you put it you will have the same problem. 无论放在哪里,都会遇到同样的问题。 You can put it into the database but then you will probably want to encrypt it, so then you have the problem of where to store the key, and on and on. 您可以将其放入数据库中,但是随后您可能需要对其进行加密,因此就遇到了在何处以及不停地存储密钥的问题。 I wouldn't look beyond putting it into the applications configuration ( not source code, eg a .properties file). 我只希望将其放入应用程序配置中( 而不是源代码,例如.properties文件)。 Physical security of the server is the real answer here. 服务器的物理安全性是这里的真正答案。

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

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