| 83 | |
| 84 | For MYSQL |
| 85 | |
| 86 | 1) Clean the databases(when in base eden folder) using |
| 87 | {{{ |
| 88 | rm -rf databases/* errors/* uploads/* sessions/* |
| 89 | }}} |
| 90 | |
| 91 | 2) In models/000_config.py choose database connection settings (use mysql). |
| 92 | |
| 93 | 3) In the sql table of auth_user add a user with email chat_admin@example.com , username chat_admin_example.com and password of your choice(having alphanumeric characters). |
| 94 | |
| 95 | 4) Install openfire. During installation use mysql and choose the openfire database name. |
| 96 | |
| 97 | 5) After Installation and following steps from above. Go to server properties and set the following properties. |
| 98 | * jdbcProvider.driver : com.mysql.jdbc.Driver |
| 99 | * jdbcProvider.connectionString : jdbc:mysql://localhost/<sahana database name>?user=<sql_username>&password=<sql_password> |
| 100 | * change provider.auth.className to org.jivesoftware.openfire.auth.JDBCAuthProvider |
| 101 | * jdbcAuthProvider.passwordSQL : select password from auth_user where username=? |
| 102 | * jdbcAuthProvider.passwordType : plain |
| 103 | * change provider.user.className to org.jivesoftware.openfire.user.JDBCUserProvider |
| 104 | * jdbcUserProvider.loadUserSQL : select first_name,email from auth_user where username=? |
| 105 | * jdbcUserProvider.userCountSQL : select count(*) from auth_user |
| 106 | * jdbcUserProvider.allUsersSQL : select username from auth_user |
| 107 | * jdbcUserProvider.searchSQL : select username from auth_user where |
| 108 | * jdbcUserProvider.usernameField : username |
| 109 | * jdbcUserProvider.emailField : email |
| 110 | * jdbcUserProvider.nameField : first_name |
| 111 | * admin.authorizedJIDs: choose a username from the user database and put it here e.g. chat_admin_example.com@<servername> |
| 112 | |
| 113 | 6) Restart the server |