Advertisement
Guest User

Untitled

a guest
Aug 30th, 2016
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.93 KB | None | 0 0
  1. [ INFO] 2013-02-07 20:51:07,779 [] [0:0:0:0:0:0:0:1] RECEIVED: USER piyush
  2. [ INFO] 2013-02-07 20:51:07,781 [piyush] [0:0:0:0:0:0:0:1] SENT: 331 User name okay, need password for piyush.
  3.  
  4. [ INFO] 2013-02-07 20:51:07,784 [piyush] [0:0:0:0:0:0:0:1] RECEIVED: PASS *****
  5. [ WARN] 2013-02-07 20:51:07,785 [piyush] [0:0:0:0:0:0:0:1] User failed to log in
  6. [ WARN] 2013-02-07 20:51:08,285 [piyush] [0:0:0:0:0:0:0:1] Login failure - piyush
  7. [ INFO] 2013-02-07 20:51:08,286 [piyush] [0:0:0:0:0:0:0:1] SENT: 530 Authentication failed.
  8.  
  9. [ INFO] 2013-02-07 20:51:08,286 [piyush] [0:0:0:0:0:0:0:1] RECEIVED: QUIT
  10. [ INFO] 2013-02-07 20:51:08,290 [piyush] [0:0:0:0:0:0:0:1] SENT: 221 Goodbye.
  11.  
  12. [ INFO] 2013-02-07 20:51:08,291 [piyush] [0:0:0:0:0:0:0:1] CLOSED
  13.  
  14. <?xml version="1.0" encoding="UTF-8"?>
  15. <!--
  16. Licensed to the Apache Software Foundation (ASF) under one or more
  17. contributor license agreements. See the NOTICE file distributed with
  18. this work for additional information regarding copyright ownership.
  19. The ASF licenses this file to you under the Apache License, Version
  20. 2.0 (the "License"); you may not use this file except in compliance
  21. with the License. You may obtain a copy of the License at
  22. http://www.apache.org/licenses/LICENSE-2.0 Unless required by
  23. applicable law or agreed to in writing, software distributed under the
  24. License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
  25. CONDITIONS OF ANY KIND, either express or implied. See the License for
  26. the specific language governing permissions and limitations under the
  27. License.
  28. -->
  29. <server xmlns="http://mina.apache.org/ftpserver/spring/v1"
  30. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  31. xmlns:beans="http://www.springframework.org/schema/beans"
  32. xsi:schemaLocation="
  33. http://mina.apache.org/ftpserver/spring/v1 http://mina.apache.org/ftpserver/ftpserver-1.0.xsd
  34. "
  35. id="Prometheus">
  36. <listeners>
  37. <nio-listener name="default" port="2121" />
  38. </listeners>
  39. <db-user-manager encrypt-passwords="salted">
  40. <data-source>
  41. <beans:bean class="org.apache.commons.dbcp.BasicDataSource" >
  42. <beans:property name="driverClassName" value="com.mysql.jdbc.Driver" />
  43. <beans:property name="url" value="jdbc:mysql://localhost/apache_test" />
  44. <beans:property name="username" value="amy" />
  45. <beans:property name="password" value="piyush" />
  46. </beans:bean>
  47. </data-source>
  48. <insert-user>INSERT INTO FTP_USER (userid, userpassword,
  49. homedirectory, enableflag, writepermission, idletime, uploadrate,
  50. downloadrate) VALUES ('{userid}', '{userpassword}',
  51. '{homedirectory}',
  52. {enableflag}, {writepermission}, {idletime},
  53. {uploadrate},
  54. {downloadrate})
  55. </insert-user>
  56. <update-user>UPDATE FTP_USER SET
  57. userpassword='{userpassword}',homedirectory='{homedirectory}',enableflag={enableflag},writepermission={writepermission},idletime={idletime},uploadrate={uploadrate},downloadrate={downloadrate}
  58. WHERE userid='{userid}'
  59. </update-user>
  60. <delete-user>DELETE FROM FTP_USER WHERE userid = '{userid}'
  61. </delete-user>
  62. <select-user>SELECT userid, userpassword, homedirectory,
  63. enableflag, writepermission, idletime, uploadrate, downloadrate,
  64. maxloginnumber, maxloginperip FROM
  65. FTP_USER WHERE userid = '{userid}'
  66. </select-user>
  67. <select-all-users>SELECT userid FROM FTP_USER ORDER BY userid
  68. </select-all-users>
  69. <is-admin>SELECT userid FROM FTP_USER WHERE userid='{userid}'
  70. AND
  71. userid='admin'
  72. </is-admin>
  73. <authenticate>SELECT userpassword from FTP_USER WHERE
  74. userid='{userid}'</authenticate>
  75. </db-user-manager>
  76. </server>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement