return false;
}
if($config == null) $this->default_ldap=$ldap;
+
+ if (isset($this->schema_cachefile)) {
+ $cacheConfig = array(
+ 'path' => $this->schema_cachefile,
+ 'max_age' => (isset($this->schema_maxage) ? $this->schema_maxage : 1200 )
+ );
+ $cacheObj = new Net_LDAP2_SimpleFileSchemaCache($cacheConfig);
+ $ldap->registerSchemaCache($cacheObj);
+ }
return $ldap;
}
See http://pear.php.net/manual/en/package.networking.net-ldap2.connecting.php
scope: Default search scope.
See http://pear.php.net/manual/en/package.networking.net-ldap2.connecting.php
+schema_cachefile: File location to store ldap schema.
+schema_maxage: TTL for cache file.
attributes: an array that relates StatusNet user attributes to LDAP ones
username*: LDAP attribute value entered when authenticating to StatusNet