Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Hiboo
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cyrinux
Hiboo
Commits
7dc76094
Commit
7dc76094
authored
4 years ago
by
kaiyou
Browse files
Options
Downloads
Patches
Plain Diff
Add migration instructions for Seafile
parent
942c02cd
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
hiboo/application/templates/application_seafile.html
+29
-0
29 additions, 0 deletions
hiboo/application/templates/application_seafile.html
with
29 additions
and
0 deletions
hiboo/application/templates/application_seafile.html
+
29
−
0
View file @
7dc76094
...
...
@@ -20,4 +20,33 @@ OAUTH_ATTRIBUTE_MAP = {
}
</pre>
<h3>
Migrating accounts
</h3>
<p>
If you are running an existing Seafile server, you may import your existing accounts as claimable
profiles under Hiboo.
</p>
<p>
Accounts are stored in the
<i>
EmailUser
</i>
table of the
<i>
ccnet_db
</i>
database. However, we recommend
that profiles be named after the username instead of the email address. The following SQL query exports
username, password hash, and user email as alternate claim to a CSV file. It dynamically converts the password
to use a proper crypt context hash identifier, so that Hiboo will recognize the hash.
</p>
<pre>
select
profile.nickname,
user.email,
CONCAT('$pbkdf2-sha256$10000$', SUBSTRING(TO_BASE64(UNHEX(SUBSTRING(user.passwd,20,64))),1,43), '$', SUBSTRING(TO_BASE64(UNHEX(SUBSTRING(user.passwd,85,64))),1,43)) as password
from
ccnet_db.EmailUser as user
left join
seahub_db.profile_profile as profile
on
profile.user=user.email
into
outfile '/tmp/users.csv'
fields terminated by ',';
</pre>
<p>
Please grab the exported CSV file, copy it next to Hiboo, and run the following command to import these profiles as unclaimed.
</p>
<pre>
flask profile csv-unclaimed {{ service.uuid }} /tmp/users.csv
</pre>
{% include "application_oidc.html" %}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment