Anope Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0001623Anope Stable (2.0.x series)[All Projects] Generalpublic2014-11-28 03:012015-03-12 14:43
Reporterwebczat 
Assigned ToAdam 
PrioritynormalSeveritycrashReproducibilityrandom
StatusresolvedResolutionfixed 
PlatformOSOS Version
Summary0001623: random crash on ldap authentication
DescriptionHello.

I am using anope's ldap authentication module to integrate services with ldap user accounts.
However, I see the following problems:
Sometimes when giving an incorrect password the log says "protocol error" although that may be some configuration problem,
And also there is a more serious problem that if I try to quickly identify/logout/identify, although it usually works, it will completely crash anope after 2 or 3 tries, not sure if doing it slower changes things.
Steps To Reproduce1. Configure anope to use ldap authentication.
2. Login to your account, see it succeeded.
3. Try to quickly log out and back in, after few successful logins there will be a crash without anything interesting in logs.
Additional InformationIt is anope-2.0.1 compiled without debug info, debug logging is also disabled at the moment.
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
(0006721)
Adam (administrator)
2015-03-12 14:43

Reopen if still an issue post fb17bc85ead8c1be6ebe1561f77865f083fdc000
(0006681)
webczat (reporter)
2014-12-02 01:24

I believe that linking with ldap_r solves the problem, at least when testing logout/login I didn't crash services as before.
(0006679)
Adam (administrator)
2014-11-30 19:20

Try changing m_ldap to link to ldap_r not ldap.
(0006678)
webczat (reporter)
2014-11-29 09:24

I attach valgrind and gdb's bt full output, I don't have them in any other form so giving links to pastebin:
bt full: http://pastebin.anope.org/index.php?page=viewpaste&id=761b3f51d4 [^]
valgrind: http://pastebin.anope.org/index.php?page=viewpaste&id=d15fd255df [^]
(0006676)
webczat (reporter)
2014-11-28 14:33

Honestly, unless I am wrong, I am using openldap 2.4.40 manually compiled and put to /usr/local, ldd says m_ldap links to this one.
(0006675)
DukePyrolator (administrator)
2014-11-28 07:54
edited on: 2014-11-28 07:56

Are you using debian? I had the same bug on my debian box.
The debugger said its a bug in the ldap library.
After installing the library from www.openldap.org the bug was gone.

I think this also fixed the protocol error log message.


- Issue History
Date Modified Username Field Change
2014-11-28 03:01 webczat New Issue
2014-11-28 07:54 DukePyrolator Note Added: 0006675
2014-11-28 07:55 DukePyrolator Note Edited: 0006675 View Revisions
2014-11-28 07:56 DukePyrolator Note Edited: 0006675 View Revisions
2014-11-28 14:33 webczat Note Added: 0006676
2014-11-29 09:24 webczat Note Added: 0006678
2014-11-30 19:20 Adam Note Added: 0006679
2014-12-02 01:24 webczat Note Added: 0006681
2015-03-12 14:43 Adam Note Added: 0006721
2015-03-12 14:43 Adam Status new => resolved
2015-03-12 14:43 Adam Resolution open => fixed
2015-03-12 14:43 Adam Assigned To => Adam


Copyright © 2000 - 2018 MantisBT Team
Powered by Mantis Bugtracker