Giter VIP home page Giter VIP logo

🙋 问题交流。。。 想交流下,这边 明文密码 在mysql 和ldap 是怎么加密的流程,我现在想 对密码加密 然后去对比ldap的密码 或者是 ldap密码解密 然后对比明文密码 about go-ldap-admin HOT 7 CLOSED

backlash-go avatar backlash-go commented on May 29, 2024
🙋 问题交流。。。 想交流下,这边 明文密码 在mysql 和ldap 是怎么加密的流程,我现在想 对密码加密 然后去对比ldap的密码 或者是 ldap密码解密 然后对比明文密码

from go-ldap-admin.

Comments (7)

eryajf avatar eryajf commented on May 29, 2024

您好 @backlash-go👋,我已收到您的反馈,我将安排时间考虑您提交的信息并进行回复。-- 这条信息是由自动回复的机器人发出的。

Hello @backlash-go. I have received your feedback, and I will arrange time to consider the information you submitted and reply. -- This message is sent by an automatic reply robot.

from go-ldap-admin.

eryajf avatar eryajf commented on May 29, 2024

ldap里边使用 ssha 的加密方式,这个加密不可逆,无法解出明文密码。对应方法为:

func EncodePass(rawPassPhrase []byte) string {

MySQL中的加密方法为RSA,下边对应还有一个解密的方法(这个方法算是预留的,理论上MySQL也应该使用不可逆的加密方式,只不过这里选择了一个可逆的方案。)。

func NewGenPasswd(passwd string) string {

from go-ldap-admin.

backlash-go avatar backlash-go commented on May 29, 2024

ldap里边使用 ssha 的加密方式,这个加密不可逆,无法解出明文密码。对应方法为:

func EncodePass(rawPassPhrase []byte) string {

MySQL中的加密方法为RSA,下边对应还有一个解密的方法(这个方法算是预留的,理论上MySQL也应该使用不可逆的加密方式,只不过这里选择了一个可逆的方案。)。

func NewGenPasswd(passwd string) string {

那同样的明文密码加密 可以 获得相同的 加密之后的密码吗? 要不然这边ldap 接 自己开发的登录平台 好像没法校验了

from go-ldap-admin.

eryajf avatar eryajf commented on May 29, 2024

你看看加密的时候使用两种方式,那么加密后的密文肯定也是不一样的。

ldap对接的登陆平台,登陆的时候,由ldap服务端校验,不必操心这个事儿。

from go-ldap-admin.

backlash-go avatar backlash-go commented on May 29, 2024

你看看加密的时候使用两种方式,那么加密后的密文肯定也是不一样的。

ldap对接的登陆平台,登陆的时候,由ldap服务端校验,不必操心这个事儿。

大佬意思是。使用ldap.bind 使用查用户的dn 然后 bind 用户dn 加上原始密码去 做校验是吧

from go-ldap-admin.

eryajf avatar eryajf commented on May 29, 2024

你看看加密的时候使用两种方式,那么加密后的密文肯定也是不一样的。
ldap对接的登陆平台,登陆的时候,由ldap服务端校验,不必操心这个事儿。

大佬意思是。使用ldap.bind 使用查用户的dn 然后 bind 用户dn 加上原始密码去 做校验是吧

事实上ldap的登陆校验,是ldap server自身做的事情,比如你自己的一个平台,想要对接ldap,只要确保配置了admin的认证信息,那么登陆的时候,会针对用户进行校验。这块儿你实践一下就理解了

from go-ldap-admin.

backlash-go avatar backlash-go commented on May 29, 2024

你看看加密的时候使用两种方式,那么加密后的密文肯定也是不一样的。
ldap对接的登陆平台,登陆的时候,由ldap服务端校验,不必操心这个事儿。

大佬意思是。使用ldap.bind 使用查用户的dn 然后 bind 用户dn 加上原始密码去 做校验是吧

事实上ldap的登陆校验,是ldap server自身做的事情,比如你自己的一个平台,想要对接ldap,只要确保配置了admin的认证信息,那么登陆的时候,会针对用户进行校验。这块儿你实践一下就理解了
ok thank you

from go-ldap-admin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.