summaryrefslogtreecommitdiff
path: root/sample/httpauthd.conf
diff options
context:
space:
mode:
Diffstat (limited to 'sample/httpauthd.conf')
-rw-r--r--sample/httpauthd.conf31
1 files changed, 25 insertions, 6 deletions
diff --git a/sample/httpauthd.conf b/sample/httpauthd.conf
index f9481d2..19b168b 100644
--- a/sample/httpauthd.conf
+++ b/sample/httpauthd.conf
@@ -5,27 +5,46 @@ MaxThreads: 18
CacheTimeout: 300
# AuthTypes: Digest
AuthTypes: Basic Digest
+# AuthTypes: Basic
Socket: 0.0.0.0
# DigestIgnoreNC: True
-[Simple:UDB]
+[Simple:UDBsim]
Realm: blah
PasswordFile: /data/projects/httpauth/sample/passwd.file
-[LDAP]
+[LDAP:UDBldap]
Realm: blah
LDAPServers: authdev.ws.local
LDAPDoBind: False
LDAPDNMap: cn=%u,ou=test,dc=fam
-# DigestDomains: http://test.ws.local/
LDAPUser: cn=root,dc=fam
LDAPPassword: ldaptest@@password
-# LDAPHA1Attr: login
+LDAPHA1Attr: clearPassword
LDAPPWAttr: clearPassword
-DigestDebugNonce: AkCLQA==560f26e24db2d4cecbe5d6e24d958377ab73def9
-
+# DigestDebugNonce: AkCLQA==560f26e24db2d4cecbe5d6e24d958377ab73def9
LDAPFilter: (cn=%u)
LDAPBase: dc=fam
LDAPScope: sub
+[PGSQL:UDBpg]
+Realm: blah
+DBServer: sean-2
+DBUser: testuser
+DBPassword: testuser
+DBDatabase: test
+DBQuery: SELECT * from testauth WHERE username = '%u';
+# DBPWType: md5
+DBHA1Column: pw
+
+[MYSQL:UDB]
+Realm: blah
+DBServer: var/lib/mysql/mysql.sock
+DBUser: testuser
+DBPassword: testuser
+DBDatabase: test
+DBQuery: UPDATE testauth SET name = 'testo';
+# DBQuery: SELECT pw from testauth WHERE name = '%u';
+# DBPWType: crypt
+# DBHA1Column: pw