summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortrystan trystan@31f1291d-b8d6-0310-a050-a5561fc1590b <trystan trystan@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2005-01-16 22:05:24 +0000
committertrystan trystan@31f1291d-b8d6-0310-a050-a5561fc1590b <trystan trystan@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2005-01-16 22:05:24 +0000
commit26e99c667a5bfe4889333ae8b749752723ff8170 (patch)
treecc733ff6ff4dc83bc7f7c91640862a05b31fb769
parent26bd7c0418651493c50040c769e7f94b13097283 (diff)
BUILD : 1.7.7 (543) BUGS : 276 NOTES : Disables UseRDB when MysqlSecure is enable, since we use one way encryption on the sql databases
git-svn-id: svn://svn.anope.org/anope/trunk@543 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@396 5417fbe8-f217-4b02-8779-1006273d7864
-rw-r--r--docs/MYSQL8
-rw-r--r--src/init.c5
-rw-r--r--version.log6
3 files changed, 17 insertions, 2 deletions
diff --git a/docs/MYSQL b/docs/MYSQL
index 20e166c14..19a11113c 100644
--- a/docs/MYSQL
+++ b/docs/MYSQL
@@ -83,12 +83,14 @@ Security:
Calculates an MD5 128-bit checksum for the password. The value is
returned as a 32-digit hex number that may be used as a hash key.
+ This is a one way encryption algorithm.
SLOW
MysqlSecure "sha"
Calculates an SHA 160-bit checksum for the password. The value is
- returned as a 40-digit hex number. SLOWEST
+ returned as a 40-digit hex number. This is a one way encryption
+ algorithm.SLOWEST
MysqlSecure "mykey"
@@ -101,3 +103,7 @@ Security:
every database save. On large networks, it may impact responsiveness
during the saves.
+ Caveat: If you enable MysqlSecure you can not longer use the UseRDB directive
+ as all the password types are encrypted with a one way encryption method for
+ older MySQL servers.
+
diff --git a/src/init.c b/src/init.c
index 3d7bd962c..b0cad19db 100644
--- a/src/init.c
+++ b/src/init.c
@@ -556,6 +556,11 @@ int init(int ac, char **av)
UseRDB = 0;
alog("Error: Disabling UseRDB due to errors with SQL");
}
+ } else {
+ if (MysqlSecure && UseRDB) {
+ UseRDB = 0;
+ alog("Error: MySQL password are encrypted using method in MysqlSecure disabling UseRDB");
+ }
}
#endif
diff --git a/version.log b/version.log
index 07b06a09c..5b39be907 100644
--- a/version.log
+++ b/version.log
@@ -8,10 +8,14 @@
VERSION_MAJOR="1"
VERSION_MINOR="7"
VERSION_PATCH="7"
-VERSION_BUILD="542"
+VERSION_BUILD="543"
# $Log$
#
+# BUILD : 1.7.7 (543)
+# BUGS : 276
+# NOTES : Disables UseRDB when MysqlSecure is enable, since we use one way encryption on the sql databases
+#
# BUILD : 1.7.7 (542)
# BUGS : 263
# NOTES : BotServ bots would flood if they were attempting to reset modes on themselves ie.. (-oooooo), this fix makes