> On Sep 18, 2015, at 3:25 PM, Bryan Moorehead <[email protected]> > wrote: > > > Also..... > > egrep -i "echo" ../index.php |egrep '\\\$' > > echo "\$result (PHP-LDAP presence) = $result <br>"; > echo "\$ldap_login_attribute = $ldap_login_attribute <br>"; > echo "\$ldap_fullname_attribute = $ldap_fullname_attribute <br>"; > echo "\$recaptcha_ssl = $recaptcha_ssl <br>"; > > > > From load of https://mfmp-ssrc-zon-fladm4/index.php# > <https://mfmp-ssrc-zon-fladm4/index.php#> > > > > $result (PHP-LDAP presence) = > > Use Tokens = 1 > > $ldap_login_attribute = uid > > $ldap_fullname_attribute = cn > > $recaptcha_ssl = 1 > > > > > > On 09/18/15 02:04 PM, Bryan Moorehead wrote: >> Clement, >> >> >> I downloaded a fresh copy of ltb-project-self-service-password-0.8. I also >> re-enabled debug = true in config.inc.php, although >> /var/log/self-service-password is s till empty. >> I set several variables in sendtoken.php, (shown below) to echo out and am >> including a screenshot of the results. >> I have also included the configuration section from config.inc.php >> >> >> In sendtoken.php it seems as if there is an issue with ldap_connect and >> ldap_bind functions failing?? I'm guessing that as I assume that is why >> $ldap/$ldap_connect as well as $bind/$ldap_bind appear to be null. >> >> $ldap = ldap_connect($ldap_url); >> >> $bind = ldap_bind($ldap); >> >> >> Is it possible that I am missing something from my PHP install that is >> preventing LDAP connections from being generated? >> >> >> >> Thanks again for your help, >> Bryan Moorehead >> >> >> >> >> config.inc.php >> >> #============================================================================== >> # Configuration >> #============================================================================== >> # LDAP >> $ldap_url = "ldap://10.1.1.101" <ldap://10.1.1.101>; >> $ldap_binddn = "cn=Manager,dc=ps,dc=mymarketplace,dc=com"; >> $ldap_bindpw = "xxxxxxx"; >> $ldap_base = "dc=ps,dc=mymarketplace,dc=com"; >> $ldap_login_attribute = "uid"; >> $ldap_fullname_attribute = "cn"; >> $ldap_filter = "(&(objectClass=person)($ldap_login_attribute={login}))"; >> >> >> >> Listing of variables echoed from sendtoken.php >> >> egrep -i "echo" ../pages/sendtoken.php |egrep '\\\$' >> >> echo "\$login = $login <br>"; >> echo "\$mail = $mail <br>"; >> echo "\$ldap = $ldap <br>"; >> echo "\$ldap_url = $ldap_url <br>"; >> echo "\$ldap_binddn = $ldap_binddn <br>"; >> echo "\$ldap_bindpw = $ldap_bindpw <br>"; >> echo "\$bind = $bind <br>"; >> >> >> >> Apache error.log >> >> [Fri Sep 18 13:52:09 2015] [error] [client 10.2.3.100] PHP Notice: >> Undefined variable: pwd_forbidden_chars in /var/apache2/2.2/htdocs/index.php >> on line 99, referer: http://mfmp-ssrc-zon-fladm4/index.php >> <http://mfmp-ssrc-zon-fladm4/index.php> >> [Fri Sep 18 13:52:09 2015] [error] [client 10.2.3.100] PHP Stack trace:, >> referer: http://mfmp-ssrc-zon-fladm4/index.php >> <http://mfmp-ssrc-zon-fladm4/index.php> >> [Fri Sep 18 13:52:09 2015] [error] [client 10.2.3.100] PHP 1. {main}() >> /var/apache2/2.2/htdocs/index.php:0, referer: >> http://mfmp-ssrc-zon-fladm4/index.php <http://mfmp-ssrc-zon-fladm4/index.php> >> [Fri Sep 18 13:52:09 2015] [error] [client 10.2.3.100] PHP Warning: >> ldap_set_option(): supplied argument is not a valid ldap link resource in >> /var/apache2/2.2/htdocs/pages/sendtoken.php on line 83, referer: >> http://mfmp-ssrc-zon-fladm4/index.php <http://mfmp-ssrc-zon-fladm4/index.php> >> [Fri Sep 18 13:52:09 2015] [error] [client 10.2.3.100] PHP Stack trace:, >> referer: http://mfmp-ssrc-zon-fladm4/index.php >> <http://mfmp-ssrc-zon-fladm4/index.php> >> [Fri Sep 18 13:52:09 2015] [error] [client 10.2.3.100] PHP 1. {main}() >> /var/apache2/2.2/htdocs/index.php:0, referer: >> http://mfmp-ssrc-zon-fladm4/index.php <http://mfmp-ssrc-zon-fladm4/index.php> >> [Fri Sep 18 13:52:09 2015] [error] [client 10.2.3.100] PHP 2. include() >> /var/apache2/2.2/htdocs/index.php:136, referer: >> http://mfmp-ssrc-zon-fladm4/index.php <http://mfmp-ssrc-zon-fladm4/index.php> >> [Fri Sep 18 13:52:09 2015] [error] [client 10.2.3.100] PHP 3. >> ldap_set_option() /var/apache2/2.2/htdocs/pages/sendtoken.php:83, referer: >> http://mfmp-ssrc-zon-fladm4/index.php <http://mfmp-ssrc-zon-fladm4/index.php> >> [Fri Sep 18 13:52:09 2015] [error] [client 10.2.3.100] PHP Warning: >> ldap_set_option(): supplied argument is not a valid ldap link resource in >> /var/apache2/2.2/htdocs/pages/sendtoken.php on line 84, referer: >> http://mfmp-ssrc-zon-fladm4/index.php <http://mfmp-ssrc-zon-fladm4/index.php> >> [Fri Sep 18 13:52:09 2015] [error] [client 10.2.3.100] PHP Stack trace:, >> referer: http://mfmp-ssrc-zon-fladm4/index.php >> <http://mfmp-ssrc-zon-fladm4/index.php> >> [Fri Sep 18 13:52:09 2015] [error] [client 10.2.3.100] PHP 1. {main}() >> /var/apache2/2.2/htdocs/index.php:0, referer: >> http://mfmp-ssrc-zon-fladm4/index.php <http://mfmp-ssrc-zon-fladm4/index.php> >> [Fri Sep 18 13:52:09 2015] [error] [client 10.2.3.100] PHP 2. include() >> /var/apache2/2.2/htdocs/index.php:136, referer: >> http://mfmp-ssrc-zon-fladm4/index.php <http://mfmp-ssrc-zon-fladm4/index.php> >> [Fri Sep 18 13:52:09 2015] [error] [client 10.2.3.100] PHP 3. >> ldap_set_option() /var/apache2/2.2/htdocs/pages/sendtoken.php:84, referer: >> http://mfmp-ssrc-zon-fladm4/index.php <http://mfmp-ssrc-zon-fladm4/index.php> >> [Fri Sep 18 13:52:09 2015] [error] [client 10.2.3.100] PHP Warning: >> ldap_bind() expects parameter 1 to be resource, boolean given in >> /var/apache2/2.2/htdocs/pages/sendtoken.php on line 88, referer: >> http://mfmp-ssrc-zon-fladm4/index.php <http://mfmp-ssrc-zon-fladm4/index.php> >> [Fri Sep 18 13:52:09 2015] [error] [client 10.2.3.100] PHP Stack trace:, >> referer: http://mfmp-ssrc-zon-fladm4/index.php >> <http://mfmp-ssrc-zon-fladm4/index.php> >> [Fri Sep 18 13:52:09 2015] [error] [client 10.2.3.100] PHP 1. {main}() >> /var/apache2/2.2/htdocs/index.php:0, referer: >> http://mfmp-ssrc-zon-fladm4/index.php <http://mfmp-ssrc-zon-fladm4/index.php> >> [Fri Sep 18 13:52:09 2015] [error] [client 10.2.3.100] PHP 2. include() >> /var/apache2/2.2/htdocs/index.php:136, referer: >> http://mfmp-ssrc-zon-fladm4/index.php <http://mfmp-ssrc-zon-fladm4/index.php> >> [Fri Sep 18 13:52:09 2015] [error] [client 10.2.3.100] PHP 3. ldap_bind() >> /var/apache2/2.2/htdocs/pages/sendtoken.php:88, referer: >> http://mfmp-ssrc-zon-fladm4/index.php <http://mfmp-ssrc-zon-fladm4/index.php> >> [Fri Sep 18 13:52:09 2015] [error] [client 10.2.3.100] PHP Warning: >> ldap_errno() expects parameter 1 to be resource, boolean given in >> /var/apache2/2.2/htdocs/pages/sendtoken.php on line 99, referer: >> http://mfmp-ssrc-zon-fladm4/index.php <http://mfmp-ssrc-zon-fladm4/index.php> >> [Fri Sep 18 13:52:09 2015] [error] [client 10.2.3.100] PHP Stack trace:, >> referer: http://mfmp-ssrc-zon-fladm4/index.php >> <http://mfmp-ssrc-zon-fladm4/index.php> >> [Fri Sep 18 13:52:09 2015] [error] [client 10.2.3.100] PHP 1. {main}() >> /var/apache2/2.2/htdocs/index.php:0, referer: >> http://mfmp-ssrc-zon-fladm4/index.php <http://mfmp-ssrc-zon-fladm4/index.php> >> [Fri Sep 18 13:52:09 2015] [error] [client 10.2.3.100] PHP 2. include() >> /var/apache2/2.2/htdocs/index.php:136, referer: >> http://mfmp-ssrc-zon-fladm4/index.php <http://mfmp-ssrc-zon-fladm4/index.php> >> [Fri Sep 18 13:52:09 2015] [error] [client 10.2.3.100] PHP 3. ldap_errno() >> /var/apache2/2.2/htdocs/pages/sendtoken.php:99, referer: >> http://mfmp-ssrc-zon-fladm4/index.php <http://mfmp-ssrc-zon-fladm4/index.php> >> [Fri Sep 18 13:52:09 2015] [error] [client 10.2.3.100] PHP Warning: >> ldap_search(): supplied argument is not a valid ldap link resource in >> /var/apache2/2.2/htdocs/pages/sendtoken.php on line 107, referer: >> http://mfmp-ssrc-zon-fladm4/index.php <http://mfmp-ssrc-zon-fladm4/index.php> >> [Fri Sep 18 13:52:09 2015] [error] [client 10.2.3.100] PHP Stack trace:, >> referer: http://mfmp-ssrc-zon-fladm4/index.php >> <http://mfmp-ssrc-zon-fladm4/index.php> >> [Fri Sep 18 13:52:09 2015] [error] [client 10.2.3.100] PHP 1. {main}() >> /var/apache2/2.2/htdocs/index.php:0, referer: >> http://mfmp-ssrc-zon-fladm4/index.php <http://mfmp-ssrc-zon-fladm4/index.php> >> [Fri Sep 18 13:52:09 2015] [error] [client 10.2.3.100] PHP 2. include() >> /var/apache2/2.2/htdocs/index.php:136, referer: >> http://mfmp-ssrc-zon-fladm4/index.php <http://mfmp-ssrc-zon-fladm4/index.php> >> [Fri Sep 18 13:52:09 2015] [error] [client 10.2.3.100] PHP 3. >> ldap_search() /var/apache2/2.2/htdocs/pages/sendtoken.php:107, referer: >> http://mfmp-ssrc-zon-fladm4/index.php <http://mfmp-ssrc-zon-fladm4/index.php> >> [Fri Sep 18 13:52:09 2015] [error] [client 10.2.3.100] PHP Warning: >> ldap_errno() expects parameter 1 to be resource, boolean given in >> /var/apache2/2.2/htdocs/pages/sendtoken.php on line 109, referer: >> http://mfmp-ssrc-zon-fladm4/index.php <http://mfmp-ssrc-zon-fladm4/index.php> >> [Fri Sep 18 13:52:09 2015] [error] [client 10.2.3.100] PHP Stack trace:, >> referer: http://mfmp-ssrc-zon-fladm4/index.php >> <http://mfmp-ssrc-zon-fladm4/index.php> >> [Fri Sep 18 13:52:09 2015] [error] [client 10.2.3.100] PHP 1. {main}() >> /var/apache2/2.2/htdocs/index.php:0, referer: >> http://mfmp-ssrc-zon-fladm4/index.php <http://mfmp-ssrc-zon-fladm4/index.php> >> [Fri Sep 18 13:52:09 2015] [error] [client 10.2.3.100] PHP 2. include() >> /var/apache2/2.2/htdocs/index.php:136, referer: >> http://mfmp-ssrc-zon-fladm4/index.php <http://mfmp-ssrc-zon-fladm4/index.php> >> [Fri Sep 18 13:52:09 2015] [error] [client 10.2.3.100] PHP 3. ldap_errno() >> /var/apache2/2.2/htdocs/pages/sendtoken.php:109, referer: >> http://mfmp-ssrc-zon-fladm4/index.php <http://mfmp-ssrc-zon-fladm4/index.php> >> [Fri Sep 18 13:52:09 2015] [error] [client 10.2.3.100] PHP Warning: >> ldap_first_entry() expects parameter 1 to be resource, boolean given in >> /var/apache2/2.2/htdocs/pages/sendtoken.php on line 116, referer: >> http://mfmp-ssrc-zon-fladm4/index.php <http://mfmp-ssrc-zon-fladm4/index.php> >> [Fri Sep 18 13:52:09 2015] [error] [client 10.2.3.100] PHP Stack trace:, >> referer: http://mfmp-ssrc-zon-fladm4/index.php >> <http://mfmp-ssrc-zon-fladm4/index.php> >> [Fri Sep 18 13:52:09 2015] [error] [client 10.2.3.100] PHP 1. {main}() >> /var/apache2/2.2/htdocs/index.php:0, referer: >> http://mfmp-ssrc-zon-fladm4/index.php <http://mfmp-ssrc-zon-fladm4/index.php> >> [Fri Sep 18 13:52:09 2015] [error] [client 10.2.3.100] PHP 2. include() >> /var/apache2/2.2/htdocs/index.php:136, referer: >> http://mfmp-ssrc-zon-fladm4/index.php <http://mfmp-ssrc-zon-fladm4/index.php> >> [Fri Sep 18 13:52:09 2015] [error] [client 10.2.3.100] PHP 3. >> ldap_first_entry() /var/apache2/2.2/htdocs/pages/sendtoken.php:116, referer: >> http://mfmp-ssrc-zon-fladm4/index.php <http://mfmp-ssrc-zon-fladm4/index.php> >> [Fri Sep 18 13:52:09 2015] [error] [client 10.2.3.100] PHP Warning: >> ldap_get_dn() expects parameter 1 to be resource, boolean given in >> /var/apache2/2.2/htdocs/pages/sendtoken.php on line 117, referer: >> http://mfmp-ssrc-zon-fladm4/index.php <http://mfmp-ssrc-zon-fladm4/index.php> >> [Fri Sep 18 13:52:09 2015] [error] [client 10.2.3.100] PHP Stack trace:, >> referer: http://mfmp-ssrc-zon-fladm4/index.php >> <http://mfmp-ssrc-zon-fladm4/index.php> >> [Fri Sep 18 13:52:09 2015] [error] [client 10.2.3.100] PHP 1. {main}() >> /var/apache2/2.2/htdocs/index.php:0, referer: >> http://mfmp-ssrc-zon-fladm4/index.php <http://mfmp-ssrc-zon-fladm4/index.php> >> [Fri Sep 18 13:52:09 2015] [error] [client 10.2.3.100] PHP 2. include() >> /var/apache2/2.2/htdocs/index.php:136, referer: >> http://mfmp-ssrc-zon-fladm4/index.php <http://mfmp-ssrc-zon-fladm4/index.php> >> [Fri Sep 18 13:52:09 2015] [error] [client 10.2.3.100] PHP 3. >> ldap_get_dn() /var/apache2/2.2/htdocs/pages/sendtoken.php:117, referer: >> http://mfmp-ssrc-zon-fladm4/index.php <http://mfmp-ssrc-zon-fladm4/index.php> >> [Fri Sep 18 13:52:09 2015] [error] [client 10.2.3.100] LDAP - User bryanm >> not found, referer: http://mfmp-ssrc-zon-fladm4/index.php >> <http://mfmp-ssrc-zon-fladm4/index.php> >> >> >> >> >> >> <Mail Attachment.gif> >> >> > > _______________________________________________ > ltb-users mailing list > [email protected] > http://lists.ltb-project.org/listinfo/ltb-users
_______________________________________________ ltb-users mailing list [email protected] http://lists.ltb-project.org/listinfo/ltb-users
