Ver Fonte

- credentials table includes did column
- authentication and reply sending decoupled, the new
way to perform digest authentication is:
if (!www_authenticate("@to.uri.host", "credentials")) {
append_to_reply("%$digest_challenge");
sl_reply("401", "Unauthorized");
drop;
}
- www_challenge and proxy_challenge deprecated (can be replaced
with append_to_reply and sl_reply
- qop can be configured using modparam

Jan Janak há 19 anos atrás
pai
commit
78301244a0
2 ficheiros alterados com 2 adições e 1 exclusões
  1. 1 0
      db/schema/credentials.xml
  2. 1 1
      scripts/mysql/my_create.sql

+ 1 - 0
db/schema/credentials.xml

@@ -39,6 +39,7 @@
 	<name>did</name>
 	<name>did</name>
 	<type>string</type>
 	<type>string</type>
 	<size>&id_len;</size>
 	<size>&id_len;</size>
+        <default>_none</default>
 	<description>
 	<description>
 	    DID of the virtual domain the username belongs to.
 	    DID of the virtual domain the username belongs to.
 	</description>
 	</description>

+ 1 - 1
scripts/mysql/my_create.sql

@@ -68,7 +68,7 @@ CREATE TABLE missed_calls (
 INSERT INTO version (table_name, table_version) values ('credentials','7');
 INSERT INTO version (table_name, table_version) values ('credentials','7');
 CREATE TABLE credentials (
 CREATE TABLE credentials (
     auth_username VARCHAR(64) NOT NULL,
     auth_username VARCHAR(64) NOT NULL,
-    did VARCHAR(64) NOT NULL,
+    did VARCHAR(64) NOT NULL default '_none',
     realm VARCHAR(64) NOT NULL,
     realm VARCHAR(64) NOT NULL,
     password VARCHAR(28) NOT NULL DEFAULT '',
     password VARCHAR(28) NOT NULL DEFAULT '',
     flags INT NOT NULL DEFAULT '0',
     flags INT NOT NULL DEFAULT '0',