Skip to content
This repository has been archived by the owner on Jul 24, 2023. It is now read-only.

Blank page at quick start #784

Open
jordandubu opened this issue May 31, 2021 · 1 comment
Open

Blank page at quick start #784

jordandubu opened this issue May 31, 2021 · 1 comment

Comments

@jordandubu
Copy link

jordandubu commented May 31, 2021

  • Adldap2 Version: latest 10.3.2
  • LDAP Type: Active Directory
  • PHP Version: 7.4

Description:

This gives me a blank page, did i do something wrong?

<?php
require __DIR__ . '/vendor/autoload.php';
$ad = new Adldap\Adldap();

$config = [
    // Mandatory Configuration Options
    'hosts'            => ['SRV-WS.CALLTREE.LAN', '192.168.191.177'],
    'base_dn'          => 'CN=admin,CN=Users,DC=CALLTREE,DC=LAN',
    'username'         => 'admin',
    'password'         => 'CallstrategyAD-',
];

$connectionName = 'my-connection';

$ad->addProvider($config, $connectionName);

try {
    $provider = $ad->connect($connectionName);

    // Great, we're connected!
} catch (Adldap\Auth\BindException $e) {
    // Failed to connect.
}

Steps To Reproduce:

composer require adldap2/adldap2
nano randomfile.php

@fmp-martins
Copy link

I've seen the same behavior once. The LDAP library was missing in the system.
Check if you have the LDAP librbry installed and configured in your LDAP.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants