Code Monkey home page Code Monkey logo

phpldapadmin's People

Contributors

andreknieriem avatar archayl avatar bchavet avatar cqcallaw avatar devokun avatar jsdevel avatar leenooks avatar lifehome avatar marclaporte avatar marxarelli avatar monnerat avatar mr-greywolf avatar nhellfire avatar patrickbaus avatar ptomulik avatar rglss avatar stwalkerster avatar tbk avatar uda avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

phpldapadmin's Issues

messages.mo/po missing entry in de_DE

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.

phpldapadmin_-_anzeige_fehlerhaft

SOLUTION:

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:

phpldapadmin_-_anzeige_korrigiert

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.

Error 8192 while running under php7.4

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))

cert in db

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.

Tree in left panel - cannot roll down with PHP 7.3

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.

Gateway Timeout

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:

123

what am I doing wrong? :(

Is it working with php8.1 ?

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

My LDAP Server search base dn

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

running behind nginx has issues

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

jpegPhoto cannot be uploaded nor removed

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=

password_hash_custom issue in php 7.2.7.0?

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

Install instructions out of date?

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.