* Remember to free inst->atts in ldap_detach() in rlm_ldap.c
}
}
-What happens is that the first time the authorize section is examined the suffix,preprocess and files module
-are executed. If Autz-Type is set after that the server core checks for any matching autztype subsection.
-If one is found it is called. The users file should look something like this:
+What happens is that the first time the authorize section is examined the suffix,preprocess
+and files modules are executed. If Autz-Type is set after that the server core checks for
+any matching autztype subsection. If one is found it is called. The users file should look
+something like this:
DEFAULT Called-Station-Id == "123456789", Autz-Type := Ldap
* - Add another configuration directive. access_attr_used_for_allow. If it is set to yes
* then the access_attr will be used to allow user access. If it is set to no then it will
* be used to deny user access.
+ * - Remember to free inst->atts in ldap_detach()
*/
static const char rcsid[] = "$Id$";
pair = nextpair;
}
+ if (inst->atts){
+ int i = 0;
+
+ while(inst->atts[i])
+ free(inst->atts[i++]);
+ free(inst->atts);
+ }
+
paircompare_unregister(PW_LDAP_GROUP, ldap_groupcmp);
xlat_unregister(inst->xlat_name,ldap_xlat);
free(inst->xlat_name);