Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support
It is currently Mon May 21, 2012 9:11 am


ATTENTION: All users passwords have been cleared.
Please use the "Forgot Password" feature to reset your password.


All times are UTC - 5 hours




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: LDAP Issues w/ 0.8.7g
PostPosted: Mon Jul 12, 2010 3:00 pm 
Offline

Joined: Mon Sep 24, 2007 4:01 pm
Posts: 16
Just upgraded to 0.8.7g and got most of the bugs worked out (all of them user error :P). There is one problem, however, that I am unable to figure out. When logging into cacti with an LDAP account, I get the following error:

Code:
Notice: Undefined variable: ldap_group_member_type in /var/www/html/lib/ldap.php on line 253


Anyone have any ideas?

Thanks!

Quote:
Cacti Version - 0.8.7g
Plugin Architecture - 2.8
Poller Type - Cactid v
Server Info - Linux 2.6.21-1.3194.fc7
Web Server - Apache/2.2.8 (Fedora)
PHP - 5.2.6
PHP Extensions - libxml, xml, wddx, tokenizer, sysvshm, sysvsem, sysvmsg, session, pcre, SimpleXML, sockets, SPL, shmop, standard, Reflection, pspell, posix, iconv, hash, gmp, gettext, ftp, filter, exif, date, curl, ctype, calendar, bz2, zlib, openssl, apache2handler, dbase, dom, gd, json, ldap, mysql, mysqli, PDO, pdo_mysql, pdo_sqlite, snmp, xmlreader, xmlwriter, xsl, zip
MySQL - 5.0.45
RRDTool - 1.2.27
SNMP - 5.4
Plugins
    Create Aggregate Graphs (aggregate - v0.66)
    Cacti Log View (CLog - v1.0)
    Host Info (hostinfo - v0.2)
    Login Page Mod (loginmod - v1.0)
    manage
    Device Monitoring (monitor - v0.8.2)
    RRD Cleaner - v1.2
    Global Plugin Settings (settings - v0.5)
    Thresholds (thold - v0.4.1)
    Network Tools (tools - v0.3)
    Update Checker (update - v0.4)
    PHP Network Weathermap (weathermap - v0.97a)
    Real-time statistics (zond - v0.34c)
    SuperLinks (superlinks - v0.8)


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jul 12, 2010 4:08 pm 
Offline
Developer
User avatar

Joined: Thu Dec 02, 2004 2:46 am
Posts: 20544
Location: Muenster, Germany
Just a guess:
Please change ldap_group_member_type to group_member_type and retry. Post results, please
R:

_________________
Official Cacti Documentation
Official Debugging Help
Central Plugin Repository
Central Templates Repository


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 13, 2010 8:26 am 
Offline

Joined: Mon Sep 24, 2007 4:01 pm
Posts: 16
Code:
/* Bind to the LDAP directory */
$ldap_response = @ldap_bind($ldap_conn, $this->dn, $this->password);
if ($ldap_response) {
   if ($this->group_require == 1) {
      /* Process group membership if required */
         if ($group_member_type == 1) {
            $ldap_group_response = @ldap_compare($ldap_conn, $this->group_dn, $this->group_attrib, $this->dn);
         } else {
            $ldap_group_response = @ldap_compare($ldap_conn, $this->group_dn, $this->group_attrib, $this->username);
         }


Changed and still receive the error:

Quote:
Notice: Undefined variable: group_member_type in /var/www/html/lib/ldap.php on line 253


Thanks!


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 13, 2010 11:24 am 
Offline
Developer
User avatar

Joined: Thu Dec 02, 2004 2:46 am
Posts: 20544
Location: Muenster, Germany
Sorry, should read $this->group_member_type.
No LDAPat hand, so still guessing
R.

_________________
Official Cacti Documentation
Official Debugging Help
Central Plugin Repository
Central Templates Repository


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 14, 2010 8:35 am 
Offline

Joined: Mon Sep 24, 2007 4:01 pm
Posts: 16
gandalf wrote:
Sorry, should read $this->group_member_type.
No LDAPat hand, so still guessing
R.


That fixed it! Thanks a bunch, now I can update my production system.

-T


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 23, 2010 11:36 am 
Offline

Joined: Fri Mar 05, 2010 7:05 pm
Posts: 6
gandalf wrote:
Sorry, should read $this->group_member_type.
No LDAPat hand, so still guessing
R.


So code should look like this?

Code:
/* Bind to the LDAP directory */
                        $ldap_response = @ldap_bind($ldap_conn, $this->dn, $this->password);
                        if ($ldap_response) {
                                if ($this->group_require  == 1) {
                                        /* Process group membership if required */
                                        if ($this->group_member_type == 1) {


Gandalf,
Is this going to be permament fix?

Regards,
Tecman


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 23, 2010 3:50 pm 
Offline
Developer
User avatar

Joined: Thu Dec 02, 2004 2:46 am
Posts: 20544
Location: Muenster, Germany
I suppose so. We're still facing a mysql problem on several installations. Then we'll post a (bunch of) patch(es).
R.

_________________
Official Cacti Documentation
Official Debugging Help
Central Plugin Repository
Central Templates Repository


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group