[asterisk-commits] russell: branch 1.6.2 r289332 - /branches/1.6.2/res/res_config_ldap.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Sep 29 15:16:01 CDT 2010


Author: russell
Date: Wed Sep 29 15:15:57 2010
New Revision: 289332

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=289332
Log:
Don't completely ignore md5secret from LDAP if the value does not begin with {md5}.

This fixes a problem that lmadsen ran in to where md5secret was not working for him.

Modified:
    branches/1.6.2/res/res_config_ldap.c

Modified: branches/1.6.2/res/res_config_ldap.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.6.2/res/res_config_ldap.c?view=diff&rev=289332&r1=289331&r2=289332
==============================================================================
--- branches/1.6.2/res/res_config_ldap.c (original)
+++ branches/1.6.2/res/res_config_ldap.c Wed Sep 29 15:15:57 2010
@@ -293,8 +293,6 @@
 				if (is_realmed_password_attribute) {
 					if (!strncasecmp(valptr, "{md5}", 5)) {
 						valptr += 5;
-					} else {
-						valptr = NULL;
 					}
 					ast_debug(2, "md5: %s\n", valptr);
 				}
@@ -414,8 +412,6 @@
 						if (is_realmed_password_attribute) {
 							if (strncasecmp(valptr, "{md5}", 5) == 0) {
 								valptr += 5;
-							} else {
-								valptr = NULL;
 							}
 							ast_debug(2, "md5: %s\n", valptr);
 						}




More information about the asterisk-commits mailing list