[help] Install phpldapadmin

Pertanyaan umum seputar distribusi Ubuntu yang menjadi distro wajib members ubuntu-indonesia.com
User avatar
lva1
Posts: 13
Joined: 13 Apr 2014, 08:28
Location: Salatiga
Contact:

[help] Install phpldapadmin

Postby lva1 » 01 May 2014, 16:05

install phpldapamin dengan perintah apt-get install phpldapadmin muncul error spt dibawah ini, salahnya di apa ya? :

ln: failed to create symbolic link �/etc/apache2/conf.d/phpldapadmin�: No such file or directory
dpkg: error processing phpldapadmin (--configure):
subprocess installed post-installation script returned error exit status 1
No apport report written because MaxReports is reached already
Errors were encountered while processing:
phpldapadmin
E: Sub-process /usr/bin/dpkg returned an error code (1)

User avatar
Malsasa
Posts: 2976
Joined: 07 Jun 2010, 22:37
Location: Mojokerto, Indonesia
Contact:

Re: [help] Install phpldapadmin

Postby Malsasa » 01 May 2014, 19:05

Saya kopi paste dua baris pertama ke gugel dan saya dapat solusi ini:

https://bugs.launchpad.net/ubuntu/+sour ... ug/1246170

Yang akang hadapi sebenarnya adalah bug. Baca komentar di situ sampai bagian akhir untuk solusinya.
User avatar
lva1
Posts: 13
Joined: 13 Apr 2014, 08:28
Location: Salatiga
Contact:

Re: [help] Install phpldapadmin

Postby lva1 » 04 May 2014, 13:51

Makasih Mas Malsasa, tak pelajari dulu :D
User avatar
lva1
Posts: 13
Joined: 13 Apr 2014, 08:28
Location: Salatiga
Contact:

Re: [help] Install phpldapadmin

Postby lva1 » 04 May 2014, 16:01

Alhamdulillah, akhirnya ketemu juga...

untuk referance bisa ke link http://forums.debian.net/viewtopic.php?f=5&t=111508

perubahan di dua file(/usr/share/phpldapadmin/lib/functions.php dibaris 2130, 2311 and 2320 dan /usr/share/phpldapadmin/lib/PageRender.php baris 289) dengan merubah fungsi password_hash saya rubah ke pla_password_hash.

I had to rename the password_hash function because it is incompatible with the built-in one and storing passwords didn't work. So just rename the function for something like pla_password_hash at:

/usr/share/phpldapadmin/lib/functions.php lines 2130, 2311 and 2320

/usr/share/phpldapadmin/lib/PageRender.php line 289

terima kasih mas malsasa yang telah mengarahkan
User avatar
lva1
Posts: 13
Joined: 13 Apr 2014, 08:28
Location: Salatiga
Contact:

Re: [help] Install phpldapadmin

Postby lva1 » 05 May 2014, 06:40

selain perubahan diatas peru dirubah script di 2 file ini :

Edit: the warnings are fixed by replacing all calls to preg_replace which use the /e modifier with the newer preg_replace_callback function, which is apparently safer. So that would be:

At /usr/share/phpldapadmin/lib/functions.php line 2549 and /usr/share/phpldapadmin/lib/ds_ldap.php line 1120:

Replace

Code: Select all
preg_replace('/\\\([0-9A-Fa-f]{2})/e',"''.chr(hexdec('\\1')).''",$rdn);



With

Code: Select all
preg_replace_callback('/\\\([0-9A-Fa-f]{2})/',function(){return "''.chr(hexdec('\\1')).''";},$rdn);



At /usr/share/phpldapadmin/lib/functions.php line 2554 and /usr/share/phpldapadmin/lib/ds_ldap.php line 1125:

Replace

Code: Select all
preg_replace('/\\\([0-9A-Fa-f]{2})/e',"''.chr(hexdec('\\1')).''",$dn);



With

Code: Select all
preg_replace_callback('/\\\([0-9A-Fa-f]{2})/',function(){return "''.chr(hexdec('\\1')).''";},$dn);
User avatar
AAPS
Posts: 1
Joined: 09 Jun 2014, 10:35

Re: [help] Install phpldapadmin

Postby AAPS » 09 Jun 2014, 10:38

saya coba solusi di atas tapi error blm hilang.. Harus gimana?
User avatar
lva1
Posts: 13
Joined: 13 Apr 2014, 08:28
Location: Salatiga
Contact:

Re: [help] Install phpldapadmin

Postby lva1 » 18 Jun 2014, 11:37

saya coba solusi di atas tapi error blm hilang.. Harus gimana?
Itu ada di beberapa baris gan. coba di teliti ulang

Who is online

Users browsing this forum: No registered users and 3 guests