Dynamic base DN

2001-11-22 Thread Veigar Freyr Jökulsson

Hi all,
I am trying to use dynamic base DN with freeradius 0.3
The value of %{Realm} is not expanded when radiusd tries to connect to 
the LDAP server:
(I log in as [EMAIL PROTECTED])

rlm_ldap: performing search in ou=People, ou=%{Realm}, ou=Virtual 
Domains, dc=skima, dc=is, with filter (uid=veigar)
rlm_ldap: ldap_search() failed: No such object
rlm_ldap: search failed



My config is like this:

radiusd.conf(just the relevant parts):

basedn = ou=People, ou=%{Realm}, ou=Virtual Domains, dc=skima, dc=is
filter = (uid=%U)

 realm suffix {
 format = suffix
 delimiter = @
 }
preacct {
 suffix
 files
 preprocess
}

authorize {
 preprocess
 suffix
 ldap {
 notfound = return
 }
 files
}

authenticate {
 ldap
}

realms:
mydomain.is 
LOCAL

users:
DEFAULT Auth-Type := Local
 Fall-Through = 1




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



Re: Dynamic base DN

2001-11-22 Thread Veigar Freyr Jökulsson

Hrrmmm

I found the answer.., this works if you use the latest cvs snapshot,
but then I have another question..., can you configure a 'default'
realm, i.e. if a user logs in with just the userpart, a predefined
default realm will be used, elseif the user supplies a realm,
that will be used instead.

--
Veigar Freyr



Veigar Freyr Jökulsson wrote:

 Hi all,
 I am trying to use dynamic base DN with freeradius 0.3
*snip!*





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