Print Ethernet as string for has table lookups. We should
authoraland <aland>
Wed, 28 May 2008 17:33:51 +0000 (17:33 +0000)
committeraland <aland>
Wed, 28 May 2008 17:33:51 +0000 (17:33 +0000)
really leave the binary values alone...

src/modules/rlm_passwd/rlm_passwd.c

index be7bda8..ec179de 100644 (file)
@@ -530,6 +530,11 @@ static int passwd_map(void *instance, REQUEST *request)
                                snprintf(buffer, 1024, "%u", key->vp_integer);
                                name = buffer;
                                break;
+                       case PW_TYPE_ETHERNET:
+                               vp_prints_value(buffer, sizeof(buffer),
+                                               key, 0);
+                               name = buffer;
+                               break;
                        default:
                                name = key->vp_strvalue;
                }