Skip to content

Commit 9ebe0bf

Browse files
committed
Added auth.sql plugin extended with GrandesFicheros.com modifications.
1 parent f5ea037 commit 9ebe0bf

File tree

3 files changed

+71
-0
lines changed

3 files changed

+71
-0
lines changed
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
<?php
2+
/*
3+
* Copyright 2007-2011 Charles du Jeu <contact (at) cdujeu.me>
4+
* This file is part of AjaXplorer.
5+
*
6+
* AjaXplorer is free software: you can redistribute it and/or modify
7+
* it under the terms of the GNU Affero General Public License as published by
8+
* the Free Software Foundation, either version 3 of the License, or
9+
* (at your option) any later version.
10+
*
11+
* AjaXplorer is distributed in the hope that it will be useful,
12+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14+
* GNU Affero General Public License for more details.
15+
*
16+
* You should have received a copy of the GNU Affero General Public License
17+
* along with AjaXplorer. If not, see <http://www.gnu.org/licenses/>.
18+
*
19+
* The latest code can be found at <http://www.ajaxplorer.info/>.
20+
*/
21+
defined('AJXP_EXEC') or die( 'Access not allowed');
22+
23+
/**
24+
* @package info.ajaxplorer.plugins
25+
* sqlAuthDriver with Ultreia Comunicaciones modifications for GrandesFicheros.com
26+
*/
27+
class sqlgfAuthDriver extends sqlAuthDriver
28+
{
29+
function usersEditable()
30+
{
31+
return false;
32+
}
33+
34+
function passwordsEditable()
35+
{
36+
return true;
37+
}
38+
}
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<authdriver name="sqlgf" label="GrandesFicheros.com" description="CONF_MESSAGE[Use GrandesFicheros.com SQL authentication.]" mixins="authdriver_commons" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="file:../core.ajaxplorer/ajxp_registry.xsd">
3+
<client_settings>
4+
<resources>
5+
<i18n namespace="sql_auth" path="plugins/auth.sql/i18n"/>
6+
</resources>
7+
</client_settings>
8+
<server_settings>
9+
<param name="SQL_DRIVER" type="group_switch:dibi" label="CONF_MESSAGE[Connexion]" description="CONF_MESSAGE[The Database Connexion]" mandatory="true"/>
10+
<param type="button" name="INSTALL_SQL" choices="run_plugin_action:auth.sql:installSQLTables" label="CONF_MESSAGE[SQL Tables]" description="CONF_MESSAGE[Install SQL Tables]" mandatory="false"/>
11+
</server_settings>
12+
<class_definition filename="plugins/auth.sqlgf/class.sqlgfAuthDriver.php" classname="sqlgfAuthDriver"/>
13+
<registry_contributions>
14+
<external_file filename="plugins/core.auth/standard_auth_actions.xml" include="actions/*" exclude="actions/action[@name='pass_change']"/>
15+
<actions>
16+
<action name="pass_change">
17+
<gui text="194" title="194" src="yast_security.png" iconClass="icon-key" accessKey="" hasAccessKey="false">
18+
<context selection="false" dir="" recycle="true" ajxpWidgets="UserWidget::logging_string"></context>
19+
</gui>
20+
<processing>
21+
<clientCallback prepareModal="true"><![CDATA[
22+
location.href = 'https://webmail.ticaas.net/?_task=settings&_action=plugin.password';
23+
]]></clientCallback>
24+
<serverCallback methodName="switchAction"></serverCallback>
25+
</processing>
26+
</action>
27+
</actions>
28+
</registry_contributions>
29+
<dependencies>
30+
<pluginClass pluginName="auth.sql"/>
31+
</dependencies>
32+
</authdriver>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<p>See auth.sql.</p>

0 commit comments

Comments
 (0)