diff options
Diffstat (limited to 'doc')
-rw-r--r-- | doc/ldap-example.conf | 23 | ||||
-rw-r--r-- | doc/mysql-example.conf | 19 | ||||
-rw-r--r-- | doc/ntlm-example.conf | 12 |
3 files changed, 54 insertions, 0 deletions
diff --git a/doc/ldap-example.conf b/doc/ldap-example.conf new file mode 100644 index 0000000..f1e0c91 --- /dev/null +++ b/doc/ldap-example.conf @@ -0,0 +1,23 @@ +# An LDAP example + +# Create a new handler called 'MyHandler' +[LDAP:MyHandler] + +# The realm displayed to the user +Realm: LDAP Example + +# Only digest authentication allowed +AuthTypes: Digest + +# Connect to LDAP server with the following info +LDAPServers: ldap.example.com +LDAPUser: cn=root,dc=example,dc=com +LDAPPassword: ldap@example@password + +# This will authenticate against the password available +# in the 'clearPassword' LDAP attribute +LDAPDoBind: False +LDAPDNMap: cn=%u,dc=example,dc=com +LDAPPWAttr: clearPassword +LDAPFilter: (cn=%u) +LDAPBase: dc=example,dc=com diff --git a/doc/mysql-example.conf b/doc/mysql-example.conf new file mode 100644 index 0000000..7f3c608 --- /dev/null +++ b/doc/mysql-example.conf @@ -0,0 +1,19 @@ +# Authenticate against MySQL + +# Create a new handler called 'MyHandler' +[MYSQL:MyHandler] + +# The realm displayed to the user +Realm: LDAP Example + +# Only digest authentication allowed +AuthTypes: Digest + +# Connect to mysql server with: +DBServer: var/lib/mysql/mysql.sock +DBUser: testuser +DBPassword: testuser +DBDatabase: test + +# And authenticate against the clear password in the 'pw' column +DBQuery: SELECT pw FROM testauth WHERE uid = '%u'; diff --git a/doc/ntlm-example.conf b/doc/ntlm-example.conf new file mode 100644 index 0000000..9abba04 --- /dev/null +++ b/doc/ntlm-example.conf @@ -0,0 +1,12 @@ +# An NTLM authentication example + +# Create a new handler called 'MyHandler' +[NTLM:MyHandler] + +# Only allow NTLM authentication +AuthTypes: NTLM + +# Authenticate against this server +NTLMServer: example-srv1 +NTLMBackup: backup-server +NTLMDomain: Domain |