Questions tagged [adldap]

A PHP package that provides LDAP authentication and directory management tools. It can be use with a lot of LDAP providers like Active Directory, OpenLDAP or FreeIPA.

adldap is intended to help PHP developers overcome hurdles integrating with Active Directory on Linux.

Key features:

  • User authentication
  • Group management
  • User management
  • Contact management
  • Exchange mailbox creation

Official site.

80 questions
2
votes
1 answer

How to list all domains in forest?

In Active Directory Users And Computers it is easy to just select Find =>Entire Directory to search a username. If I don't feed this API (PHP AD LDAP 4.04) the correct account_suffix,base_dn,domain_controllers it will not return ANY information on…
Kellen Stuart
  • 7,775
  • 7
  • 59
  • 82
2
votes
1 answer

Adldap class Interface not found

"@canoas.unilasalle.edu.br", 'domain_controllers' => array("svr-dc01.canoas.unilasalle.edu.br"), 'base_dn' =>…
Matheus
  • 880
  • 1
  • 7
  • 13
2
votes
1 answer

Fatal error: Class 'adLDAP' not found

The file I'm viewing is called examples.php and contains the following code: include (dirname(__FILE__) . "/adLDAP.php"); try { $adldap = new adLDAP(); } The error that displays reads: Fatal error: Class 'adLDAP' not found in…
user3394627
  • 23
  • 1
  • 5
1
vote
1 answer

System.DirectoryServices.Protocol search question

I'm trying to re write a search from System.DirectoryServices to System.DirectoryServices.Protocol In S.DS I get all the requested attributes back, but in S.DS.P, I don't get the GUID, or the HomePhone... The rest of it works for one user. Any…
Eric Brown - Cal
  • 14,135
  • 12
  • 58
  • 97
1
vote
1 answer

adldap2: unable to retrieve custom user attribute

I've written a small php script to retrieve all the users in a certain group and obtain two values, username and employeeid. Unfortunately, the second field is always empty. But a similar query done in Go returns the value. I've read Adldap docs…
Maxxer
  • 1,038
  • 1
  • 18
  • 37
1
vote
1 answer

ADLDAP Curly braces are no longer supported

In a old project that I am migrating I used the old adldap. But now I have to change PHP version and old adldap doesn't work with the error: HP Fatal error: Array and string offset access syntax with curly braces is no longer supported in…
Matzewob
  • 19
  • 1
1
vote
1 answer

Check if AD user is blocked using PHP and adLDAP

I am trying to see if a user is disabled or not (using PHP and adLDAP). I can authenticate a user. The example I am using is this: $user = 'jdoe' $user_info=$adldap->user_info($user,array("useraccountcontrol")); $enabled =…
rtacconi
  • 14,317
  • 20
  • 66
  • 84
1
vote
1 answer

Is there a quicker way to check is a LDAP user is in a LDAP Group? This is slow as it checks each one each time?

Using adldap-laravel and Laravel 5.8. I'm getting permissions based on LDAP groups. I can check if a user is part of a group using: $user->ldap->inGroup('Accounts'); (that returns a bool) However that method also accepts an array, but seems to be…
Fred
  • 69
  • 9
1
vote
0 answers

Not able to connect to AD LDAP on linux server : PHP Fatal error

I am using AD LDAP authentication code to connect my web portal to SSO but I am unable to do so as it is giving me the error below. The same code when tried on the windows server is working fine. Is there any specific permissions that need to be…
1
vote
0 answers

LDAP server with Laravel

I need to connect my laravel website to my LDAP server. But first I want to connect my LDAP server on a new website. I found a tutorial to do that using adldap2/adldap2-laravel: https://github.com/jotaelesalinas/laravel-simple-ldap-auth I've follow…
Fabien Pittier
  • 98
  • 1
  • 2
  • 13
1
vote
1 answer

How do I set up my own ldap in laravel

The existing ldap is only used for authentication. For the application that I created, for example authentication is successful then the user will be able to enter into the system. If not successful then the error message will appear. How do I set…
1
vote
1 answer

Invalid credentials with Adldap::search()->users()->get();

Laravel Version: 5.4 Adldap2-Laravel Version: "^3.0", PHP Version: 5.6.30 I managed to make the connection work to the AD, but I can't seem to make the Auth::attempt work. It will always return false. Anyone got an idea, or a hint? public function…
therabbityouknow
  • 233
  • 2
  • 5
  • 17
1
vote
1 answer

Adldap2 authentication always returns true - Yii2

I'm working in Yii2 with the Adldap extension found here: https://github.com/Adldap2/Adldap2 I'm running into an issue when I try to authenticate users on my ldap server. I can successfully make a connection and and retrieve user data, but when…
Maverick
  • 37
  • 1
  • 8
1
vote
0 answers

adldap2 integration with laravel 5.3 binding to Auth driver

Ok, so there is some documentation on this, which I've followed (https://github.com/Adldap2/Adldap2-Laravel), but I cannot seem to get this working. I'm also using laravel 5.3 so I don't know if that has something to do with it. And please bear with…
1
vote
1 answer

AD LDAP - How to list all users within a Group

Im currenlty using the following ADLDAP repository: http://adldap.sourceforge.net/ On a page I am just currently trying to achieve: taking a list of users in a certain AD Group and put it into a dropdown for me to select in HTML. Right now I have…