简体   繁体   English

是否可以使用python-ldap获取用户密码?

[英]Is it possible to use python-ldap get user's password?

As title said, I want to use python_ldap to get user's password. 如标题所述,我想使用python_ldap来获取用户的密码。

Here is python-ldap reference, http://www.python-ldap.org/doc/html/index.html 这是python-ldap参考, http: //www.python-ldap.org/doc/html/index.html

I didn't find any function to get user's password. 我没有找到获取用户密码的任何功能。

Is there anybody do the same thing like me? 有没有人像我一样做同样的事情?

And is it possible to get user's password? 是否可以获取用户密码?

No system that is designed to be secure will allow access to clear-text passwords. 没有设计为安全的系统将允许访问明文密码。 In fact, the system won't even know the clear-text password. 实际上,系统甚至都不知道明文密码。

You might want to re-think exactly what you are trying to do. 您可能想重新考虑您要尝试做的事情。

No, an ldap server will not send out passwords, plain or encrypted. 否,ldap服务器将不会发送普通密码或加密密码。 You can only write them if you provide the correct credentials. 如果您提供正确的凭据,则只能编写它们。

Usually you query an LDAP directory for a given organizational unit, common name, etc. and find things like passwords as attributes. 通常,您在LDAP目录中查询给定的组织单位,通用名称等,并找到诸如密码之类的属性。 It means you have to know something about the LDAP schema. 这意味着您必须了解有关LDAP模式的知识。 There's nothing in your question to indicate that you do. 您的问题中没有任何内容表明您愿意。

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

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