我尝试在运行Ubuntu 14.04的VM中设置LDAP,我也尝试安装phpldapadmin。现在,我可以访问phpldapadmin,但是当我尝试创建一个新的用户帐户时,它给了我这个错误:
尝试获取不存在的值时出错 (外观,password_hash_custom)
我已经尝试了修正建议here。我也试过搜索stackoverflow,我看到了同样的建议。不幸的是,这个错误不会消失。它好像在寻找预先存在的价值。
我按照here提供的说明设置了LDAP和phpldapadmin。我现在想知道我是否错过了一个步骤,例如我可能已经加载了某个.ldif文件或其他东西。
错误的Backtrace给出了这个:
/usr/share/phpldapadmin/lib/functions.php (444)
error (a:5:{i:0;s:74:"Error trying to get a non-existant ...)
/usr/share/phpldapadmin/lib/ds.php (81)
debug_dump_backtrace (a:2:{i:0;s:74:"Error trying to get a non-existant ...)
/usr/share/phpldapadmin/lib/PageRender.php (986)
getValue (a:2:{i:0;s:10:"appearance";i:1;s:20:"password_hash...)
/usr/share/phpldapadmin/lib/PageRender.php ()
drawFormReadWriteValuePasswordAttribute (a:2:{i:0;O:17:"PasswordAttribute":34:{s:4:"name";s...)
/usr/share/phpldapadmin/lib/Visitor.php (58)
call_user_func_array (a:2:{i:0;a:2:{i:0;O:14:"TemplateRender":9:{s:24:"...)
/usr/share/phpldapadmin/lib/PageRender.php (598)
__call (a:2:{i:0;s:4:"draw";i:1;a:3:{i:0;s:18:"FormReadWri...)
/usr/share/phpldapadmin/lib/PageRender.php (598)
draw (a:3:{i:0;s:18:"FormReadWriteValue";i:1;O:17:"Passw...)
/usr/share/phpldapadmin/lib/PageRender.php ()
drawFormValueAttribute (a:2:{i:0;O:17:"PasswordAttribute":34:{s:4:"name";s...)
/usr/share/phpldapadmin/lib/Visitor.php (58)
call_user_func_array (a:2:{i:0;a:2:{i:0;O:14:"TemplateRender":9:{s:24:"...)
/usr/share/phpldapadmin/lib/TemplateRender.php (2159)
__call (a:2:{i:0;s:4:"draw";i:1;a:3:{i:0;s:9:"FormValue";i...)
/usr/share/phpldapadmin/lib/TemplateRender.php (2159)
draw (a:3:{i:0;s:9:"FormValue";i:1;O:17:"PasswordAttribu...)
/usr/share/phpldapadmin/lib/TemplateRender.php ()
drawValueAttribute (a:2:{i:0;O:17:"PasswordAttribute":34:{s:4:"name";s...)
/usr/share/phpldapadmin/lib/Visitor.php (58)
call_user_func_array (a:2:{i:0;a:2:{i:0;O:14:"TemplateRender":9:{s:24:"...)
/usr/share/phpldapadmin/lib/TemplateRender.php (1828)
__call (a:2:{i:0;s:4:"draw";i:1;a:3:{i:0;s:5:"Value";i:1;O...)
/usr/share/phpldapadmin/lib/TemplateRender.php (1828)
draw (a:3:{i:0;s:5:"Value";i:1;O:17:"PasswordAttribute":...)
/usr/share/phpldapadmin/lib/TemplateRender.php ()
drawTemplateValuesAttribute (a:1:{i:0;O:17:"PasswordAttribute":34:{s:4:"name";s...)
/usr/share/phpldapadmin/lib/Visitor.php (58)
call_user_func_array (a:2:{i:0;a:2:{i:0;O:14:"TemplateRender":9:{s:24:"...)
/usr/share/phpldapadmin/lib/TemplateRender.php (1817)
__call (a:2:{i:0;s:4:"draw";i:1;a:2:{i:0;s:14:"TemplateVal...)
/usr/share/phpldapadmin/lib/TemplateRender.php (1817)
draw (a:2:{i:0;s:14:"TemplateValues";i:1;O:17:"PasswordA...)
/usr/share/phpldapadmin/lib/TemplateRender.php ()
drawTemplateAttribute (a:1:{i:0;O:17:"PasswordAttribute":34:{s:4:"name";s...)
/usr/share/phpldapadmin/lib/Visitor.php (58)
call_user_func_array (a:2:{i:0;a:2:{i:0;O:14:"TemplateRender":9:{s:24:"...)
/usr/share/phpldapadmin/lib/TemplateRender.php (1602)
__call (a:2:{i:0;s:4:"draw";i:1;a:2:{i:0;s:8:"Template";i:...)
/usr/share/phpldapadmin/lib/TemplateRender.php (1602)
draw (a:2:{i:0;s:8:"Template";i:1;O:17:"PasswordAttribut...)
/usr/share/phpldapadmin/lib/TemplateRender.php (1527)
drawShownAttributes (a:0:{})
/usr/share/phpldapadmin/lib/TemplateRender.php (644)
drawStepForm (a:1:{i:0;i:1;})
/usr/share/phpldapadmin/lib/TemplateRender.php (84)
visitEnd (a:0:{})
/usr/share/phpldapadmin/htdocs/template_engine.php (55)
accept (a:0:{})
/usr/share/phpldapadmin/htdocs/cmd.php (60)
include (a:1:{i:0;s:50:"/usr/share/phpldapadmin/htdocs/temp...)
我一直在扫描文件,但我无法查明问题。
非常感谢任何帮助。
其他信息: OpenLDAP版本:2.4 PHP版本:5.5
答案 0 :(得分:0)
我试着再试一次。我清除了我的ldap和phpldapadmin,然后重新安装它们。以前,除了TemplateRender.php之外,我还编辑了/ usr / share / phpldapadmin / lib中的functions.php和PageRender.php文件(我在另一个教程中看到了这个)。这一次,我只编辑了TemplateRender.php文件,并且它有效。