-
-
Notifications
You must be signed in to change notification settings - Fork 90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LDAP changes to for AD flexibility #227
Conversation
auth.php
Outdated
user_error(self::E_LDAP,E_USER_ERROR); | ||
$port=intval($this->args['port']?:389) | ||
$this->args['filter']=$this->args['filter']?:"uid=".$id; | ||
$filter=$this->args['filter']=$this->args['filter']?:"uid=".$id; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2nd assignment repeated from one line above
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Damn - missed that. :(
119 is the line to go.
Looks fine 👍 Can someone please verify/test this change once more?!.. got no LDAP instance here atm. |
It works on the project I am using it currently for, but to play it safe, I can fire up a new LDAP server after work, and test it against that, if that's acceptable. Is there a test/design policy/standard that I should be following? |
The test cases are in the fatfree/dev branch. The problem is, that there are no LDAP tests (or I found none). I found only a few tests for Auth. |
there is missing semicol(;) at row 118 at lib/auth.php |
fixed. thanks |
As mentioned (and similar to PR1068 on bcosca/fatfree), changes made to make the LDAP auth work against and Active Directory environment ,with a few changes to keep it backwardly compatible to original code.