breisig / phpldapadmin Goto Github PK
View Code? Open in Web Editor NEWphpLDAPadmin - Web based LDAP administration tool http://www.phpldapadmin.org
License: GNU General Public License v2.0
phpLDAPadmin - Web based LDAP administration tool http://www.phpldapadmin.org
License: GNU General Public License v2.0
Hi,
after the latest update of phpLDAPamin 1.2.3 on CentOS 7, while using your phpLDAPadmin with PHP 7.x support (Many thanks for that ๐ ), a missing entry in
/usr/share/phpldapadmin/locale/de_DE/LC_MESSAGES/messages.mo
was seen on the web application.
When I override the /usr/share/phpldapadmin/locale/de_DE/LC_MESSAGES/messages.mo
by the Version distributed with the phpLDAPadmin Version 1.2.2, the view was correct, see the screenshot below:
Please can you update the correct /usr/share/phpldapadmin/locale/de_DE/LC_MESSAGES/messages.mo
file in phpLDAPadmin Version 1.2.3 too!
Thank you!
Klaus.
First of all thank you for your superb work!!!
Here is the patch that solve this problem:
diff --git a/lib/TemplateRender.php b/lib/TemplateRender.php
index bf6e99d..249c7a1 100644
--- a/lib/TemplateRender.php
+++ b/lib/TemplateRender.php
@@ -200,7 +200,7 @@ class TemplateRender extends PageRender {
$next_number = $vals;
foreach ($mod as $calc) {
- $operand = $calc{0};
+ $operand = $calc[0];
$operator = substr ($calc,1);
switch ($operand) {
diff --git a/lib/functions.php b/lib/functions.php
index e2f125c..f159f8c 100644
--- a/lib/functions.php
+++ b/lib/functions.php
@@ -1600,7 +1600,7 @@ function get_icon($server_id,$dn,$object_classes=array()) {
# Return icon filename based upon objectClass value
if (in_array('sambaaccount',$object_classes) &&
- '$' == $rdn{ strlen($rdn) - 1 })
+ '$' == $rdn[ strlen($rdn) - 1 ])
return 'nt_machine.png';
if (in_array('sambaaccount',$object_classes))
openldaplog
May 31 11:55:44 mail slapd[72116]: >>> dnPrettyNormal: <uid=ap,ou=ITAccounts,dc=stack,dc=net>
May 31 11:55:44 mail slapd[72116]: <<< dnPrettyNormal: <uid=ap,ou=ITAccounts,dc=stack,dc=net>, <uid=ap,ou=itaccounts,dc=stack,dc=net>
May 31 11:55:44 mail slapd[72116]: conn=1004 op=4 modifications:
May 31 11:55:44 mail slapd[72116]: replace: usercertificate;binary
May 31 11:55:44 mail slapd[72116]: one value, length 4966
May 31 11:55:44 mail slapd[72116]: conn=1004 op=4 MOD dn="uid=ap,ou=ITAccounts,dc=stack,dc=net"
May 31 11:55:44 mail slapd[72116]: conn=1004 op=4 MOD attr=usercertificate;binary
May 31 11:55:44 mail slapd[72116]: send_ldap_result: conn=1004 op=4 p=3
May 31 11:55:44 mail slapd[72116]: send_ldap_result: err=21 matched="" text="usercertificate;binary: value #0 invalid per syntax"
May 31 11:55:44 mail slapd[72116]: send_ldap_response: msgid=5 tag=103 err=21
May 31 11:55:44 mail slapd[72116]: conn=1004 op=4 RESULT tag=103 err=21 text=usercertificate;binary: value #0 invalid per syntax
May 31 11:55:44 mail slapd[72116]: daemon: activity on 1 descriptor
May 31 11:55:44 mail slapd[72116]: daemon: activity on:
in webui
ย | Could not perform ldap_modify operation. |
---|---|
LDAP said:Invalid syntaxError number:0x15 (LDAP_INVALID_SYNTAX)Description:An invalid attribute value was specified. | LDAP said: |
LDAP said: | Invalid syntax |
Error number: | 0x15 (LDAP_INVALID_SYNTAX) |
Description: | An invalid attribute value was specified. |
My system:
Debian 9 with PHP 7.3 from Buster.
php -v
PHP 7.3.0-2 (cli) (built: Dec 17 2018 09:51:53) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.0-dev, Copyright (c) 1998-2018 Zend Technologies
with Zend OPcache v7.3.0-2, Copyright (c) 1999-2018, by Zend Technologies
On the left side of position: [+] dc=mycompany,dc=local should be icon with "+" - but is none picture. I can click on the missing icon - the icon is changed to spinning gif, none request from webbrowser is send to server.
In logs from Apache:
[Tue Jan 22 13:52:54.665745 2019] [php7:warn] [pid 13617] [client 10.0.0.187:56118] PHP Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/www_phpLDAPadmin_php7_breisig/lib/QueryRender.php on line 324, referer: http://10.0.0.102/phpldapadmin_breisig/htdocs/cmd.php?server_id=1&redirect=true
Based on the description from: https://wiki.php.net/rfc/continue_on_switch_deprecation I tried changing this "continue" to "break" or "continue 2" but this gives nothing.
I followed the directions listed on:
https://www.techrepublic.com/article/how-to-install-phpldapadmin-on-ubuntu-18-04/
I get the following when I go to the webpage at SERVER_IP:8080/phpldapadmin (I changed the apache2 listen port to 8080):
`<?php
//
/**
header('Location: htdocs/index.php');
die();
?>`
What am I doing wrong?
I am experiencing a problem when accessing, I have tried with username and password or anonymously and it is impossible, I get the legend "Gateway Timeou The gateway did not receive a timely response from the upstream server or application.t".
A part of the config.php file looks like this:
what am I doing wrong? :(
Hi,
I've tried with php8.1 and I got this page
Deprecated: Optional parameter $subitem declared before required parameter $data is implicitly treated as a required parameter in /var/www/html/phpldapadmin/lib/functions.php on line 910
Fatal error: Array and string offset access syntax with curly braces is no longer supported in /var/www/html/phpldapadmin/lib/functions.php on line 1603
I'm not familiar with php, what would you advise ? a patch ? a workaround ? downgrade ?
thanks
Hello,
after I logged in the phpldapadmin and i click left to the base dn nothing happens. The circle to the left side of the base dn turns and turns. After 5 minutes I get the following error message "There was a problem with the request". My system is a Debian 6.5 with php 7.3. Here is my Apache2 configuration of phpldapadmin
`
cat /etc/apache2/sites-available/ldapadmin.conf
<VirtualHost ldapadmin.intern.example.com:80>
ServerName ldapadmin.intern.example.com:80
DocumentRoot "/var/www/html/phpLDAPadmin"
RedirectMatch permanent ^(.*)$ https://ldapadmin.intern.example.com
</VirtualHost>
<VirtualHost ldapadmin.intern.example.com:443>
ServerName ldapadmin.intern.example.com:443
DocumentRoot /var/www/html/phpLDAPadmin/htdocs
ServerAdmin [email protected]
SSLEngine on
SSLCertificateFile /etc/openxpki/ssl/ca-one/ldapadmin.intern.example.com.crt
SSLCertificateKeyFile /etc/openxpki/ssl/ca-one/ldapadmin.intern.example.com.pem
ErrorLog /var/log/apache2/apache-ldapadmin-error.log
TransferLog /var/log/apache2/apache-ldapadmin-access.log
CustomLog /var/log/apache2/apache-ldapadmin-request.log combined
<Directory /var/www/html/phpLDAPadmin>
Options SymLinksIfOwnerMatch
DirectoryIndex index.php
AllowOverride All
Options FollowSymlinks
Require all granted
</Directory>
Do you have a tip for what I can do?
Greetings from Stefan Harbich
Hi,
I am having the following error when running behind a virtual host on nginx.
Do you have any ideas?
Thanks.
Deprecated: __autoload() is deprecated, use spl_autoload_register() instead in /var/www/phpldapadmin/lib/functions.php on line 54
Fatal error: Cannot redeclare password_hash() in /var/www/phpldapadmin/lib/functions.php on line 2236
The result is:
LDAP message: Undefined attribute type
Error Number: 0x11 (LDAP_UNDEFINED_TYPE)
Description: The attribute type specified is invalid.
LDAP server is openLDAP 2.2.4
From openLDAP server log:
MOD attr=jpegphoto;binary
RESULT tag=103 err=17 text=jpegphoto;binary: option "binary" not supported with type
The "native" phpLdapAdmin 1.2.3, if runs under php 5.3.29, works fine with jpegPhoto.
From openLDAP server log:
MOD attr=jpegphoto
RESULT tag=103 err=0 text=
Not sure if this is just me, but I cannot create or modify users and I get the following error:
PHP Fatal error: Uncaught Error: Call to undefined function password_hash_custom() in /usr/share/phpldapa
dmin/lib/PageRender.php:289\nStack trace:\n#0 /usr/share/phpldapadmin/lib/Visitor.php(58): PageRender->getPostAttribute(Object(PasswordAttribute), '0')\n#1 /usr/share/phpldapadmin/lib/PageRe
nder.php(90): Visitor->__call('get', Array)\n#2 /usr/share/phpldapadmin/htdocs/create_confirm.php(19): PageRender->accept()\n#3 /usr/share/phpldapadmin/htdocs/cmd.php(59): include('/usr/shar
e/phpl...')\n#4 {main}\n thrown in /usr/share/phpldapadmin/lib/PageRender.php on line 289, referer: http://10.1.1.5/phpldapadmin/cmd.php
~Jason
I had the Ubuntu packaged version of phpldapadmin which is very broken, and it looked like this was just a drop-in. However the Ubuntu version had files in /etc/phpldapadmin, one of which was an apache.conf file that somehow created a re-direct for the phpldapadmin without using the usual sites-enabled mechanism.
Just copying everything into /usr/share/phpldapadmin (as per the Ubuntu version) doesn't work, so it looks like the INSTALL.md needs updating. Or does this version do things in a very different way?
I tried just copying the directory as /var/www/html/phpldapadmin and creating a symbolic link in "config" to /etc/phpldapadmin/config.php, but then I get an error in my web browser:
Notice: Undefined variable: _SESSION in /var/www/html/phpldapadmin/lib/page.php on line 379
Fatal error: Uncaught Error: Call to a member function getValue() on null in /var/www/html/phpldapadmin/lib/page.php:379 Stack trace: #0 /var/www/html/phpldapadmin/lib/functions.php(640): page->display(Array) #1 /var/www/html/phpldapadmin/htdocs/index.php(107): error('Fatal error: Ca...', 'error', NULL, true) #2 {main} thrown in /var/www/html/phpldapadmin/lib/page.php on line 379
I tried making a copy rather than a symbolic link and just get the same error.
Please can you update the INSTALL.md with precise, fully working instructions.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.