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



ldap v2 supported?

2003-02-02 Thread Chris van Meerendonk
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?

Ldap logging:

20030201 23142+0100 ldap1 imdirserv 5350 0 10
Note;LDAPConnMade(62/11) fromhost=192.168.0.28
20030201 231424445+0100 ldap1 imdirserv 5350 0 56579 Note;LDAPLog(62/17)
unknown version 3\n:cmd=bind:fromhost=192.168.0.28
20030201 231424445+0100 ldap1 imdirserv 5350 0 56579
Erro;LDAPProtocolErr(62/15) version not
supported:cmd=bind:fromhost=192.168.0.28
20030201 231424446+0100 ldap1 imdirserv 5350 0 56579
Note;LDAPDisconnected(62/12) cmd=unbind:fromhost=192.168.0.28

Freeradius config:

ldap {
server = 192.168.0.30
identity = cn=root
password = secret
basedn = 
filter = (userlogin=%u)

# set this to 'yes' to use TLS encrypted connections
# to the LDAP database.
start_tls = no
# default_profile = cn=radprofile,ou=dialup,o=My
Org,c=UA
# profile_attribute = radiusProfileDn
# access_group = cn=clients,ou=dialup,o=My Org,c=UA
# access_attr = dialupAccess

# Mapping of RADIUS dictionary attributes to LDAP
# directory attributes.
# dictionary_mapping = ${raddbdir}/ldap.attrmap

# ldap_cache_timeout = 120
# ldap_cache_size = 0
ldap_connections_number = 5
password_header = {crypt}
password_attribute = mailpassword
# groupname_attribute = cn
# groupmembership_filter =
(|((objectClass=GroupOfNames)(membe
r=%{Ldap-UserDn}))((objectClass=GroupOfUniqueNames)(uniquemember=%{Ldap-UserDn}
)))
timeout = 4
timelimit = 3
net_timeout = 1
# compare_check_items = yes
access_attr_used_for_allow = no
}


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