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

Bugs in LDAP address book (Active Directory). #4104

Closed
rcubetrac opened this issue Feb 14, 2013 · 11 comments
Closed

Bugs in LDAP address book (Active Directory). #4104

rcubetrac opened this issue Feb 14, 2013 · 11 comments
Assignees
Milestone

Comments

@rcubetrac
Copy link

Reported by wisekaa03 on 14 Feb 2013 09:28 UTC as Trac ticket #1488959

Bugs in LDAP address book (Active Directory).
Some people in address book produces
"SERVICE CURRENTLY NOT AVAILABLE!

Error No. [went in /program/steps/addressbook/func.inc and found that it is
func.inc:rcmail_get_cids.

// create per-source contact IDs array
foreach ($cid as $id) {
    // get source from decoded ID
    /* if ($sep = strrpos($id, '-')) {
        $contact_id = substr($id, 0, $sep);
        $source_id  = substr($id, $sep+1);
        if (strlen($source_id)) {
            $result[(string)$source_id](700]".

I)[= $contact_id;
}
}
else { /
$result$source[] = $id;
/
} */
}

This help me, but I know that it is wrong :)

Migrated-From: http://trac.roundcube.net/ticket/1488959

@rcubetrac
Copy link
Author

Comment by @alecpl on 14 Feb 2013 16:20 UTC

Could you check what is in request with console($_REQUEST)? Provide your LDAP related config.

@rcubetrac
Copy link
Author

Milestone changed by @alecpl on 14 Feb 2013 16:20 UTC

later => 0.9-rc

@rcubetrac
Copy link
Author

Comment by wisekaa03 on 15 Feb 2013 06:01 UTC

I think that it is:

this.add_contact_row("Q0490J7QntCeIMKr0J3QtdGE0YLQtdCx0LjRgtGD0Lwt0JrQndCT0JrCuyxPVT3Qo9GH0LXRgtC90YvQtSDQt9Cw0L_QuNGB0Lgg0L_QvtGH0YLRiyxEQz1LSEdLLERDPUxPQ0FM",{"name":"\u041e\u041e\u041e \u00ab\u041d\u0435\u0444\u0442\u0435\u0431\u0438\u0442\u0443\u043c-\u041a\u041d\u0413\u041a\u00bb"},"person");
this.add_contact_row("Q0490J7QntCeIMKr0JrRg9Cx0LDQvdGB0LrQsNGPINC90LXRhNGC0LXQs9Cw0LfQvtCy0LDRjyDQutC-0LzQv9Cw0L3QuNGPwrssT1U90KPRh9C10YLQvdGL0LUg0LfQsNC_0LjRgdC4INC_0L7Rh9GC0YssREM9S0hHSyxEQz1MT0NBTA",{"name":"\u041e\u041e\u041e \u00ab\u041a\u0443\u0431\u0430\u043d\u0441\u043a\u0430\u044f \u043d\u0435\u0444\u0442\u0435\u0433\u0430\u0437\u043e\u0432\u0430\u044f"},"person");
...

@rcubetrac
Copy link
Author

Comment by wisekaa03 on 15 Feb 2013 06:10 UTC

 HTTP GET: ./?_task=addressbook&_source=0&_action=list&_remote=1
