[SOLVED] Cacti 0.8.7a on Windows - LDAP Authentication
Moderators: Developers, Moderators
-
- Posts: 26
- Joined: Thu Jan 19, 2006 10:07 pm
[SOLVED] Cacti 0.8.7a on Windows - LDAP Authentication
Hi,
We're running Cacti/Spine on a W2K3 server. I'd love to setup LDAP/AD authentication for Cacti, but the option isn't available in the Configuration->Settings->Authentication->Authentication Method drop down.. Only Builtin and WebBasic Authentication.
Ldap is loaded as a module in php.in, and confirmed by..
D:\webroot\cacti\scripts>php -m
[PHP Modules]
bcmath
calendar
com_dotnet
ctype
date
dom
filter
ftp
hash
iconv
json
ldap
libxml
mysql
odbc
pcre
Reflection
session
SimpleXML
snmp
sockets
SPL
standard
tokenizer
wddx
xml
xmlreader
xmlwriter
zlib
[Zend Modules]
...
so, any suggestions?
Steve
We're running Cacti/Spine on a W2K3 server. I'd love to setup LDAP/AD authentication for Cacti, but the option isn't available in the Configuration->Settings->Authentication->Authentication Method drop down.. Only Builtin and WebBasic Authentication.
Ldap is loaded as a module in php.in, and confirmed by..
D:\webroot\cacti\scripts>php -m
[PHP Modules]
bcmath
calendar
com_dotnet
ctype
date
dom
filter
ftp
hash
iconv
json
ldap
libxml
mysql
odbc
pcre
Reflection
session
SimpleXML
snmp
sockets
SPL
standard
tokenizer
wddx
xml
xmlreader
xmlwriter
zlib
[Zend Modules]
...
so, any suggestions?
Steve
--
Steve Ollis
Manager, Technology Services
Hillsong Church
[quote][b]Cacti Version[/b] - 0.8.7a
[b]Plugin Architecture[/b] - 1.4
[b]Poller Type[/b] - Cactid v
[b]Server Info[/b] - Windows NT 5.2
[b]Web Server[/b] - Microsoft-IIS/6.0
[b]PHP[/b] - 5.2.5
[b]Plugins[/b][list]Network Discovery (discovery - v0.8.2)
Documents (docs - v0.1)
FlowView (flowview - v0.4)
Host Info (hostinfo - v0.2)
Device Tracking (mactrack - v1.1)
Device Monitoring (monitor - v0.8.1)
NTop Viewer (ntop - v0.1)
Global Plugin Settings (settings - v0.3)
Thresholds (thold - v0.3.8)
Network Tools (tools - v0.2)
Update Checker (update - v0.4)[/list][/quote]
Steve Ollis
Manager, Technology Services
Hillsong Church
[quote][b]Cacti Version[/b] - 0.8.7a
[b]Plugin Architecture[/b] - 1.4
[b]Poller Type[/b] - Cactid v
[b]Server Info[/b] - Windows NT 5.2
[b]Web Server[/b] - Microsoft-IIS/6.0
[b]PHP[/b] - 5.2.5
[b]Plugins[/b][list]Network Discovery (discovery - v0.8.2)
Documents (docs - v0.1)
FlowView (flowview - v0.4)
Host Info (hostinfo - v0.2)
Device Tracking (mactrack - v1.1)
Device Monitoring (monitor - v0.8.1)
NTop Viewer (ntop - v0.1)
Global Plugin Settings (settings - v0.3)
Thresholds (thold - v0.3.8)
Network Tools (tools - v0.2)
Update Checker (update - v0.4)[/list][/quote]
When you go to the technical support page, you see LDAP in there right?
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
-
- Posts: 26
- Joined: Thu Jan 19, 2006 10:07 pm
Ah ha. No.. LDAP is not listed in there. So, what I need to do from here?
--
Steve Ollis
Manager, Technology Services
Hillsong Church
[quote][b]Cacti Version[/b] - 0.8.7a
[b]Plugin Architecture[/b] - 1.4
[b]Poller Type[/b] - Cactid v
[b]Server Info[/b] - Windows NT 5.2
[b]Web Server[/b] - Microsoft-IIS/6.0
[b]PHP[/b] - 5.2.5
[b]Plugins[/b][list]Network Discovery (discovery - v0.8.2)
Documents (docs - v0.1)
FlowView (flowview - v0.4)
Host Info (hostinfo - v0.2)
Device Tracking (mactrack - v1.1)
Device Monitoring (monitor - v0.8.1)
NTop Viewer (ntop - v0.1)
Global Plugin Settings (settings - v0.3)
Thresholds (thold - v0.3.8)
Network Tools (tools - v0.2)
Update Checker (update - v0.4)[/list][/quote]
Steve Ollis
Manager, Technology Services
Hillsong Church
[quote][b]Cacti Version[/b] - 0.8.7a
[b]Plugin Architecture[/b] - 1.4
[b]Poller Type[/b] - Cactid v
[b]Server Info[/b] - Windows NT 5.2
[b]Web Server[/b] - Microsoft-IIS/6.0
[b]PHP[/b] - 5.2.5
[b]Plugins[/b][list]Network Discovery (discovery - v0.8.2)
Documents (docs - v0.1)
FlowView (flowview - v0.4)
Host Info (hostinfo - v0.2)
Device Tracking (mactrack - v1.1)
Device Monitoring (monitor - v0.8.1)
NTop Viewer (ntop - v0.1)
Global Plugin Settings (settings - v0.3)
Thresholds (thold - v0.3.8)
Network Tools (tools - v0.2)
Update Checker (update - v0.4)[/list][/quote]
Did you restart IIS after enabling ldap in php.ini? If not, do so.
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
-
- Posts: 26
- Joined: Thu Jan 19, 2006 10:07 pm
Hi,
i've restarted iis, and the whole server several times.. since install and subsequent .ini file updates..
S
i've restarted iis, and the whole server several times.. since install and subsequent .ini file updates..
S
--
Steve Ollis
Manager, Technology Services
Hillsong Church
[quote][b]Cacti Version[/b] - 0.8.7a
[b]Plugin Architecture[/b] - 1.4
[b]Poller Type[/b] - Cactid v
[b]Server Info[/b] - Windows NT 5.2
[b]Web Server[/b] - Microsoft-IIS/6.0
[b]PHP[/b] - 5.2.5
[b]Plugins[/b][list]Network Discovery (discovery - v0.8.2)
Documents (docs - v0.1)
FlowView (flowview - v0.4)
Host Info (hostinfo - v0.2)
Device Tracking (mactrack - v1.1)
Device Monitoring (monitor - v0.8.1)
NTop Viewer (ntop - v0.1)
Global Plugin Settings (settings - v0.3)
Thresholds (thold - v0.3.8)
Network Tools (tools - v0.2)
Update Checker (update - v0.4)[/list][/quote]
Steve Ollis
Manager, Technology Services
Hillsong Church
[quote][b]Cacti Version[/b] - 0.8.7a
[b]Plugin Architecture[/b] - 1.4
[b]Poller Type[/b] - Cactid v
[b]Server Info[/b] - Windows NT 5.2
[b]Web Server[/b] - Microsoft-IIS/6.0
[b]PHP[/b] - 5.2.5
[b]Plugins[/b][list]Network Discovery (discovery - v0.8.2)
Documents (docs - v0.1)
FlowView (flowview - v0.4)
Host Info (hostinfo - v0.2)
Device Tracking (mactrack - v1.1)
Device Monitoring (monitor - v0.8.1)
NTop Viewer (ntop - v0.1)
Global Plugin Settings (settings - v0.3)
Thresholds (thold - v0.3.8)
Network Tools (tools - v0.2)
Update Checker (update - v0.4)[/list][/quote]
I'm guessing that means you still don't see ldap listed in the technical support page?
Create a file called info.php and put in the following:
Navigate to that page in IIS -- do you see LDAP listed? If not, then I don't think you've modified the correct php.ini file. Search your system for other copies.
Create a file called info.php and put in the following:
Code: Select all
<?php
// Show all information, defaults to INFO_ALL
phpinfo();
?>
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
-
- Posts: 26
- Joined: Thu Jan 19, 2006 10:07 pm
There's only one php.ini file on the server.. and that's in c:\php\php.ini.
Output of phpinfo() is attached.. as is PHP.ini
Ok.. curiouser and curiouser - i set error logging up to ALL and output to syslog, and got the following at IIS restart time in event log..
Warning: PHP Startup: Unable to load dynamic library 'c:\php\ext\php_ldap.dll' - The operating system cannot run Warning
I didn't have openssl loaded, but that hasn't fixed it..
Steve
Output of phpinfo() is attached.. as is PHP.ini
Ok.. curiouser and curiouser - i set error logging up to ALL and output to syslog, and got the following at IIS restart time in event log..
Warning: PHP Startup: Unable to load dynamic library 'c:\php\ext\php_ldap.dll' - The operating system cannot run Warning
I didn't have openssl loaded, but that hasn't fixed it..
Steve
- Attachments
-
- phpinfo().pdf
- PHPinfo output
- (122.46 KiB) Downloaded 416 times
-
- php.ini.txt
- PHP.ini
- (45.3 KiB) Downloaded 203 times
--
Steve Ollis
Manager, Technology Services
Hillsong Church
[quote][b]Cacti Version[/b] - 0.8.7a
[b]Plugin Architecture[/b] - 1.4
[b]Poller Type[/b] - Cactid v
[b]Server Info[/b] - Windows NT 5.2
[b]Web Server[/b] - Microsoft-IIS/6.0
[b]PHP[/b] - 5.2.5
[b]Plugins[/b][list]Network Discovery (discovery - v0.8.2)
Documents (docs - v0.1)
FlowView (flowview - v0.4)
Host Info (hostinfo - v0.2)
Device Tracking (mactrack - v1.1)
Device Monitoring (monitor - v0.8.1)
NTop Viewer (ntop - v0.1)
Global Plugin Settings (settings - v0.3)
Thresholds (thold - v0.3.8)
Network Tools (tools - v0.2)
Update Checker (update - v0.4)[/list][/quote]
Steve Ollis
Manager, Technology Services
Hillsong Church
[quote][b]Cacti Version[/b] - 0.8.7a
[b]Plugin Architecture[/b] - 1.4
[b]Poller Type[/b] - Cactid v
[b]Server Info[/b] - Windows NT 5.2
[b]Web Server[/b] - Microsoft-IIS/6.0
[b]PHP[/b] - 5.2.5
[b]Plugins[/b][list]Network Discovery (discovery - v0.8.2)
Documents (docs - v0.1)
FlowView (flowview - v0.4)
Host Info (hostinfo - v0.2)
Device Tracking (mactrack - v1.1)
Device Monitoring (monitor - v0.8.1)
NTop Viewer (ntop - v0.1)
Global Plugin Settings (settings - v0.3)
Thresholds (thold - v0.3.8)
Network Tools (tools - v0.2)
Update Checker (update - v0.4)[/list][/quote]
-
- Posts: 26
- Joined: Thu Jan 19, 2006 10:07 pm
Ah! Fixed..
needed to copy ext/php_ldap.dll, libeay.dll and ssleay32.dll to my windows\system32 folder. Now Ldap shows up in PHPINFO().. now off to configure Cacti.
needed to copy ext/php_ldap.dll, libeay.dll and ssleay32.dll to my windows\system32 folder. Now Ldap shows up in PHPINFO().. now off to configure Cacti.
--
Steve Ollis
Manager, Technology Services
Hillsong Church
[quote][b]Cacti Version[/b] - 0.8.7a
[b]Plugin Architecture[/b] - 1.4
[b]Poller Type[/b] - Cactid v
[b]Server Info[/b] - Windows NT 5.2
[b]Web Server[/b] - Microsoft-IIS/6.0
[b]PHP[/b] - 5.2.5
[b]Plugins[/b][list]Network Discovery (discovery - v0.8.2)
Documents (docs - v0.1)
FlowView (flowview - v0.4)
Host Info (hostinfo - v0.2)
Device Tracking (mactrack - v1.1)
Device Monitoring (monitor - v0.8.1)
NTop Viewer (ntop - v0.1)
Global Plugin Settings (settings - v0.3)
Thresholds (thold - v0.3.8)
Network Tools (tools - v0.2)
Update Checker (update - v0.4)[/list][/quote]
Steve Ollis
Manager, Technology Services
Hillsong Church
[quote][b]Cacti Version[/b] - 0.8.7a
[b]Plugin Architecture[/b] - 1.4
[b]Poller Type[/b] - Cactid v
[b]Server Info[/b] - Windows NT 5.2
[b]Web Server[/b] - Microsoft-IIS/6.0
[b]PHP[/b] - 5.2.5
[b]Plugins[/b][list]Network Discovery (discovery - v0.8.2)
Documents (docs - v0.1)
FlowView (flowview - v0.4)
Host Info (hostinfo - v0.2)
Device Tracking (mactrack - v1.1)
Device Monitoring (monitor - v0.8.1)
NTop Viewer (ntop - v0.1)
Global Plugin Settings (settings - v0.3)
Thresholds (thold - v0.3.8)
Network Tools (tools - v0.2)
Update Checker (update - v0.4)[/list][/quote]
Interesting. IIRC, those files should already live in the c:\php\ directory. If you had set the PHPRC system variable to c:\php, I believe you wouldn't have that problem. Basically it's a path issue.
I'm using php 5.2.x on Windows 2003 and did not have to move any files outside of the PHP folder to get LDAP working.
I'm using php 5.2.x on Windows 2003 and did not have to move any files outside of the PHP folder to get LDAP working.
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
-
- Posts: 26
- Joined: Thu Jan 19, 2006 10:07 pm
phprc IS set to c:/php. you can see that in the phpinfo output...
and those files, except for php_ldap.dll, were in c:/php.
very curious indeed...
and those files, except for php_ldap.dll, were in c:/php.
very curious indeed...
--
Steve Ollis
Manager, Technology Services
Hillsong Church
[quote][b]Cacti Version[/b] - 0.8.7a
[b]Plugin Architecture[/b] - 1.4
[b]Poller Type[/b] - Cactid v
[b]Server Info[/b] - Windows NT 5.2
[b]Web Server[/b] - Microsoft-IIS/6.0
[b]PHP[/b] - 5.2.5
[b]Plugins[/b][list]Network Discovery (discovery - v0.8.2)
Documents (docs - v0.1)
FlowView (flowview - v0.4)
Host Info (hostinfo - v0.2)
Device Tracking (mactrack - v1.1)
Device Monitoring (monitor - v0.8.1)
NTop Viewer (ntop - v0.1)
Global Plugin Settings (settings - v0.3)
Thresholds (thold - v0.3.8)
Network Tools (tools - v0.2)
Update Checker (update - v0.4)[/list][/quote]
Steve Ollis
Manager, Technology Services
Hillsong Church
[quote][b]Cacti Version[/b] - 0.8.7a
[b]Plugin Architecture[/b] - 1.4
[b]Poller Type[/b] - Cactid v
[b]Server Info[/b] - Windows NT 5.2
[b]Web Server[/b] - Microsoft-IIS/6.0
[b]PHP[/b] - 5.2.5
[b]Plugins[/b][list]Network Discovery (discovery - v0.8.2)
Documents (docs - v0.1)
FlowView (flowview - v0.4)
Host Info (hostinfo - v0.2)
Device Tracking (mactrack - v1.1)
Device Monitoring (monitor - v0.8.1)
NTop Viewer (ntop - v0.1)
Global Plugin Settings (settings - v0.3)
Thresholds (thold - v0.3.8)
Network Tools (tools - v0.2)
Update Checker (update - v0.4)[/list][/quote]
Hmm, ok. Well while this might work now, it WILL cause problems in the future when you upgrade PHP because I bet you'll forget about those other dll files in the windows\system32 folder.
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
Who is online
Users browsing this forum: No registered users and 0 guests