incubator-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ran...@apache.org
Subject cvs commit: incubator-ftpserver/src/conf config.xml
Date Mon, 23 Jun 2003 16:37:52 GMT
rana_b      2003/06/23 09:37:52

  Modified:    src/conf config.xml
  Log:
  new db user manager config params added
  
  Revision  Changes    Path
  1.2       +20 -3     incubator-ftpserver/src/conf/config.xml
  
  Index: config.xml
  ===================================================================
  RCS file: /home/cvs/incubator-ftpserver/src/conf/config.xml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- config.xml	31 Mar 2003 06:50:02 -0000	1.1
  +++ config.xml	23 Jun 2003 16:37:52 -0000	1.2
  @@ -135,8 +135,8 @@
       <ftp-admin-name>admin</ftp-admin-name>   
   
       <!-- property file based user manager -->
  -    <encrypt>false</encrypt>
  -    
  +    <encrypt>true</encrypt>
  +
       <!-- file object store based user manager
       <repository destinationURL="file://./FtpUserManagerStore/"
                   type="OBJECT"
  @@ -149,6 +149,23 @@
       <url>jdbc:mysql://localhost/ftpDB</url>
       <user>root</user>
       <password>admin</password>
  +    <sql-all><![CDATA[SELECT LOGIN_ID FROM FTP_USER ORDER BY LOGIN_ID]]></sql-all>
  +    <sql-select><![CDATA[SELECT LOGIN_ID, PASSWORD, HOME_DIR, ENABLED, WRITE_PERM,
IDLE_TIME, UPLOAD_RATE, DOWNLOAD_RATE 
  +                         FROM FTP_USER 
  +                         WHERE LOGIN_ID = '{uid}']]></sql-select>
  +    <sql-delete><![CDATA[DELETE FROM FTP_USER WHERE LOGIN_ID = '{uid}']]></sql-delete>
  +    <sql-insert><![CDATA[INSERT INTO FTP_USER 
  +                         (LOGIN_ID, PASSWORD, HOME_DIR, ENABLED, WRITE_PERM, IDLE_TIME,
UPLOAD_RATE, DOWNLOAD_RATE) 
  +                         VALUES ('{uid}', '{userpassword}', '{homedirectory}', '{enableflag}',
'{writepermission}', {idletime}, {uploadrate}, {downloadrate})]]></sql-insert>
  +    <sql-update><![CDATA[UPDATE FTP_USER 
  +                         SET PASSWORD='{userpassword}', 
  +                             HOME_DIR='{homedirectory}', 
  +                             ENABLED='{enableflag}', 
  +                             WRITE_PERM='{writepermission}', 
  +                             IDLE_TIME={idletime}, 
  +                             UPLOAD_RATE={uploadrate}, 
  +                             DOWNLOAD_RATE={downloadrate} 
  +                         WHERE LOGIN_ID='{uid}']]></sql-update>
       -->
   
       <!-- LDAP based user manager
  @@ -159,7 +176,7 @@
       <root>ou=people,o=apache.org</root>
       <prefix>uid=</prefix>
       <suffix>,ou=people,o=apache.org</suffix>
  -    -->    
  +    -->
   
     </user-manager>
   
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: cvs-unsubscribe@incubator.apache.org
For additional commands, e-mail: cvs-help@incubator.apache.org


Mime
View raw message