> Hi Jason,
> with the answer from Alan we have found the dn-information in the control
> item. You must use %{control:Ldap-UserDn} instead of %{Ldap-UserDn}
Perfect. Unlang works now. Thanks.
However, there is still the problem with postauth.
>> the function ldap_postauth in rlm_ldap.c still looks for Ldap-UserDn
>> in request->packet->vps.
The attached patch updates ldap_postauth to check the control items, which
solves the problem for me. I assume that's the best way to fix it.
Jason
--- rlm_ldap.c.orig 2008-04-15 09:25:54.000000000 -0400
+++ rlm_ldap.c 2008-04-15 09:29:00.000000000 -0400
@@ -2083,7 +2083,7 @@
return RLM_MODULE_FAIL;
}
- vp_fdn = pairfind(request->packet->vps,
da->attr);
+ vp_fdn = pairfind(request->config_items,
da->attr);
if (vp_fdn == NULL) {
DEBUG("rlm_ldap: User's FQDN not in
config items list.");
return RLM_MODULE_FAIL;
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html