View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0020303 | mantisbt | ldap | public | 2015-11-23 12:16 | 2015-12-15 13:07 |
Reporter | helfgott | Assigned To | atrol | ||
Priority | high | Severity | crash | Reproducibility | always |
Status | closed | Resolution | no change required | ||
Platform | Linux | OS | Debian GNU/Linux 7 | ||
Summary | 0020303: Accounts don't get created when using LDAP for login | ||||
Description | #} else if ( LDAP == $t_login_method && ldap_authenticate_by_username( $p_username, $p_password ) ) { | ||||
Tags | No tags attached. | ||||
The else if doesn't allow the accounts to be created. Mantis version: mantisbt-1.2.19 Modifying this line in line 187: mantis/core/authentication_api.php Works for me. Here are my settings in config_inc.php: $g_ldap_server = 'ldap://myserver.company:389'; |
|
please change the ticket resumen to be more descriptive. |
|
At first sight this looks like a bug in PHP. Can you confirm, that you use the original PHP 5.4.4 that comes with Debian? Maybe there was just a temporary problem with your LDAP server when you encountered the problem. |
|
I didn't have installed the php-ldap module. So i enabled the Wheezy repo and installed it for this. Since i've used the wheezy repo you can be sure i obtained php5 from there. I've seen this before with "else if" when writting some scripts in debian. Tomorrow at my arrival i'll check the version of php and post it here. |
|
Btw, i'll try to make an test environment to check it, just to be sure. |
|
{CLIENT} root@host.client: ~ #> php5 --version --> deb http://security.debian.org/ wheezy/updates main contrib non-free |
|
Are you able to provide a small PHP script that is independant from Mantis which reproduces the "else if" issue? |
|
i'm unable to, that was long time ago, i should say "i'm almost sure about seeing it". Actually i'm installing a new environment just to be sure of this "bug". |
|
well... in the meanwhile i got back into the server trying to reproduce it like yesterday and isn't happening today (maybe due a server error as you said?) i think this can be closed since now it is working even with the original line. thanks. |
|
Thanks for the feedback. |
|