newbie and realms
hi, i am new to radiusd and i am still confused by the jargon. Is seems that i dont understand the concept of "realms". Can someone point me to a documentation that explains how to setup that "realms" ? tia, wh
walter harms wrote:
Is seems that i dont understand the concept of "realms".
largely... if you don't know what realms are, you don't need to use them. Realms are just domain names. They are a simple way to group users together, without configuring lists of users on the server.
Can someone point me to a documentation that explains how to setup that "realms" ?
raddb/proxy.conf That is the *only* place to configure realms, and it is well documented. Alan DeKok.
Am 08.11.2011 11:48, schrieb Alan DeKok:
walter harms wrote:
Is seems that i dont understand the concept of "realms".
largely... if you don't know what realms are, you don't need to use them.
Realms are just domain names. They are a simple way to group users together, without configuring lists of users on the server.
no my idea,
Can someone point me to a documentation that explains how to setup that "realms" ?
raddb/proxy.conf That is the *only* place to configure realms, and it is well documented.
i found: http://linux.die.net/man/5/rlm_realm http://wiki.freeradius.org/Proxy but i do not find the point where to place the name of the realm. re, wh
walter harms wrote:
Can someone point me to a documentation that explains how to setup that "realms" ? raddb/proxy.conf That is the *only* place to configure realms, and it is well documented.
i found: http://linux.die.net/man/5/rlm_realm http://wiki.freeradius.org/Proxy
I told you to read a file that is shipped with the server, and you looked somewhere else. Why?
but i do not find the point where to place the name of the realm.
I'm not surprised. Alan DeKok.
On Wed, Nov 9, 2011 at 6:42 PM, walter harms <wharms@bfs.de> wrote:
Can someone point me to a documentation that explains how to setup that "realms" ?
raddb/proxy.conf That is the *only* place to configure realms, and it is well documented.
i found: http://linux.die.net/man/5/rlm_realm http://wiki.freeradius.org/Proxy
but i do not find the point where to place the name of the realm.
Did you read http://wiki.freeradius.org/Proxy.conf (or proxy.conf that came with the default installation)? Like Alan said, if you don't know what realms are, you don't need to use them. If you DO need them, basically you just need to figure out what you want to do with them; for example: - AAA for users @domain-A.com will be proxied to server-a.com - users @domain-B.com will be processed locally using virtual server virtual-B - users @domain-C.com will be processed by the default server. After that, everything in proxy.conf should be self-explanatory. Regarding the names, a realm name usually matches whatever is included in user-name; e.g. if user-name is user1@domain-A.com, then you need to define a realm called "domain-A.com" on proxy.conf (see examples for "realm example.com" and "realm virtual.example.com"). However there are cases where freeradius realm names does not need to match what's in user-name, that is if: - you manually set "Proxy-To-Realm" control attribute, or - you use wildcard (see last example on proxy.conf). If you still have no idea what I'm talking about, then better describe what you need. Perhaps you don't need realms at all. -- Fajar
Am 09.11.2011 13:42, schrieb Fajar A. Nugraha:
On Wed, Nov 9, 2011 at 6:42 PM, walter harms <wharms@bfs.de> wrote:
Can someone point me to a documentation that explains how to setup that "realms" ?
raddb/proxy.conf That is the *only* place to configure realms, and it is well documented.
i found: http://linux.die.net/man/5/rlm_realm http://wiki.freeradius.org/Proxy
but i do not find the point where to place the name of the realm.
Did you read http://wiki.freeradius.org/Proxy.conf (or proxy.conf that came with the default installation)?
Like Alan said, if you don't know what realms are, you don't need to use them.
If you DO need them, basically you just need to figure out what you want to do with them; for example: - AAA for users @domain-A.com will be proxied to server-a.com - users @domain-B.com will be processed locally using virtual server virtual-B - users @domain-C.com will be processed by the default server.
After that, everything in proxy.conf should be self-explanatory.
Regarding the names, a realm name usually matches whatever is included in user-name; e.g. if user-name is user1@domain-A.com, then you need to define a realm called "domain-A.com" on proxy.conf (see examples for "realm example.com" and "realm virtual.example.com").
However there are cases where freeradius realm names does not need to match what's in user-name, that is if: - you manually set "Proxy-To-Realm" control attribute, or - you use wildcard (see last example on proxy.conf).
If you still have no idea what I'm talking about, then better describe what you need. Perhaps you don't need realms at all.
mmh, i am starting to understand, i was expecting something different therefore i did not realize what i have found. use case: my task is to setup a radiusd for 6 realms (Again not my idea). all realms should be equal and will be used for m2m only. so dropping everything outside these realms would be ok. the number of "users" will be very limited. I did not expect that this would be anything complicated. re, wh
walter harms wrote:
mmh, i am starting to understand, i was expecting something different therefore i did not realize what i have found.
Asking good questions helps. "How do I set up realms" gets answered by "read the realm documentation". If you want something else, ask a better question.
use case: my task is to setup a radiusd for 6 realms (Again not my idea). all realms should be equal and will be used for m2m only.
That doesn't make any sense. What do you mean by "realms should be equal"? What is "m2m?
so dropping everything outside these realms would be ok. the number of "users" will be very limited. I did not expect that this would be anything complicated.
Of course it's complicated. You haven't defined what you want to do. You're using pre-existing terms (realms), but are using them wrong. Describe what you want to do *accurately*. Refer to attributes. Give examples. Alan DeKok.
Am 09.11.2011 15:00, schrieb Alan DeKok:
walter harms wrote:
mmh, i am starting to understand, i was expecting something different therefore i did not realize what i have found.
Asking good questions helps. "How do I set up realms" gets answered by "read the realm documentation".
If you want something else, ask a better question.
use case: my task is to setup a radiusd for 6 realms (Again not my idea). all realms should be equal and will be used for m2m only.
That doesn't make any sense.
What do you mean by "realms should be equal"? What is "m2m?
equal = the realms will differ in names only, not in configuration m2m = machine to machine - no user interaction
so dropping everything outside these realms would be ok. the number of "users" will be very limited. I did not expect that this would be anything complicated.
Of course it's complicated. You haven't defined what you want to do. You're using pre-existing terms (realms), but are using them wrong.
Describe what you want to do *accurately*. Refer to attributes. Give examples.
Our dial-ins (now no radiusd) are moved to a 3.party and they told me "setup a radiusd" with 6 realms". I guess the machines will get usernames, perhaps very box the same. the realm will simple reflect the region they are calling from. hope that helps, re, wh
walter harms wrote:
What do you mean by "realms should be equal"? What is "m2m?
equal = the realms will differ in names only, not in configuration
Since it's clear you don't know what realms are, I have no idea what you mean by this.
m2m = machine to machine - no user interaction
Which means... what in the context of RADIUS?
Our dial-ins (now no radiusd) are moved to a 3.party and they told me "setup a radiusd" with 6 realms". I guess the machines will get usernames, perhaps very box the same. the realm will simple reflect the region they are calling from.
That's a little better. But not enough. If you really wanted to solve the problem you would have posted the above paragraph in your first message. You would have included *everything* which might be relevant. You've refused to do that. Multiple times. It's clear you're reluctant to give any useful information which allows us to help you. You're more interested in playing 20 questions than solving your problem. My answer now is the same as in my first message: go read raddb/proxy.conf. Everything about realms is defined there. You obviously haven't read it, because *all* explanations of realms is included there. That documentation might reference terms you're not familiar with. Too bad. Those terms are *also* documented in proxy.conf. Go read it. Now stop being unhelpful, go help yourself. I'm done here. Alan DeKok.
As a hint for how to ask *good* questions, see the recent post about "Freeradius proxy to IAS w/SQL attributes?". He posted a *detailed* description of what he was doing, what he wanted, what went wrong, and what he needed help with. The answer was really one line: "change this to that". Instead of arguing or playing 20 questions, he followed instructions. And it worked. *That* is the approach you need to take. Alan DeKok.
On Wed, Nov 9, 2011 at 11:55 PM, walter harms <wharms@bfs.de> wrote:
What do you mean by "realms should be equal"? What is "m2m?
equal = the realms will differ in names only, not in configuration m2m = machine to machine - no user interaction
radius doesn't really care whether it's a "no user interaction" or "user have to enter username and password" scenario.
so dropping everything outside these realms would be ok. the number of "users" will be very limited. I did not expect that this would be anything complicated.
It's not. Not if you know what you want :)
Our dial-ins (now no radiusd) are moved to a 3.party and they told me "setup a radiusd" with 6 realms". I guess the machines will get usernames, perhaps very box the same. the realm will simple reflect the region they are calling from.
First thing: you need to know what username the radius will get. For example: - user1@region1 - user1@region2 Next step: figure out what you want to do with them If you treat them equally, and you process AAA for them locally, then there's really no need for you to touch proxy.conf at all. By default, all realms will be handled locally. You'll only need to add the users (user1@region1, user1@region2, etc) to sql (or whatever backend you'll be using), and it should just work. If a user entry is present, and the password match, they'll pass. If the user is not in the backend (for example, if the username is incorrect, or if the realm-part is incorrect) then it will be rejected. It's as simple as that. -- Fajar
Hi,
mmh, i am starting to understand, i was expecting something different therefore i did not realize what i have found.
...i think there is still a fundamental mix of terminology
use case: my task is to setup a radiusd for 6 realms (Again not my idea). all realms should be equal and will be used for m2m only. so dropping everything outside these realms would be ok. the number of "users" will be very limited. I did not expect that this would be anything complicated.
...which means what exactly? are you going to have users in the form of userA@realma.org userB@companyB.com ? those are realms.. alan
participants (4)
-
Alan Buxey -
Alan DeKok -
Fajar A. Nugraha -
walter harms