Download the PHP package mediawiki/ldap-provider without Composer

On this page you can find all versions of the php package mediawiki/ldap-provider. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package ldap-provider

== Extension:LDAPProvider ==

This extension provides a common infrastructure to connect to a LDAP resource and run queries against it.

=== Installation ===

This extension can be installed by creating a composer.local.json file in your MediaWiki's installation directory containing the following (or merging this into your current composer.local.json):

{ "require": { "mediawiki/ldap-provider": "dev-master" }, "config": { "prefer": "source" } }

Note that "prefer": "source" causes composer to use a clone of the git repository if it can.

=== Configuration ===

In the simplest case where you have a single LDAP server to query, you need to simply specify your LDAP server and the json file. By default LDAPProvider looks for this file in /etc/mediawiki/ldapprovider.json. If LDAProvider is installed, but cannot find it configuration file, it will fail with an error message.

LDAPProvider contains a sample configuration file that points to the [http://www.forumsys.com/ Forum Systems] [http://www.forumsys.com/tutorials/integration-how-to/ldap/online-ldap-test-server/ online ldap test server] in the included ldapprovider.json. This file and the server (if it is accessible on your network) will allow you to test the extension without affecting production systems or configuring your own LDAP server.

The contents of ldapprovider.json demonstrates a minimal configuration:

{ "LDAP Demo": { "connection": { "server": "10.5.5.1", "user": "cn=read-only-admin,dc=example,dc=com", "pass": "password", "basedn": "dc=example,dc=com", "searchstring": "uid=USER-NAME,dc=example,dc=com" } }

Other configurations are possible.

If you just want to try out the sample configuration, adding the following to your LocalSettings.php should be all that is needed:

$LDAPProviderDomainConfigs = "$IP/extensions/LDAPProvider/ldapprovider.json";

==== Alternative configuration via PHP ====

In LocalSettings.php add

$LDAPProviderDomainConfigProvider = function( $ldapConfig ) { return new \MediaWiki\Extension\LDAPProvider\DomainConfigProvider\InlinePHPArray( [ //Domain name 'LDAP' => [ 'connection' => [ 'server' => '10.5.5.1', 'user' => 'cn=read-only-admin,dc=example,dc=com', 'pass' => 'password', 'basedn' => 'dc=example,dc=com', 'searchstring' => 'uid=USER-NAME,dc=example,dc=com' ] ] ] ); };

=== Testing ===

Tests are provided. These can be run using the following in your MediaWiki's installation directory:

$ ./tests/phpunit/phpunit.php extensions/LDAPProvider

All versions of ldap-provider with dependencies

PHP Build Version
Package Version
Requires composer/installers Version ~1.0|~2
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package mediawiki/ldap-provider contains the following files

Loading the files please wait ....