Git Product home page Git Product logo

Comments (7)

blu-IT avatar blu-IT commented on July 18, 2024

OK, I found out now how to configure logging (that is set "off" by default):

http://smad.jmu.edu/reserve/readme_installation.html

Now I have this output:

2021-05-27T15:42:46+02:00 [207298] DEBUG default - [User=  ()] Loading plugin. Type=Authentication, Plugin=Ldap [File=/home/www/booking/lib/Common/PluginManager.php,Line=194]
2021-05-27T15:42:57+02:00 [207414] DEBUG default - [User=  ()] Loading plugin. Type=Authentication, Plugin=Ldap [File=/home/www/booking/lib/Common/PluginManager.php,Line=194]
2021-05-27T15:42:57+02:00 [207414] DEBUG default - [User=  ()] Trying to connect to LDAP [File=/home/www/booking/plugins/Authentication/Ldap/Ldap2Wrapper.php,Line=33]
2021-05-27T15:42:57+02:00 [207414] ERROR default - [User=  ()] Could not connect to LDAP server. Check your settings in Ldap.config.php : Bind failed: Can't contact LDAP server: Unknown Net_LDAP2 Error (-1) [File=/home/www/booking/plugins/Authentication/Ldap/Ldap2Wrapper.php,Line=40]
2021-05-27T15:42:57+02:00 [207414] ERROR default - [User=  ()] Uncaught exception: Exception: Could not connect to LDAP server. Check your settings in Ldap.config.php : Bind failed: Can't contact LDAP server: Unknown Net_LDAP2 Error (-1) in /home/www/booking/plugins/Authentication/Ldap/Ldap2Wrapper.php:41

from app.

effgarces avatar effgarces commented on July 18, 2024

I never used the LDAP authentication and I don't have a setup that I can use to test, so I'm not really of much help in this situation. Hopefully someone from the community can chip in and give a hand. If not, I will try to setup something to test this, but I don't have a timeline todo this, I'm swamped with work.

from app.

blu-IT avatar blu-IT commented on July 18, 2024

Thanks, I appreciate your help! There is no hurry for the moment. I will also do some further tests and report.

from app.

evertonpavan avatar evertonpavan commented on July 18, 2024

Thanks, I appreciate your help! There is no hurry for the moment. I will also do some further tests and report.

Hello @blu-IT!

I was able to configure authentication via ldap.

Are you still having this problem?

from app.

blu-IT avatar blu-IT commented on July 18, 2024

Hi @evertonpavan

thanks for your feedback!

To be honest I did not try anymore, because the project was freezed.
Having in mind, that my installation is a year ago and the surely will be some updates, I will close this issue and post another one, when the project goes on.

Thanks!

from app.

crsleeth avatar crsleeth commented on July 18, 2024

@evertonpavan Do you mind posting your sanitized configuration for LDAP (via Active Directory?) I am having a difficult time getting LDAP auth working despite having LDAP working via other similar setups like Nextcloud.

from app.

evertonpavan avatar evertonpavan commented on July 18, 2024

Hi @crsleeth!

This is my plugins/Authentication/Ldap/Ldap.config.php file.

It's works for authentication on a samba4 server.

$conf['settings']['host'] = 'ldap.server.com';
$conf['settings']['port'] = '389';
$conf['settings']['version'] = '3';
$conf['settings']['starttls'] = 'false';
$conf['settings']['binddn'] = 'cn=admin-ldap,dc=company,dc=com';
$conf['settings']['bindpw'] = 'password';
$conf['settings']['binddn'] = 'dc=company,dc=com';
$conf['settings']['filter'] = '';
$conf['settings']['scope'] = '';
$conf['settings']['required.group'] = '';
$conf['settings']['database.auth.when.ldap.user.not.found'] = 'true';
$conf['settings']['ldap.debug.enabled'] = 'true';
$conf['settings']['attribute.mapping'] = 'sn=sn,givenname=givenname,mail=mail,memberof=Groups';
$conf['settings']['user.id.attribute'] = 'sAMAccountName';
$conf['settings']['sync.groups'] = 'true';
$conf['settings']['prevent.clean.username'] = 'false';

from app.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.