Skip to content
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

Add TLS and User Identity options for openldap authentication. #3

Merged
merged 3 commits into from Nov 4, 2016
Merged

Add TLS and User Identity options for openldap authentication. #3

merged 3 commits into from Nov 4, 2016

Conversation

jobezic
Copy link

@jobezic jobezic commented Oct 25, 2016

I have added:

  • an option in User Manager -> Settings -> Authentication Settings to allow to use TLS for ldap authentication. Without it you cannot sync users against an ldap server that uses that kind of authentication. The default value is to use the TLS authentication.
  • the User Identity field to allow to configure user identity for ldap.
  • a missing sig_handler func to Msad class.

@jobezic jobezic changed the title Add TLS option for openldap authentication. Add TLS and User Identity options for openldap authentication. Oct 26, 2016
@jfinstrom
Copy link
Contributor

Is this against a ticket? If not can you open a ticket at http://issues.freepbx.org

@gsanchietti
Copy link

gsanchietti commented Nov 3, 2016

Is there anything we should change to get this PR merged?

EDIT:
Sorry, when I reloaded the page, Github displayed the reply from finstrom.
We are going to open the issue.

@@ -218,6 +227,10 @@ public function getLDAPObject() {
public function connect($reconnect = false) {
if($reconnect || !$this->ldap) {
$this->ldap = ldap_connect($this->host,$this->port);

if ($this->tls)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We do not accept code with weak if..then..else logic. Please wrap this in opening and closing brackets.

@jobezic
Copy link
Author

jobezic commented Nov 4, 2016

updated!

@edospadoni
Copy link

Opened issue on Jira

@freepbx-tango freepbx-tango merged commit 94b5d97 into FreePBX:release/14.0 Nov 4, 2016
@jobezic
Copy link
Author

jobezic commented Nov 4, 2016

Very Good! Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants