Added notes about why you don't want users to authenticate to
authoraland <aland>
Mon, 20 Jan 2003 18:15:40 +0000 (18:15 +0000)
committeraland <aland>
Mon, 20 Jan 2003 18:15:40 +0000 (18:15 +0000)
the SQL database.

doc/rlm_sql

index a660207..dc76d48 100644 (file)
   in the request?   The server simply doesn't know.
 
   So put a value in the field.  The value is the string form of the
-  operator: "=", ">=", etc.  See Section 3, below, for more details.
+  operator: "=", ">=", etc.  See Section 4, below, for more details.
 
 
-3. Operators
+3. Authentication versus Authorization
+
+  Many people ask if they can "authenticate" users to their SQL
+  database.  The answer to this question is "You're asking the wrong
+  question."
+
+  An SQL database stores information.  An SQL database is NOT an
+  authentication server.  The ONLY users who should be able to
+  authenticate themselves to the database are the people who
+  administer it.  Most administrators do NOT want every user to be
+  able to access the database, which means that most users will not be
+  able to "authenticate" themselves to the database.
+
+  Instead, the users will have their authorization information (name,
+  password, configuration) stored in the database.  The configuration
+  files for FreeRADIUS contain a username and password used to
+  authenticate FreeRADIUS to the SQL server.  (See raddb/sql.conf).
+  Once the FreeRADIUS authentication server is connected to the SQL
+  database server, then FreeRADIUS can pull user names and passwords
+  out of the database, and use that information to perform the
+  authentication.
+
+4. Operators
 
  The list of operators is given below.