Pydio 6 auf Ispconfig 3

Till

Administrator
Habe ich bis jetzt nicht getestet. sonst schreib doch mal, wo Du nicht weiter kommst. Vielleicht kriegen wir es ja so hin.
 

mzips

Member
Im grunde klappt alles bis es mit den Eintägen auf seite 3 Losgeht es ist wirklich schwer zu verstehen:
Edit the conf/bootstrap_repositories.php was soll da editiert werden alles löschen und den teil hinzufügen ?.

Code zur Änderung:
Code:
Around line 53:
if(el.name != "userid" && el.name!="password" && el.name != "get_action" && el.name!="login_seed"){
remove the el.name != "userid" && part so it looks like this:
if(el.name!="password" && el.name != "get_action" && el.name!="login_seed"){

Around line 79:
<div class="dialogLegend" ajxp_message_id="ftp_auth.1">AJXP_MESSAGE[ftp_auth.1]</div>
add this directly behind:
<input type="hidden" name="FTP_HOST" value=""><input type="hidden" name="FTP_SECURE" value="FALSE"><input type="hidden" name="FTP_DIRECT" value="FALSE"><input type="hidden" name="FTP_PORT" value="21"><input type="hidden" name="CHARSET" value=""><input type="hidden" name="PATH" value="/web">
so it looks like this:
<div class="dialogLegend" ajxp_message_id="ftp_auth.1">AJXP_MESSAGE[ftp_auth.1]</div><input type="hidden" name="FTP_HOST" value=""><input type="hidden" name="FTP_SECURE" value="FALSE"><input type="hidden" name="FTP_DIRECT" value="FALSE"><input type="hidden" name="FTP_PORT" value="21"><input type="hidden" name="CHARSET" value=""><input type="hidden" name="PATH" value="/web">

(If you want to grant access to the base dir instead of the web dir, e. g. if you want to access the "private" folder, too, just change the "/web" to "/" in the last hidden input field.)

Around line 82:
Remove these three lines from the file:
<tr>
< td align="right"><ajxp:message ajxp_message_id="ftp_auth.2">AJXP_MESSAGE[ftp_auth.2]</ajxp:message> </td><td colspan="3"><input type="text" name="FTP_HOST" style="width: 190px; padding:0px; margin-right: 10px;" class="dialogFocus"><ajxp:message ajxp_message_id="ftp_auth.8">AJXP_MESSAGE[ftp_auth.8]</ajxp:message>  <input type="text" name="FTP_PORT" style="width: 25px; padding:0px;" value="21"></td>
< /tr>

Around line 86 (after deleting the previous lines):
Remove all 13 lines from the file. This section starts with:
<tr>
< td colspan="4">
< div class="dialogLegend" style="margin-top: 12px;" ajxp_message_id="ftp_auth.3">AJXP_MESSAGE[ftp_auth.3]</div>
and ends with
<td align="right"><ajxp:message ajxp_message_id="ftp_auth.7">AJXP_MESSAGE[ftp_auth.7]</ajxp:message> </td><td><input type="radio" name="FTP_DIRECT" style="width: 12px; padding:0px;" value="TRUE"><label style="display:inline-block;width:27px;">AJXP_MESSAGE[440]</label><input type="radio" name="FTP_DIRECT" style="width: 12px; padding:0px;" value="FALSE" checked><label style="display:inline-block;width:27px;">AJXP_MESSAGE[441]</label></td>
< /tr>

Diese Datei ist ab der v 6 anders plugins/auth.ftp/manifest.xml
Code von Pydio v6
Code:
<?xml version="1.0" encoding="UTF-8"?>
<authdriver enabled="false" name="ftp" label="CONF_MESSAGE[FTP authentication]" description="CONF_MESSAGE[Authenticate users by validating their credentials against an FTP server.]" mixins="authdriver_commons"  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="file:../core.ajaxplorer/ajxp_registry.xsd">
    <client_settings>
        <resources>
            <i18n namespace="ftp_auth" path="plugins/auth.ftp/i18n"/>
        </resources>
    </client_settings>
    <server_settings>
        <param name="TEST_CONNEXION" type="button" choices="run_plugin_action:auth.ftp:testParameters" default="auth.ftp" label="CONF_MESSAGE[Test connection]" description="CONF_MESSAGE[Test connection to the FTP server]" mandatory="false"/>
        <param name="FTP_LOGIN_SCREEN" type="boolean" label="CONF_MESSAGE[FTP Login Screen]" description="CONF_MESSAGE[Replace the default connection screen (username and password) by a screen allowing users to enter their own FTP connection data (server, port, etc.)]" mandatory="true" default="false"/>
        <param name="REPOSITORY_ID" type="select" choices="json_list:list_all_repositories_json" label="CONF_MESSAGE[Workspace]" description="CONF_MESSAGE[ID of the workspace used to validate credentials]" mandatory="true"/>
    </server_settings>
    <class_definition filename="plugins/auth.ftp/class.ftpAuthDriver.php" classname="ftpAuthDriver"/>
    <registry_contributions>
        <external_file filename="plugins/core.auth/standard_auth_actions.xml" include="actions/action[@name='back']" exclude=""/>
        <client_configs>
            <template element="ajxp_desktop" name="hide_remember_me" position="bottom"><![CDATA[
                    <style type="text/css"> form#login_form > div > div.SF_element:last-child{ display:none; }</style>
                    ]]></template>
        </client_configs>
        <actions>
            <action name="set_ftp_data">
                <rightsContext noUser="false" userLogged="hidden" guestLogged="show" read="false" write="false" adminOnly=""/>
                <processing>
                    <serverCallback methodName="setFtpDataCallback"/>
                </processing>
            </action>
            <!-- OVERRIDE LOGOUT -->
            <action name="ftp_logout" expireDefault="true">
                <gui text="164" title="169" src="decrypted.png"
                    accessKey="" hasAccessKey="false" iconClass="icon-signout">
                    <context selection="false" dir="" recycle="false"
                        actionBar="false" contextMenu="false" infoPanel="false"
                        actionBarGroup="user" ajxpWidgets="UserWidget::logging_string">
                    </context>
                </gui>
                <rightsContext noUser="false" userLogged="only" guestLogged="hidden" read="false" write="false" adminOnly=""/>
                <processing>
                    <clientCallback prepareModal="false"><![CDATA[
                        clearRememberData();
                        var connexion = new Connexion();
                        connexion.addParameter('get_action', 'ftp_logout');
                        connexion.onComplete = function(transport){
                            PydioApi.getClient().parseXmlMessage(transport.responseXML);
                            };
                        connexion.sendAsync();
                        ]]></clientCallback>
                    <serverCallback methodName="logoutCallback"/>
                </processing>
            </action>
        </actions>
    </registry_contributions>
    <dependencies>
        <pluginClass pluginName="access.ftp"/>
    </dependencies>
</authdriver>

evtl. hat jemand ja ein Lösungsansatz
 
Zuletzt bearbeitet:

mzips

Member
Ich stoße nochmal an hänge noch immer an diesem Problem habe oben mal editiert erster Code ist vom Tutorial zu ersetztende teil und der Code da drunter der von Aktuellen Pydio

LG
 

Werbung

Top