Suggest the following patch for LDAP+EAP-TTLS+PAP+CRYPT
Daniel Larsson
daniel.larsson at servicefactory.com
Mon Nov 6 11:48:48 CET 2006
> Best Regards,
> =20
> -----------------------------------------------------------------------=
-
>
> diff -urN ./src/modules/rlm_ldap/rlm_ldap.c ../freeradius-1.1.3-crypt-l=
dap/src/modules/rlm_ldap/rlm_ldap.c
> --- ./src/modules/rlm_ldap/rlm_ldap.c 2006-05-09 01:45:49.000000000 +02=
00
> +++ ../freeradius-1.1.3-crypt-ldap/src/modules/rlm_ldap/rlm_ldap.c 2006=
-07-18 16:24:42.734009032 +0200
> @@ -2511,6 +2511,15 @@
> DEBUG("rlm_ldap: Attribute %s has no value", element->attr);
> continue;
> }
> + =09
> + if (value[0] =3D=3D '{' && !strcmp(element->attr, "userPassword"))=
{
> + char *aux_value =3D strstr(value, "}");
> + if (aux_value) {=09
> + aux_value++;
> + value =3D aux_value;=09
> + }
> + DEBUG("rlm_ldap: Delete {CRYPT} from attribute %s", element->attr=
); =09
> + }
> =20
> DEBUG("rlm_ldap: Adding LDAP attribute %s as RADIUS attribute %s %=
s %s",
> element->attr, element->radius_attr,
> =20
> -----------------------------------------------------------------------=
-
>
> -=20
> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/dev=
el.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 252 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freeradius.org/pipermail/freeradius-devel/attachments/20061106/c612ad40/attachment.pgp>
More information about the Freeradius-Devel
mailing list