diff --git a/html/includes/authentication/http-auth.inc.php b/html/includes/authentication/http-auth.inc.php
index 55000d3b6..ce38988f4 100644
--- a/html/includes/authentication/http-auth.inc.php
+++ b/html/includes/authentication/http-auth.inc.php
@@ -24,4 +24,15 @@ function authenticate($username,$password)
return 0;
}
+function passwordscanchange()
+{
+ return 0;
+}
+
+function changepassword($username,$newpassword)
+{
+ # Not supported
+}
+
+
?>
\ No newline at end of file
diff --git a/html/includes/authentication/ldap.inc.php b/html/includes/authentication/ldap.inc.php
index 11e3a20b5..ec103f07f 100644
--- a/html/includes/authentication/ldap.inc.php
+++ b/html/includes/authentication/ldap.inc.php
@@ -34,4 +34,14 @@ function authenticate($username,$password)
return 0;
}
+function passwordscanchange()
+{
+ return 0;
+}
+
+function changepassword($username,$newpassword)
+{
+ # Not supported (for now)
+}
+
?>
\ No newline at end of file
diff --git a/html/includes/authentication/mysql.inc.php b/html/includes/authentication/mysql.inc.php
index d106f288d..24c346b9e 100644
--- a/html/includes/authentication/mysql.inc.php
+++ b/html/includes/authentication/mysql.inc.php
@@ -13,4 +13,16 @@ function authenticate($username,$password)
return 0;
}
+function passwordscanchange()
+{
+ return 1;
+}
+
+function changepassword($username,$newpassword)
+{
+ $encrypted = md5($password);
+ $sql = "UPDATE `users` SET password`='$encrypted' WHERE `username`='".$_SESSION['username']."'";
+ $query = mysql_query($sql);
+}
+
?>
\ No newline at end of file