
LDAP Search Error: Unable to find users DN
hi,
i'm trying to get LDAP working with my Windows 200 domain and have made some progress but am still getting this error
Warning: ldap_search() [function.ldap-search]: Search: Bad search filter in /var/www/html/lib/ldap.php on line 432
LDAP Search Error: Unable to find users DN
running CactiEZ 0.8.7c
Quote:
Cacti Version - 0.8.7c
Plugin Architecture - 2.2
Poller Type - Cactid v
Server Info - Linux 2.6.9-78.0.13.ELsmp
Web Server - Apache/2.0.63 (CentOS)
PHP - 5.1.6
PHP Extensions - libxml, xml, wddx, tokenizer, sysvshm, sysvsem, sysvmsg, standard, SimpleXML, sockets, SPL, shmop, session, Reflection, pspell, posix, mime_magic, iconv, hash, gmp, gettext, ftp, exif, date, curl, ctype, calendar, bz2, zlib, pcre, openssl, apache2handler, gd, ldap, mysql, mysqli, PDO, pdo_mysql, pdo_sqlite, snmp, eAccelerator
MySQL - 5.0.68
RRDTool - 1.2.23
SNMP - 5.1.2
PluginsGlobal Plugin Settings (settings - v0.5)
Large Site Performane Booster for Cacti (boost - v2.2)
Device Monitoring (monitor - v0.8.2)
Network Discovery (discovery - v0.8.5)
Network Tools (tools - v0.3)
Syslog Monitoring (syslog - v0.5.2)
Device Tracking (mactrack - v1.1)
Login Page Mod (loginmod - v1.0)
Update Checker (update - v0.4)
FlowView (flowview - v0.6)
Host Info (hostinfo - v0.2)
Error Images (errorimage - v0.1)
PHP Network Weathermap (weathermap - v0.95b)
docs
Cacti-ReportIt (reportit - v0.6.1)
Router Configs (routerconfigs - v0.1)
WMI Query (wmi - v0.1)
Realtime for Cacti (realtime - v0.35)
PHP Network Managing (PHP Network Managing - v0.6.1)
IP subnet Calculator IPv4 IPv6 (ipsubnet - v.4d)
my settings as follows:
Server: myserver fqdn (can ping this from cacti shell)
Port Standard: 389
Protocol Version: (tried version 2 and 3)
Encryption: None
Referrals: Disabled
Mode: Specific Searching (all other options fail with can't connect to LDAP)
Distinguished Name (DN): "<username>@domainname.com" - should need this anyway
Search Base: "OU=MyOU,OU=MyOU1,OU=MyOU2,OU=MyOU3,DC=domainname,DC=com"
Search Filter: "(&(objectclass=user)(objectcategory=user)(userPrincipalName=<username>*))"
Search Distingished Name (DN): tried the following
username
CN=acccountname,OU=MyOU,OU=MyOU2,DC=domain,DC=com
username@domainname.com - had seen post saying to use primay suffix name for user
Search Password: password
Have seen a post saying that quote was left out of line in ldap.php file
function cacti_ldap_search_dn($username,$ldap_dn
have changed to
function cacti_ldap_search_dn($username ="",$ldap_dn
still made no difference.
I have tried about every combination of values for the different fields i need to fill in and i think they should be fine as i have seen many error messages before this relating to not connecting to LDAP and i have got past these.
Is there any bug still in the script that is stopping this from working?
this is the output of my cacti log:
cat /var/www/html/log/cacti.log | grep LDAP
08/09/2009 01:23:44 PM - AUTH LDAP_SEARCH: Unable to find users DN
08/09/2009 01:23:44 PM - AUTH LOGIN: LDAP Error: Unable to find users DN
hoping someone has came across this before.
thanks