adldap

Adldap2-Laravel, where to put my logic

ぐ巨炮叔叔 提交于 2020-05-27 12:17:00
问题 I need to use Adldap2-Laravel. My laravel app is based in Laravel-boilerplate 5. The only login() method that I see that the app is using is this one: vendor\laravel\framework\src\Illuminate\Foundation\Auth\AuthenticatesUsers.php I know it's a vendor, but for testing purposes I have edited the public function login(Request $request) method like this way: public function login(Request $request){ if (\Adldap::auth()->attempt(str_replace('@example.com', '', $request->email), $request->password))

Adldap2-Laravel, where to put my logic

点点圈 提交于 2020-05-27 12:16:12
问题 I need to use Adldap2-Laravel. My laravel app is based in Laravel-boilerplate 5. The only login() method that I see that the app is using is this one: vendor\laravel\framework\src\Illuminate\Foundation\Auth\AuthenticatesUsers.php I know it's a vendor, but for testing purposes I have edited the public function login(Request $request) method like this way: public function login(Request $request){ if (\Adldap::auth()->attempt(str_replace('@example.com', '', $request->email), $request->password))

Single Sign On with apache on windows 7 and mod_auth_sspi

不问归期 提交于 2020-01-12 09:56:39
问题 I am running a apache (xampp 1.7.3) server on my local windows 7 PC. This PC is connected to a LAN and a Active Directory domain called "colours". My local username is CHRISTOPHER-PC/Christopher, and the domain username is COLOURS/Christopher. For admin connection to the AD server, I use a PHP scripted called adLDAP. As default, this script (examples/authenticate.php) gives the user two input fields for login. This works fine. But I want my users to auto sign in if they are logged in to their

Single Sign On with apache on windows 7 and mod_auth_sspi

旧时模样 提交于 2020-01-12 09:56:24
问题 I am running a apache (xampp 1.7.3) server on my local windows 7 PC. This PC is connected to a LAN and a Active Directory domain called "colours". My local username is CHRISTOPHER-PC/Christopher, and the domain username is COLOURS/Christopher. For admin connection to the AD server, I use a PHP scripted called adLDAP. As default, this script (examples/authenticate.php) gives the user two input fields for login. This works fine. But I want my users to auto sign in if they are logged in to their

php ldap-bind expired password

依然范特西╮ 提交于 2019-12-23 17:21:19
问题 I am using the adldap plugin to connect to a Windows Server AD but my issue is with php ldap_bind as far as I can tell. When a user types in an incorrect password, the error returned from ldap_error (which is used by adldap) is 'Invalid Credentials'. So far so good. The problem arises when a user's password expires or in AD the user is set to change password on next logon (new user, password reset, etc). In this case whatever password the user enters to authenticate, ldap_error returns

PHP: ldap_bind gives 500 Internal Server Error when binding with SSL but not regular bind

浪尽此生 提交于 2019-12-11 16:28:14
问题 I have a Laravel application on a Windows Server 2016, with IIS 10 and PHP 7.2. The application is required to do Active Directory authentication. For this I use https://github.com/Adldap2/Adldap2-Laravel. Authentication was working for a regular LDAP connection to the corporate DC on port 3268, but when I enable SSL and connect it to port 3269 or 636 I get an 500: Internal Server Error "The FastCGI process exited unexpectedly" when my code reaches ldap_bind(). I know SSL works on the DC as I

Fatal error: Class 'adLDAP' not found

拟墨画扇 提交于 2019-12-11 03:45:58
问题 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 /var/www/examples.php on line 14 Line 14 is: $adldap = new adLDAP(); adLDAP.php is in the same folder as examples.php and contains the adLDAP class. Have I messed up my include statement? I get "no such file or directory" with the other formats I have tried. Feels like I

Single Sign On with apache on windows 7 and mod_auth_sspi

◇◆丶佛笑我妖孽 提交于 2019-12-03 20:53:47
I am running a apache (xampp 1.7.3) server on my local windows 7 PC. This PC is connected to a LAN and a Active Directory domain called "colours". My local username is CHRISTOPHER-PC/Christopher, and the domain username is COLOURS/Christopher. For admin connection to the AD server, I use a PHP scripted called adLDAP . As default, this script (examples/authenticate.php) gives the user two input fields for login. This works fine. But I want my users to auto sign in if they are logged in to their AD account. For this I'm trying to use the mod_auth_sspi module . But I'm having some problems... :\

Display thumbnailPhoto from Active Directory in PHP

纵然是瞬间 提交于 2019-11-26 17:48:15
问题 I've set up a system to display everyone's name, email address and phone number from Active Directory however I can't get the 'thumbailPhoto' to work. I have searched around on the internet but haven't been able to find if this is possible or at the very least what format is returned from Active Directory. I am currently using the adldap class so if it is possible to use this that would be ideal. Thanks in advance. Edit: I can retrieve the data in the thumbnailPhoto attribute and if I dump