Comments (6)
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.
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.
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.
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.
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.
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)
- Error username_field not defined
- With model usage, no tutorial or instruction HOT 1
- Update the installation section of readme HOT 1
- Call to undefined method Ccovey\LdapAuth\LdapAuthServiceProvider::attempt() HOT 1
- Not compatible with Laravel 4.1.26 HOT 8
- Prevent running this when using Artisan and SSL/TLS enabled HOT 3
- Laravel 4.1.26 upgrade error HOT 3
- MassAssignmentException being thrown when user exists in local DB. HOT 2
- Bypassing User Model for auth HOT 2
- Get "Departments"
- Error in LdapUser.php
- Just check if username exists
- Using key "username" instead of method "getUsernameField()"
- recursive_groups doesn't work
- Error thrown when using admin creds, returning false when not
- Class 'Ccovey\LdapAuth\InvalidArgumentException' not found
- adldap/adldap issue seems to be back HOT 1
- Possible to log users in to multiple domains ?
- Installing this HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ldap-auth.