Summary:ASTERISK-19977: CLONE - Asterisk res ldap
Reporter:Slava Bendersky (volga629)Labels:
Date Opened:2012-06-08 18:50:33Date Closed:2012-06-19 07:52:22
Versions: Frequency of
is a clone ofASTERISK-19941 Crash in res_config_ldap when used with realtime extensions
Environment:Asterisk Now 2.2 GUI and LDAP Imap voicemail registration Attachments:( 0) backtrace.txt
Description:Asterisk trying to modify entries in LDAP server DS 389.
Also when I got sip user registered and I trying place call it just silence, I don't see any attempts to dial in logs.

[2012-05-28 00:07:18] ERROR[25975]: res_config_ldap.c:1328 update_ldap: Couldn't modify 'name'='sbendersky', dn:uid=,ou=People,dc=,dc= because No such attribute
   -- Registered SIP 'sbendersky' at
[2012-05-28 00:07:20] ERROR[26001]: res_config_ldap.c:1328 update_ldap: Couldn't modify 'name'='sbendersky', dn:uid=sbendersky,ou=People,dc=networklab,dc=ca because Object class violation
   -- Unregistered SIP 'sbendersky'
[2012-05-28 00:07:26] ERROR[26001]: res_config_ldap.c:1328 update_ldap: Couldn't modify 'name'='sbendersky', dn:uid=sbendersky,ou=People,dc=networklab,dc=ca because No such attribute

Extension conf

switch => Realtime/@

switch => Realtime/@

include => users
include => voicemail

Extconfig conf

sipusers => ldap,"ou=People,dc=networklab,dc=ca",sip
sippeers => ldap,"ou=People,dc=networklab,dc=ca",sip
extensions => ldap,"ou=NetLabExtensions,dc=networklab,dc=ca",extensions
voicemail => ldap,"ou=NetLabVoicemail,dc=networklab,dc=ca",voicemail
Comments:By: Slava Bendersky (volga629) 2012-06-08 18:54:09.957-0500

I cloned the original ticket, where I asked for information about LDAP integration.  This all lead to constant asterisk crashes, backtrace attached bellow.

Jun  7 21:34:39 pbx01 kernel: asterisk[1068] general protection rip:3c45878480 rsp:41169b38 error:0
Jun  7 21:57:51 pbx01 kernel: asterisk[10028] general protection rip:3c45878480 rsp:4241fb38 error:0
Jun  7 22:42:50 pbx01 kernel: asterisk[10097] general protection rip:3c45878480 rsp:42368b38 error:0
Jun  7 23:01:02 pbx01 kernel: asterisk[10314] general protection rip:3c45878480 rsp:424b8b38 error:0
Jun  7 23:03:42 pbx01 kernel: asterisk[10372] general protection rip:3c45878480 rsp:40facb28 error:0
Jun  7 23:45:56 pbx01 kernel: asterisk[10442]: segfault at 0000007000000000 rip 0000003c458784a0 rsp 0000000040876b38 error 4
Jun  8 00:28:19 pbx01 kernel: asterisk[10698] general protection rip:3c458784a0 rsp:4153c5c8 error:0
Jun  8 00:47:06 pbx01 kernel: asterisk[10766] general protection rip:3c45878480 rsp:427717a8 error:0
Jun  8 00:47:36 pbx01 kernel: asterisk[10856] general protection rip:3c45878480 rsp:413cb7a8 error:0
Jun  8 01:01:27 pbx01 kernel: asterisk[10965] general protection rip:3c45878480 rsp:40fc7b28 error:0
Jun  8 01:09:54 pbx01 kernel: asterisk[11047] general protection rip:3c45878480 rsp:42336038 error:0
Jun  8 01:11:04 pbx01 kernel: asterisk[11105] general protection rip:3c45878480 rsp:419b8038 error:0
Jun  8 01:13:21 pbx01 kernel: asterisk[11168] general protection rip:3c45878480 rsp:42624b28 error:0
Jun  8 01:21:52 pbx01 kernel: asterisk[11229] general protection rip:3c45878480 rsp:422d7b28 error:0
Jun  8 01:22:02 pbx01 kernel: asterisk[11289] general protection rip:3c45878480 rsp:4167f038 error:0
Jun  8 01:24:19 pbx01 kernel: asterisk[11355] general protection rip:3c45878480 rsp:4123c038 error:0
Jun  8 01:27:24 pbx01 kernel: asterisk[11415] general protection rip:3c45878480 rsp:42813b28 error:0
Jun  8 01:27:36 pbx01 kernel: asterisk[11470] general protection rip:3c45878480 rsp:418a8b28 error:0
Jun  8 01:27:56 pbx01 kernel: asterisk[11523] general protection rip:3c45878480 rsp:409dcb28 error:0
Jun  8 01:32:19 pbx01 kernel: asterisk[11584] general protection rip:3c45878480 rsp:4284bb28 error:0
Jun  8 01:53:50 pbx01 kernel: asterisk[11655] general protection rip:3c45878480 rsp:42593b28 error:0
Jun  8 01:54:02 pbx01 kernel: asterisk[11740] general protection rip:3c45878480 rsp:42591b28 error:0
Jun  8 11:33:27 pbx01 kernel: asterisk[11822] general protection rip:3c45878480 rsp:4239eb28 error:0
Jun  8 15:21:26 pbx01 kernel: asterisk[13649] general protection rip:3c45878480 rsp:4195ab28 error:0
Jun  8 15:24:36 pbx01 kernel: asterisk[14197] general protection rip:3c45878480 rsp:4029bb28 error:0
Jun  8 15:25:00 pbx01 kernel: asterisk[14253] general protection rip:3c45878480 rsp:4249eb28 error:0
Jun  8 15:33:12 pbx01 kernel: asterisk[14310] general protection rip:3c45878480 rsp:423cdb28 error:0
Jun  8 16:47:08 pbx01 ntpd[9382]: synchronized to, stratum 2
Jun  8 17:04:56 pbx01 ntpd[9382]: synchronized to, stratum 2
Jun  8 18:06:40 pbx01 kernel: asterisk[14436] general protection rip:3c45878480 rsp:4189bb28 error:0
Jun  8 18:14:55 pbx01 kernel: asterisk[14854] general protection rip:3c45878480 rsp:41cf7b28 error:0

By: Slava Bendersky (volga629) 2012-06-08 18:57:12.778-0500

Here some ldap logs where I see that any number which I try dial, is trying pool from ldap. Where context for *98 is from-internal.

[08/Jun/2012:18:07:19 -0400] conn=441 op=18 SRCH base="ou=NetLabExtensions,dc=networklab,dc=ca" scope=2 filter="(&(objectClass=AsteriskExtension)(AstExtension=*98)(AstContext=realtime-ext-ldap)(AstPriority=1))" attrs=ALL

By: Matt Jordan (mjordan) 2012-06-19 07:52:22.927-0500

Duplicate of ASTERISK-19941.

Please do not clone and open new issues that are identical to an existing issue.  In the future, if an issue is closed and you have additional information, please contact a bug marshal in #asterisk-bugs.