Giter VIP home page Giter VIP logo

Comments (6)

ccovey avatar ccovey commented on July 30, 2024

This is something I sort of knew about but didn't think of the implications with regards to relationships. I'll get something up here very soon that will fix the issue.

from ldap-auth.

strebl avatar strebl commented on July 30, 2024

I have some weird problems..

I added the account_suffix to the username in the users table. Thats why couldn't use my relationships. After removing the suffix from the table, I can use Auth::relationship. But now the login fails silently...

If I change the Primarykey of the table from id to username booth works. But to be honest, that isn't what I want...

If I dd( Auth::check() ) while login, it says true. After the redirect it is false again...

Any advices?

from ldap-auth.

strebl avatar strebl commented on July 30, 2024

After changing fields username to userprincipalname all is working as intended.

I can now use Auth::posts()
I can login without user in table
I can login with user in table

Maybe an example in the docs would be good?

from ldap-auth.

davidlanier avatar davidlanier commented on July 30, 2024

Perhaps this is unrelated, but I am getting similar errors when trying to access the user's properties as defined at http://adldap.sourceforge.net/wiki/doku.php?id=documentation_user_functions#infocollection_username_fields_null

I get an undefined index error on line 48 in vendor\ccovey\ldap-auth\src\Ccovey\LdapAuth\LdapUser.php when I try to use Auth::user()->firstname or any of the other properties listed on the sourceforge site.

* Dynamically access the user's attributes.
     *
     * @param  string  $key
     * @return mixed
     */
    public function __get($key)
    {
        return $this->attributes[$key];
    }

Also, while I'm here, is it possible to access the AD methods such as Auth::user()->delete($username) or ``` Auth::user()->groups($username, $recursive = NULL) ''' ?

from ldap-auth.

saleemepoch avatar saleemepoch commented on July 30, 2024

I am encountering the same issue. While logged in via LDAP, any creation or deletion of User throws this error:

ErrorException
Undefined index: id
open: D:\xampp\htdocs\laravel\vendor\ccovey\ldap-auth\src\Ccovey\LdapAuth\LdapUser.php
* Dynamically access the user's attributes.
*
* @param string $key
* @return mixed
*/
public function __get($key)
{
return $this->attributes[$key];
}

Any help will be greatly appreciated. The package otherwise is very helpful. Thanks

from ldap-auth.

ccovey avatar ccovey commented on July 30, 2024

This is just for authentication, currently. I don't have plans currently to implement user crud but its not a terrible idea for another package in the future.

from ldap-auth.

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.