--------------------------------------
this.set_rowcount("\u041a\u043e\u043d\u0442\u0430\u043a\u0442\u044b \u043d\u0435 \u043d\u0430\u0439\u0434\u0435\u043d\u044b");
--------------------------------------
HTTP GET: ./?_task=addressbook&_source=KNGK&_page=1&_action=list&_remote=1
--------------------------------------
this.set_rowcount("1 \u2013 284 \u0438\u0437 284");
this.add_contact_row("Q0490J7QntCeIMKr0JjQu9GM0YHQutC40Lkg0J3Qn9CXwrssT1U90KPRh9C10YLQvdGL0LUg0LfQsNC_0LjRgdC4INC_0L7Rh9GC0YssREM9S0hHSyxEQz1MT0NBTA",{"name":"\u041e\u041e\u041e \u00ab\u0418\u043b\u044c\u0441\u043a\u0438\u0439 \u041d\u041f\u0417\u00bb"},"person");
this.add_contact_row("Q0490JPRgNGD0L_Qv9CwINC-0YXRgNCw0L3QvdGL0YUg0L_RgNC10LTQv9GA0LjRj9GC0LjQuSDCq9CS0LDRgNGP0LPCuyxPVT3Qo9GH0LXRgtC90YvQtSDQt9Cw0L_QuNGB0Lgg0L_QvtGH0YLRiyxEQz1LSEdLLERDPUxPQ0FM",{"name":"\u0412\u0430\u0440\u044f\u0433"},"person");
this.add_contact_row("Q0490J7QntCeIMKr0J3Qk9CiLdCh0LXRgNCy0LjRgcK7LE9VPdCj0YfQtdGC0L3Ri9C1INC30LDQv9C40YHQuCDQv9C-0YfRgtGLLERDPUtIR0ssREM9TE9DQUw",{"name":"\u041e\u041e\u041e \u00ab\u041d\u0413\u0422-\u0421\u0435\u0440\u0432\u0438\u0441\u00bb"},"person");
this.add_contact_row("Q0490J7QntCeIMKr0J3QtdGE0YLQtdCx0LjRgtGD0Lwt0JrQndCT0JrCuyxPVT3Qo9GH0LXRgtC90YvQtSDQt9Cw0L_QuNGB0Lgg0L_QvtGH0YLRiyxEQz1LSEdLLERDPUxPQ0FM",{"name":"\u041e\u041e\u041e \u00ab\u041d\u0435\u0444\u0442\u0435\u0431\u0438\u0442\u0443\u043c-\u041a\u041d\u0413\u041a\u00bb"},"person");
this.add_contact_row("Q0490J7QntCeIMKr0JrRg9Cx0LDQvdGB0LrQsNGPINC90LXRhNGC0LXQs9Cw0LfQvtCy0LDRjyDQutC-0LzQv9Cw0L3QuNGPwrssT1U90KPRh9C10YLQvdGL0LUg0LfQsNC_0LjRgdC4INC_0L7Rh9GC0YssREM9S0hHSyxEQz1MT0NBTA",{"name":"\u041e\u041e\u041e \u00ab\u041a\u0443\u0431\u0430\u043d\u0441\u043a\u0430\u044f \u043d\u0435\u0444\u0442\u0435\u0433\u0430\u0437\u043e\u0432\u0430\u044f"},"person");
this.add_contact_row("Q0490J7QntCeINCk0LjRgNC80LAgwqvQodGC0YDQvtC50YLQtdGFwrssT1U90KPRh9C10YLQvdGL0LUg0LfQsNC_0LjRgdC4INC_0L7Rh9GC0YssREM9S0hHSyxEQz1MT0NBTA",{"name":"\u041e\u041e\u041e \u0424\u0438\u0440\u043c\u0430 \u00ab\u0421\u0442\u0440\u043e\u0439\u0442\u0435\u0445\u00bb"},"person");
this.add_contact_row("Q0490J7QntCeIMKr0JrQndCT0Jot0KTQu9Cw0LPQvNCw0L3CuyxPVT3Qo9GH0LXRgtC90YvQtSDQt9Cw0L_QuNGB0Lgg0L_QvtGH0YLRiyxEQz1LSEdLLERDPUxPQ0FM",{"name":"\u041e\u041e\u041e \u00ab\u041a\u041d\u0413\u041a-\u0424\u043b\u0430\u0433\u043c\u0430\u043d\u00bb"},"person");
this.add_contact_row("Q0490J7QntCeIFwi0JjQmiDQmtCd0JPQmi3QodGC0YDQvtC40YLQtdC70YxcIixPVT3Qo9GH0LXRgtC90YvQtSDQt9Cw0L_QuNGB0Lgg0L_QvtGH0YLRiyxEQz1LSEdLLERDPUxPQ0FM",{"name":"\u041e\u041e\u041e \u00ab\u0418\u041a \u041a\u041d\u0413\u041a-\u0421\u0442\u0440\u043e\u0438\u0442\u0435\u043b\u044c\u00bb"},"person");
this.add_contact_row("Q0490JrQndCa0JMt0JDQl9ChINGB0LrQu9Cw0LQg0JPQodCcLE9VPdCj0YfQtdGC0L3Ri9C1INC30LDQv9C40YHQuCDQv9C-0YfRgtGLLERDPUtIR0ssREM9TE9DQUw",{"name":"\u041a\u041d\u041a\u0413-\u0410\u0417\u0421 \u0441\u043a\u043b\u0430\u0434 \u0413\u0421\u041c"},"person");
this.add_contact_row("Q0490JrQndCT0Jot0JDQl9ChINGB0YIuINCS0LDRgNC10L3QuNC60L7QstGB0LrQsNGPLE9VPdCj0YfQtdGC0L3Ri9C1INC30LDQv9C40YHQuCDQv9C-0YfRgtGLLERDPUtIR0ssREM9TE9DQUw",{"name":"\u041a\u041d\u0413\u041a-\u0410\u0417\u0421 \u0441\u0442. \u0412\u0430\u0440\u0435\u043d\u0438\u043a\u043e\u0432\u0441\u043a\u0430\u044f"},"person");
this.add_contact_row("Q0490JrQndCT0Jot0JDQl9ChINCzLtCa0YDRi9C80YHQuixPVT3Qo9GH0LXRgtC90YvQtSDQt9Cw0L_QuNGB0Lgg0L_QvtGH0YLRiyxEQz1LSEdLLERDPUxPQ0FM",{"name":"\u041a\u041d\u0413\u041a-\u0410\u0417\u0421 \u0433.\u041a\u0440\u044b\u043c\u0441\u043a"},"person");
this.add_contact_row("Q0490JrQndCT0Jot0JDQl9ChINGBLtCb0YzQstC-0LLRgdC60L7QtSxPVT3Qo9GH0LXRgtC90YvQtSDQt9Cw0L_QuNGB0Lgg0L_QvtGH0YLRiyxEQz1LSEdLLERDPUxPQ0FM",{"name":"\u041a\u041d\u0413\u041a-\u0410\u0417\u0421 \u0441.\u041b\u044c\u0432\u043e\u0432\u0441\u043a\u043e\u0435"},"person");
this.add_contact_row("Q0490JrQndCT0Jot0JDQl9ChINGB0YIuINCQ0L3QsNGB0YLQsNGB0LjQtdCy0YHQutCw0Y8sT1U90KPRh9C10YLQvdGL0LUg0LfQsNC_0LjRgdC4INC_0L7Rh9GC0YssREM9S0hHSyxEQz1MT0NBTA",{"name":"\u041a\u041d\u0413\u041a-\u0410\u0417\u0421 \u0441\u0442. \u0410\u043d\u0430\u0441\u0442\u0430\u0441\u0438\u0435\u0432\u0441\u043a\u0430\u044f"},"person");
this.add_contact_row("Q0490JDQsdC70LXQt9Cz0L7QsiDQlNC80LjRgtGA0LjQuSDQkNC70LXQutGB0LXQtdCy0LjRhyxPVT3QntCe0J4gXCLQndCT0KIt0KHQtdGA0LLQuNGBXCIsT1U90JTQtdC_0LDRgNGC0LDQvNC10L3RgiDQutC-0LzQvNC10YDRh9C10YHQutC-0Lkg0L3QtdC00LLQuNC20LjQvNC-0YHRgtC4LERDPUtIR0ssREM9TE9DQUw",{"name":"\u0410\u0431\u043b\u0435\u0437\u0433\u043e\u0432, \u0414\u043c\u0438\u0442\u0440\u0438\u0439"},"person");
this.add_contact_row("Q0490JDQsdC70LXQt9Cz0L7QsiDQlNC80LjRgtGA0LjQuSDQkNC70LXQutGB0LXQtdCy0LjRhyxPVT3QlNC10L_QsNGA0YLQsNC80LXQvdGCINC60L7QvNC80LXRgNGH0LXRgdC60L7QuSDQvdC10LTQstC40LbQuNC80L7RgdGC0LgsREM9S0hHSyxEQz1MT0NBTA",{"name":"\u0410\u0431\u043b\u0435\u0437\u0433\u043e\u0432, \u0414\u043c\u0438\u0442\u0440\u0438\u0439"},"person");
this.add_contact_row("Q0490JDQu9C10L3RgtGM0LXQstCwINCY0YDQuNC90LAg0JLRj9GH0LXRgdC70LDQstC-0LLQvdCwLE9VPdCe0J7QniBcItCd0JPQoi3QoNC10YHRg9GA0YFcIixPVT3QlNC10L_QsNGA0YLQsNC80LXQvdGCINC60L7QvNC80LXRgNGH0LXRgdC60L7QuSDQvdC10LTQstC40LbQuNC80L7RgdGC0LgsREM9S0hHSyxEQz1MT0NBTA",{"name":"\u0410\u043b\u0435\u043d\u0442\u044c\u0435\u0432\u0430, \u0418\u0440\u0438\u043d\u0430"},"person");
this.add_contact_row("Q0490JDQu9C10L3RgtGM0LXQstCwINCY0YDQuNC90LAg0JLRj9GH0LXRgdC70LDQstC-0LLQvdCwLE9VPdCe0J7QniBcItCd0JPQoi3QodC10YDQstC40YFcIixPVT3QlNC10L_QsNGA0YLQsNC80LXQvdGCINC60L7QvNC80LXRgNGH0LXRgdC60L7QuSDQvdC10LTQstC40LbQuNC80L7RgdGC0LgsREM9S0hHSyxEQz1MT0NBTA",{"name":"\u0410\u043b\u0435\u043d\u0442\u044c\u0435\u0432\u0430, \u0418\u0440\u0438\u043d\u0430"},"person");
this.add_contact_row("Q0490JDQu9C40LXQstCwINCW0LDQvdC90LAg0JHQvtGA0LjRgdC-0LLQvdCwLE9VPdCS0LDRgNGP0LMsT1U90JTQtdC_0LDRgNGC0LDQvNC10L3RgiDQsdC10LfQvtC_0LDRgdC90L7RgdGC0LgsREM9S0hHSyxEQz1MT0NBTA",{"name":"\u0410\u043b\u0438\u0435\u0432\u0430, \u0416\u0430\u043d\u043d\u0430"},"person");
this.add_contact_row("Q0490JDQvdC00YDQtdC10LLQsCDQm9Cw0YDQuNGB0LAg0JzQuNGF0LDQudC70L7QstC90LAsT1U90KHQtdC60YDQtdGC0LDRgNC40LDRgixPVT3QlNC10L_QsNGA0YLQsNC80LXQvdGCINC_0LXRgNGB0L7QvdCw0LvQsCxEQz1LSEdLLERDPUxPQ0FM",{"name":"\u0410\u043d\u0434\u0440\u0435\u0435\u0432\u0430, \u041b\u0430\u0440\u0438\u0441\u0430"},"person");
this.add_contact_row("Q0490JDQvdC40LrQtdC10LLQsCDQntC70YzQs9CwINCf0LDQstC70L7QstC90LAsT1U90JjQu9GM0YHQutCw0Y8sREM9S0hHSyxEQz1MT0NBTA",{"name":"\u0410\u043d\u0438\u043a\u0435\u0435\u0432\u0430, \u041e\u043b\u044c\u0433\u0430"},"person");
this.add_contact_row("Q0490JDQvdC40YHQuNC80L7QstCwINCc0LDRgNC40L3QsCDQktCw0YHQuNC70YzQtdCy0L3QsCxPVT3QntGC0LTQtdC7INC60LDQtNGA0L7QsixPVT3QntCe0J4gXCLQmNC70YzRgdC60LjQuSDQndCf0JdcIixPVT3QmNC70YzRgdC60LDRjyxEQz1LSEdLLERDPUxPQ0FM",{"name":"\u0410\u043d\u0438\u0441\u0438\u043c\u043e\u0432\u0430, \u041c\u0430\u0440\u0438\u043d\u0430"},"person");
this.add_contact_row("Q0490JDRgNC10YjQutC40L0g0JDQvdC00YDQtdC5LE9VPdCj0YfQtdGC0L3Ri9C1INC30LDQv9C40YHQuCDQv9C-0YfRgtGLLERDPUtIR0ssREM9TE9DQUw",{"name":"\u0410..

@rcubetrac
Copy link
Author

Comment by @alecpl on 16 Feb 2013 17:02 UTC

This is most likely a regression from commit ff4a92c. I'll work on this.

@rcubetrac
Copy link
Author

Owner changed by @alecpl on 16 Feb 2013 17:02 UTC

=> alec

@rcubetrac
Copy link
Author

Comment by @alecpl on 17 Feb 2013 15:25 UTC

Fixed in eafb68b

@rcubetrac
Copy link
Author

Status changed by @alecpl on 17 Feb 2013 15:25 UTC

new => closed

@Snowman-25
Copy link

Snowman-25 commented Sep 2, 2019

This bug is still existing in current 1.3.9.
The main problem is that after a search in the Addressbook, when clicking the found contact, the frame in which the contact should be viewed doesn't populate the _source field in the URL, resulting in SERVICE CURRENTLY NOT AVAILABLE! Error No. [700]

Extract from my errorlog:
[02-Sep-2019 12:23:59 +0200]: <r3ibf1q0> PHP Error: Addressbook source (Adressen) not found! in /var/www/roundcubemail-1.3.9/program/include/rcmail.php on line 260 (GET /roundcubemail-1.3.9/?_task=addressbook&_framed=1&_search=923e8c53536022dc8863119fb73f54a1&_action=show&_source=&_cid=dWlkPWRtNjE0LGRjPWRldXRzY2hlcy1tdXNldW0sZGM9ZGU-DM-Adressen)
The issue is possibly in wrong string-splitting at the dash-character (-)

@alecpl
Copy link
Member

alecpl commented Sep 2, 2019

Dash is not allowed in addressbook index.

// In order to enable public ldap search, configure an array like the Verisign
// example further below. if you would like to test, simply uncomment the example.
// Array key must contain only safe characters, ie. a-zA-Z0-9_
$config['ldap_public'] = array();

@Snowman-25
Copy link

Thanks. My (very old) config didn't have that comment so I wasn't aware. I renamed the Addressbook and it's working now

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

No branches or pull requests

3 participants