[asterisk-bugs] [Asterisk 0012600]: If binding as anonymous, no need to save password or use a default

noreply at bugs.digium.com noreply at bugs.digium.com
Wed May 7 10:18:37 CDT 2008


The following issue has been UPDATED. 
====================================================================== 
http://bugs.digium.com/view.php?id=12600 
====================================================================== 
Reported By:                suretec
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   12600
Category:                   Resources/res_config_ldap
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
Asterisk Version:           1.6.0-beta8 
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 115506 
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             05-07-2008 10:18 CDT
Last Modified:              05-07-2008 10:18 CDT
====================================================================== 
Summary:                    If binding as anonymous, no need to save password or
use a default
Description: 
        if (!(s = ast_variable_retrieve(config, "_general", "user"))) {
                ast_log(LOG_WARNING, "No directory user found, anonymous
binding as default.\n");
                user[0] = '\0';
        } else
                ast_copy_string(user, s, sizeof(user));

        if (!(s = ast_variable_retrieve(config, "_general", "pass"))) {
                ast_log(LOG_WARNING, "No directory password found, using
'asterisk' as default.\n");
                ast_copy_string(pass, "asterisk", sizeof(pass) - 1);
        } else
                ast_copy_string(pass, s, sizeof(pass));
====================================================================== 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
05-07-08 10:18  file           Category                 . I did not set the
category correctly. => Resources/res_config_ldap
======================================================================




More information about the asterisk-bugs mailing list