Re: ldap v2 supported?

2003-02-11 Thread Chris van Meerendonk
Thanks, Kostas.
That did the trick indeed.

On Wed, 2003-02-05 at 11:03, Kostas Kalevras wrote:
 On Sun, 2 Feb 2003, Chris van Meerendonk wrote:
 
  Hi,
 
  I've got Freeradius 0.81 installed with ldap-support. Unfortunately our
  ldap is (a sort of) OpenLdap v1.2.x. Is it possible to let Freeradius do
  auth on this version (ldap v2) of ldap?
 
 Edit rlm_ldap.c and in line 1370 delete:
 
 ldap_version = LDAP_VERSION3;
 if (ldap_set_option(ld, LDAP_OPT_PROTOCOL_VERSION, ldap_version) !=
 LDAP_OPT_SUCCESS) {
 radlog(L_ERR, rlm_ldap: Could not set LDAP version to V3);
 }
 
 make;make install.
 
 That should do the trick.
 
 --
 Kostas Kalevras   Network Operations Center
 [EMAIL PROTECTED]National Technical University of Athens, Greece
 Work Phone:   +30 210 7721861
 'Go back to the shadow'   Gandalf
 
 - 
 List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html



Re: ldap v2 supported?

2003-02-05 Thread Kostas Kalevras
On Sun, 2 Feb 2003, Chris van Meerendonk wrote:

 Hi,

 I've got Freeradius 0.81 installed with ldap-support. Unfortunately our
 ldap is (a sort of) OpenLdap v1.2.x. Is it possible to let Freeradius do
 auth on this version (ldap v2) of ldap?

Edit rlm_ldap.c and in line 1370 delete:

ldap_version = LDAP_VERSION3;
if (ldap_set_option(ld, LDAP_OPT_PROTOCOL_VERSION, ldap_version) !=
LDAP_OPT_SUCCESS) {
radlog(L_ERR, rlm_ldap: Could not set LDAP version to V3);
}

make;make install.

That should do the trick.

--
Kostas Kalevras Network Operations Center
[EMAIL PROTECTED]  National Technical University of Athens, Greece
Work Phone: +30 210 7721861
'Go back to the shadow' Gandalf

- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html