[asterisk-bugs] [Asterisk 0005768]: [branch][post 1.4] LDAP Realtime driver
noreply at bugs.digium.com
noreply at bugs.digium.com
Wed Nov 28 14:58:23 CST 2007
A NOTE has been added to this issue.
======================================================================
http://bugs.digium.com/view.php?id=5768
======================================================================
Reported By: mguesdon
Assigned To:
======================================================================
Project: Asterisk
Issue ID: 5768
Category: Resources/NewFeature
Reproducibility: N/A
Severity: feature
Priority: normal
Status: ready for testing
Asterisk Version: SVN
SVN Branch (only for SVN checkouts, not tarball releases): trunk
SVN Revision (number only!): 48570
Disclaimer on File?: Yes
Request Review:
======================================================================
Date Submitted: 11-16-2005 11:11 CST
Last Modified: 11-28-2007 14:58 CST
======================================================================
Summary: [branch][post 1.4] LDAP Realtime driver
Description:
Here is a ldap realtime driver.
res_config_ldap.c: code
res_ldap.conf.sample: res_ldap.conf sample
asterisk.ldap-schema: example of ldap schema
ldap-patch.diff: Makefile patch
======================================================================
----------------------------------------------------------------------
nito - 11-28-07 14:58
----------------------------------------------------------------------
Hi all,
I've just uploaded res_config_ldap_patch_svn_90039.patch which applies to
the subversion revision 90039.
Bugs fixed:
1) Old. Ldap reconnecttion (see elsewhere in this bug report, id =
0068223)
2) Old. Module requirement (see elsewhere in this bug report, id =
0073368)
3) New. Fix in the extensions module. The change is basically:
ast_debug(2, "name='%s' value='%s'\n", name, value);
if (like_pos) {
- name = new_name = ast_strdupa(like_pos + strlen("
LIKE"));
+ name = new_name = ast_strndup(name, strlen(name) -
strlen("LIKE"));
value = new_value = ast_strdupa(value);
replace_string_in_string(new_value, "\\_", "_");
replace_string_in_string(new_value, "%", "*");
The old line does not what is intended and (which is basically assign to
to name the string "exten" whenever the you do a an "exten LIKE" partial
match.
This yielded in the following error during in the asterisk logs (external
symptom, please see that the attribute exten is not mapped to
AstExtension):
[Nov 25 10:11:39] WARNING[14599] res_config_ldap.c: Failed to query
database. Check debug for more info.
[Nov 25 10:11:39] WARNING[14599] res_config_ldap.c: Query:
(&(objectClass=AsteriskExtension)(=_*)(AstContext=sipclients)(AstPriority=1))
[Nov 25 10:11:39] WARNING[14599] res_config_ldap.c: Query Failed because:
Bad search filter
Issue History
Date Modified Username Field Change
======================================================================
11-28-07 14:58 nito Note Added: 0074514
======================================================================
More information about the asterisk-bugs
mailing list