Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion

osTicket v1.10 (stable) and Maintenance Release v1.9.15 are now available! Go get it now

Unable to login using client user with AD

I have the HTTP Passthru Authentication and LDAP Authentication plugins installed, I have configured a staff member with a domain account and start session without problems, but the same thing does not happen with clients. At the moment of creating the client, I enable it to authenticate through the active directory but it fails, however with staff members it works! What could be happening?

Comments

  • Please help us to help you by reading and following the posting guidelines located in this thread: Please read before requesting assistance.  The more information you give us the better we will be able to assist you. Thank you.
  • Hi, the OS is Debian 8.9, ther version php is 7.0.
    As I indicate the problem is with the clients. As shown in the attached images, the plugins for ldap authentication are installed and configured. I have configured staff and client members, and only staff members can authenticate with the active directory, with clients showing authentication error. The error log from apache show this:
    root@OS-Ticket:~# cat /var/log/apache2/error.log | more
    [Tue Feb 27 06:25:02.208450 2018] [mpm_prefork:notice] [pid 493] AH00163: Apache/2.4.25 (Debian) configured -- resuming normal operations
    [Tue Feb 27 06:25:02.208491 2018] [core:notice] [pid 493] AH00094: Command line: '/usr/sbin/apache2'
    [Tue Feb 27 08:15:55.467287 2018] [:error] [pid 26445] [client 192.160.10.24:2052] PHP Warning:  Declaration of AssignmentForm::render($options) should be compatible wi
    th Form::render($staff = true, $title = false, $options = Array) in /var/www/html/upload/include/class.forms.php on line 4367, referer: http://172.30.5.160/scp/login.ph
    p
    [Tue Feb 27 08:15:55.467441 2018] [:error] [pid 26445] [client 192.160.10.24:2052] PHP Warning:  Declaration of TransferForm::render($options) should be compatible with
     Form::render($staff = true, $title = false, $options = Array) in /var/www/html/upload/include/class.forms.php on line 4487, referer: http://172.30.5.160/scp/login.php
    [Tue Feb 27 15:33:41.132004 2018] [mpm_prefork:notice] [pid 493] AH00169: caught SIGTERM, shutting down
    PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/php_ldap.dll' - /usr/lib/php/20151012/php_ldap.dll: cannot open shared object file: No
    such file or directory in Unknown on line 0
    [Tue Feb 27 15:33:41.285159 2018] [mpm_prefork:notice] [pid 28935] AH00163: Apache/2.4.25 (Debian) configured -- resuming normal operations
    [Tue Feb 27 15:33:41.285265 2018] [core:notice] [pid 28935] AH00094: Command line: '/usr/sbin/apache2'
    [Tue Feb 27 15:34:02.430431 2018] [:error] [pid 28937] [client 192.160.10.24:4484] PHP Warning:  Declaration of AssignmentForm::render($options) should be compatible wi
    th Form::render($staff = true, $title = false, $options = Array) in /var/www/html/upload/include/class.forms.php on line 4367, referer: http://172.30.5.160/scp/users.ph
    p?id=2
    [Tue Feb 27 15:34:02.430590 2018] [:error] [pid 28937] [client 192.160.10.24:4484] PHP Warning:  Declaration of TransferForm::render($options) should be compatible with
     Form::render($staff = true, $title = false, $options = Array) in /var/www/html/upload/include/class.forms.php on line 4487, referer: http://172.30.5.160/scp/users.php?
    id=2

  • edited February 28
    This appears to be part of the problem:

    [Tue Feb 27 15:33:41.132004 2018] [mpm_prefork:notice] [pid 493] AH00169: caught SIGTERM, shutting down
    PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/php_ldap.dll' - /usr/lib/php/20151012/php_ldap.dll: cannot open shared object file: No
    such file or directory in Unknown on line 0

    You are trying to load a windows extension under linux.  Edit your php.ini and disable the php_ldap.dll by commenting it out in the extensions section.

    After you have done that install the ldap extension via linux. 
    This command line ought to do it:
    apt-get install php-ldap

    Then restart the Apache server.  Once you have done that try again.  If it doesn't work please provide a screen shot of Admin pane -> Dashboard -> Information.  Also include anything new that shows up in the PHP error logs.
  • Hello, I disabled the plugin you indicated. On the php-ldap I install it, but as indicated above use php7 and is installed php7-ldap. I send attached images of settings and showing error.log:

    root@OS-Ticket:~# cat /var/log/apache2/error.log
    [Wed Feb 28 09:17:20.274609 2018] [mpm_prefork:notice] [pid 32212] AH00163: Apache/2.4.25 (Deb                                                                          ian) configured -- resuming normal operations
    [Wed Feb 28 09:17:20.274723 2018] [core:notice] [pid 32212] AH00094: Command line: '/usr/sbin/                                                                          apache2'
    [Wed Feb 28 09:17:29.050393 2018] [:error] [pid 32215] [client 192.160.10.24:2532] PHP Warning                                                                          :  Declaration of AssignmentForm::render($options) should be compatible with Form::render($sta                                                                          ff = true, $title = false, $options = Array) in /var/www/html/upload/include/class.forms.php o                                                                          n line 4367, referer: http://172.30.5.160/scp/system.php
    [Wed Feb 28 09:17:29.050545 2018] [:error] [pid 32215] [client 192.160.10.24:2532] PHP Warning                                                                          :  Declaration of TransferForm::render($options) should be compatible with Form::render($staff                                                                           = true, $title = false, $options = Array) in /var/www/html/upload/include/class.forms.php on                                                                           line 4487, referer: http://172.30.5.160/scp/system.php
  • "I disabled the plugin you indicated."
    I didn't tell you to disable any plugins.  I told you to disable a PHP extension.

    Does the user with the name "PRUEBA-OS" have the username "PRUEBA-OS"?

    You appear to be having a PHP 7 issue.  Please see:
    https://github.com/osTicket/osTicket/pull/3349
Sign In or Register to comment.