Erro ao tentar obter um valor inexistente (aparência, password_hash) no LDAP

13

Instalei o LDAP e o phpLDAPadmin no meu Ubuntu 14.04 (Trusty Tahr). Ele está funcionando e consigo acessar a GUI do phpLDAPadmin e também posso criar OU e grupos usando a GUI, mas não consigo criar usuários.

Quando tento criar um usuário, recebo o seguinte erro:

Error trying to get a non-existant value (appearance,password_hash)

This template uses a selection list for attribute [gidNumber], however the selection list is empty.
You may need to create some dependancy entries in your LDAP server so that this attribute renders with values.
 Alternatively, you may be able to define the appropriate selection values in the template file.


File /usr/share/phpldapadmin/lib/functions.php (444)
        Function error (a:5:{i:0;s:67:"Error trying to get a non-existant ...)
File /usr/share/phpldapadmin/lib/ds.php (81)
        Function debug_dump_backtrace (a:2:{i:0;s:67:"Error trying to get a non-existant ...)
File /usr/share/phpldapadmin/lib/TemplateRender.php (2469)
  Function getValue (a:2:{i:0;s:10:"appearance";i:1;s:13:"password_hash...)
File  /usr/share/phpldapadmin/lib/TemplateRender.php ()
  Function drawDefaultHelperPasswordAttribute (a:2:{i:0;O:17:"PasswordAttribute":34:{s:4:"name";s...)
File  /usr/share/phpldapadmin/lib/Visitor.php (58)
        Function call_user_func_array (a:2:{i:0;a:2:{i:0;O:14:"TemplateRender":9:{s:24:"...)
File /usr/share/phpldapadmin/lib/PageRender.php (1005)
        Function __call (a:2:{i:0;s:4:"draw";i:1;a:3:{i:0;s:13:"DefaultHelp...)
File /usr/share/phpldapadmin/lib/PageRender.php (1005)
        Function draw (a:3:{i:0;s:13:"DefaultHelper";i:1;O:17:"PasswordAt...)
File /usr/share/phpldapadmin/lib/PageRender.php ()
        Function drawFormReadWriteValuePasswordAttribute (a:2:{i:0;O:17:"PasswordAttribute":34:{s:4:"name";s...)
File /usr/share/phpldapadmin/lib/Visitor.php (58)
        Function call_user_func_array (a:2:{i:0;a:2:{i:0;O:14:"TemplateRender":9:{s:24:"...)
File /usr/share/phpldapadmin/lib/PageRender.php (596)
        Function __call (a:2:{i:0;s:4:"draw";i:1;a:3:{i:0;s:18:"FormReadWri...)
File /usr/share/phpldapadmin/lib/PageRender.php (596)
        Function draw (a:3:{i:0;s:18:"FormReadWriteValue";i:1;O:17:"Passw...)
File /usr/share/phpldapadmin/lib/PageRender.php ()
        Function drawFormValueAttribute (a:2:{i:0;O:17:"PasswordAttribute":34:{s:4:"name";s...)
File /usr/share/phpldapadmin/lib/Visitor.php (58)
        Function call_user_func_array (a:2:{i:0;a:2:{i:0;O:14:"TemplateRender":9:{s:24:"...)
File /usr/share/phpldapadmin/lib/TemplateRender.php (2159)
        Function __call (a:2:{i:0;s:4:"draw";i:1;a:3:{i:0;s:9:"FormValue";i...)
File /usr/share/phpldapadmin/lib/TemplateRender.php (2159)
        Function draw (a:3:{i:0;s:9:"FormValue";i:1;O:17:"PasswordAttribu...)
File /usr/share/phpldapadmin/lib/TemplateRender.php ()
        Function drawValueAttribute (a:2:{i:0;O:17:"PasswordAttribute":34:{s:4:"name";s...)
    
por user5402 31.10.2015 / 06:43

1 resposta

23

Abra o arquivo de modelo /usr/share/phpldapadmin/lib/TemplateRender.php no seu editor favorito como:

 sudo vi  /usr/share/phpldapadmin/lib/TemplateRender.php

Linha de pesquisa

$default = $this->getServer()->getValue('appearance','password_hash'); 

e mude para

$default = $this->getServer()->getValue('appearance','password_hash_custom');

e salve o arquivo e recarregue o navegador, ele não mostrará esse erro.

    
por pl_rock 31.10.2015 / 06:46

Tags