When trying to enable module, I get the following error:

"Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /modules/ldap_lookup/ldap_lookup.class on line 5"

Trying to install on Drupal 5.1 running on OS X 10.4.9, PHP 4.4.6

Comments

allan_q’s picture

Try moving up to PHP5. I am running on Debian and the PHP upgrade fixed the module load. Although I'm still having issues with the NTLM auth.

kibblewhite’s picture

That is a strange error. Either the code has been downloaded and become corrupted or it's running on an older version of PHP. I would update to PHP5 and see if the error persist? The first seven line of code of this class is:
<?php

class ldap_lookup_class {

public $connection; /** object */
public $binding; /** object */
private $name; /** string */
...

I can't see anything wrong there.

kibblewhite’s picture

Status: Active » Closed (works as designed)