[asterisk-bugs] [Asterisk 0012112]: res_config_ldap: realtime_multi_ldap and pattern matching

noreply at bugs.digium.com noreply at bugs.digium.com
Sat Mar 1 04:46:23 CST 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=12112 
====================================================================== 
Reported By:                cyrenity
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   12112
Category:                   Resources/General
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
Asterisk Version:           1.6.0-beta4 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             03-01-2008 04:34 CST
Last Modified:              03-01-2008 04:46 CST
====================================================================== 
Summary:                    res_config_ldap: realtime_multi_ldap and pattern
matching
Description: 
i am trying to use realtime ldap driver, everything seems to be fine expect
pattern matching, problem is when i try to retrieve patterns ldap lookup
works fine, it can fetch vars/attribs from ldap, but it returns with error
extensions not found, i think there is something missing, i have tried to
debug the problem, but i have no idea what's going on internaly, results
returned from realtime_multi_ldap seems ok, i am copying debug log in
additional information.

Regards,
====================================================================== 

---------------------------------------------------------------------- 
 cyrenity - 03-01-08 04:46  
---------------------------------------------------------------------- 
please not there is also a minor bug in res_config_ldap.c, after little
debugging i got it fixed, here is the diff.


--- res_config_ldap.c.alter     2008-03-01 15:46:41.000000000 +0500
+++ res_config_ldap.c   2008-02-15 22:29:08.000000000 +0500
@@ -725,10 +725,9 @@
                return NULL;
        } 
 
-       if (!(filter = ast_str_create(80))) {
+       if (!(filter = ast_str_create(80)))
                ast_free(clean_basedn);
                return NULL;
-       }
 
        /* Get the first parameter and first value in our list of passed
paramater/value pairs  */
        newparam = va_arg(ap, const char *);



Regards, 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
03-01-08 04:46  cyrenity       Note Added: 0083218                          
======================================================================




More information about the asterisk-bugs mailing list