2月 222016
 

缘起

现在都流行动态码认证了,ldap这个认证领域的老大还是静态密码认证,显得有些过时了,这里试图修改认证部分逻辑已支持动态密码验证。

 

相关代码: servers/slapd/bind.c

编译:

  1. CFLAGS=”-g” ./configure
    openldap依赖bdb,可以用yum安装: yum install -y db4
  2. ./make depend && make
  3. make install STRIP=”

注意: make install时默认是会去掉符号信息的;添加 STRIP=” 选项就不会去掉了(可能你也不需要make install)

开始gdb:

用户名:op->o_req_dn

密码在这里: op->o_request->oq_bind->rb_cred:

下一步就是要把密码修改,其中一部分拿到别的地方做动态密码验证,剩余部分继续给ldap来验证

 

ldap 验证逻辑:

 Posted by at 上午 11:15

 Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">

(required)

(required)

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据