diff options
Diffstat (limited to 'doc/ex-meta1.texi')
-rw-r--r-- | doc/ex-meta1.texi | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/doc/ex-meta1.texi b/doc/ex-meta1.texi index d74b49c..a62b4be 100644 --- a/doc/ex-meta1.texi +++ b/doc/ex-meta1.texi | |||
@@ -16,13 +16,12 @@ shared between the two smap databases. Thus, the module | |||
16 | initialization in @file{smapd.conf} looks like: | 16 | initialization in @file{smapd.conf} looks like: |
17 | 17 | ||
18 | @example | 18 | @example |
19 | module mysql mysql open config-group=smap | 19 | module mysql mysql config-group=smap |
20 | @end example | 20 | @end example |
21 | 21 | ||
22 | The @samp{open} parameter instructs the module to open the requested | 22 | The @samp{config-group} parameter refers to a group name in the |
23 | databases. The @samp{config-group} parameter refers to a group | 23 | default @file{/etc/my.cnf} file that contains information about the |
24 | name in the default @file{/etc/my.cnf} file that contains information | 24 | @acronym{MySQL} database and credentials for accessing it. |
25 | about the @acronym{MySQL} database and credentials for accessing it. | ||
26 | The following is a sample snippet from @file{/etc/my.cnf}: | 25 | The following is a sample snippet from @file{/etc/my.cnf}: |
27 | 26 | ||
28 | @example | 27 | @example |
@@ -61,7 +60,6 @@ The smap database is defined as follows: | |||
61 | @example | 60 | @example |
62 | @group | 61 | @group |
63 | database userdb mysql \ | 62 | database userdb mysql \ |
64 | defaultdb | ||
65 | query="SELECT user FROM userdb WHERE user='$key'" | 63 | query="SELECT user FROM userdb WHERE user='$key'" |
66 | positive-reply=OK | 64 | positive-reply=OK |
67 | @end group | 65 | @end group |