Nudge am 05.04.2009

Bug in phpldapadmin 1.1.0.7

in PHP | Tags: Bug, Bugfix, LDAP, Patch, Phpldapadmin

Achtung: Die Version 1.1.0.7 des phpldapadmin enthält einen Bug. Es gibt in der Datei /htdocs/create.php auf Zeile 72 einen Aufruf einer Funktion namens LDAPServer::isIgnoredAttribute(), die allerdings nirgends definiert ist. Zum Beheben des Problems kann man diesen Patch einspielen, oder in der Datei lib/server_functions.php die Funktion selbst nachrüsten:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/**
     * This function determines if the specified attribute is contained
     * in the $ignored_attrs list configured in config.php.
     * @return bool True if the specified attribute is in the $ignored_attrs list and false
     *              otherwise.
     */
    function isIgnoredAttr($attr_name) {
            if (DEBUG_ENABLED)
                    debug_log('Entered with (%s)',17,__FILE__,__LINE__,__METHOD__,$attr_name);
 
            $ignored_attrs = isset($_SESSION[APPCONFIG]->ignored_attrs)
                             ? $_SESSION[APPCONFIG]->ignored_attrs : array();
 
            if (isset($ignored_attrs) && is_array($ignored_attrs))
                    foreach ($ignored_attrs as $attr)
                            if (strcasecmp($attr_name,$attr) == 0)
                                    return true;
            return false;
    }
/**
     * This function determines if the specified attribute is contained
     * in the $ignored_attrs list configured in config.php.
     * @return bool True if the specified attribute is in the $ignored_attrs list and false
     *              otherwise.
     */
    function isIgnoredAttr($attr_name) {
            if (DEBUG_ENABLED)
                    debug_log('Entered with (%s)',17,__FILE__,__LINE__,__METHOD__,$attr_name);

            $ignored_attrs = isset($_SESSION[APPCONFIG]->ignored_attrs)
                             ? $_SESSION[APPCONFIG]->ignored_attrs : array();

            if (isset($ignored_attrs) && is_array($ignored_attrs))
                    foreach ($ignored_attrs as $attr)
                            if (strcasecmp($attr_name,$attr) == 0)
                                    return true;
            return false;
    }

Viel Erfolg!


Das mark ich mir: Alltagz Mr Wong Yigg Del.icio.us Yahoo MyWeb Blinklist Google folkd
 

Leave a Reply

Your email address will not be published. Required fields are marked *