Coder Social home page Coder Social logo

Comments (15)

irl avatar irl commented on May 17, 2024

Hi, just wanted to register interest in this enhancement. I'd like to deploy this for our hackerspace members and would be happy to help with testing.

from paperwork.

mrusme avatar mrusme commented on May 17, 2024

@irl sounds great! We'll get back, as soon as someone started implementing this. :-)

from paperwork.

KiPiCoOl avatar KiPiCoOl commented on May 17, 2024

👍

from paperwork.

 avatar commented on May 17, 2024

Anybody tried this package? https://github.com/dsdevbe/ldap-connector

from paperwork.

KiPiCoOl avatar KiPiCoOl commented on May 17, 2024

i try it
i configure ad access, i delete

'Illuminate\Auth\AuthServiceProvider',

and i put

'Dsdevbe\LdapConnector\LdapConnectorServiceProvider',

but where make this part of change https://github.com/dsdevbe/ldap-connector#usage ?

I can bypass "sign up" with ldap connector ?

from paperwork.

 avatar commented on May 17, 2024

What do you mean by "bypass sign up"? Your ldap server must provide logins and passwords as I understand and no sign up must be present(you hide it by removing).

from paperwork.

KiPiCoOl avatar KiPiCoOl commented on May 17, 2024

i want all users in LDAP can directly login (sign in) without sign up (if possible)

from paperwork.

 avatar commented on May 17, 2024

Just go into the code and remove the signup button. We will provide better support for this in future.

In particular, you want to remove lines 31-35 of this file to remove the button: https://github.com/twostairs/paperwork/blob/master/frontend/app/views/user/login.blade.php

from paperwork.

KiPiCoOl avatar KiPiCoOl commented on May 17, 2024

Ok, thx :)
But for the moment, i don't hope support to configure ldap connector ?
I must wait the next version ?

from paperwork.

 avatar commented on May 17, 2024

It should work out of the box by overriding the default auth, you just need to configure it as in their readme. Anyway this is not top priority right now.

from paperwork.

KiPiCoOl avatar KiPiCoOl commented on May 17, 2024

Ok, i understand.

if someone has some free time to help me :)

I install it (maybe not correctly) and it doesn't work oob.

Users must sign up even i configure ldap connector ?

how i can see (and enable) logs when i login ?
I must sign up with an email address, but with ldap connector, username is my login (not may email), no ?

Thx

from paperwork.

mrusme avatar mrusme commented on May 17, 2024

Signup can be disabled through configuration. In app/config/paperwork.php set 'registration' => false. Please don't hack the code. :-)

//Edit: @Renofr, right now we don't provide LDAP authentication. That is why this issue is for. And of course, users won't need to sign up as soon as a proper LDAP implementation was built.

from paperwork.

snowbldr avatar snowbldr commented on May 17, 2024

I'm currently working on this. I gave ldap-connector a shot but it was having some problems that I could not figure out. I am now creating a userprovider that extends the eloquent user provider and does authentication checks using adldap. This makes it so that we can still use the same model that we have, but still be able to use ldap for authentication. I've got it most of the way done, but there's a few bits and pieces to finish up.

I still need to implement automatic registration with ldap, so that if a user successfully authenticates against ldap, but is a new user, it will create a new user and do the registration process.

After that, It should be more or less functional.

I propose that while ldap authentication is enabled, registration is automatically disabled, as I don't believe it would be reasonable to allow the paperwork application to create new users in the ldap directory. Although, this would be technically possible if paperwork was supplied with a domain administrator account. Input on this subject would be appreciated.

As a side note, currently we are using the user's email as the username, but this causes problems due to users in ldap not being emails. For now, I've simply removed the restriction that the username has to be an email on login, but will leave it in place for registration. This makes it so that the normal registration process will enforce the email, but we will be able to manually create users in code with whatever username we need. If there's a better way to handle this, I'd be happy to convert it.

My most recent changes are here: https://github.com/narcolepticsnowman/paperwork/tree/implement_ldap_auth

from paperwork.

 avatar commented on May 17, 2024

#297 needs testing

from paperwork.

 avatar commented on May 17, 2024

Done in #292 #297 and #346 . Please file new issues on this topic as they appear.

from paperwork.

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.