https://bugs.contribs.org/show_bug.cgi?id=10876
Bug ID: 10876
Summary: IOS app throw errors with ldap uusers
Classification: Contribs
Product: SME Contribs
Version: 9.2
Hardware: ---
OS: ---
Status: CONFIRMED
Severity: normal
Priority: P3
Component: smeserver-nextcloud
Assignee: [email protected]
Reporter: [email protected]
QA Contact: [email protected]
Target Milestone: ---
ios app started behaving weird few month ago.
first you were not able to add or remove favorite from within the app.
now loading files will throw a 404 error and a 401.
this is because the app start trying to use the display name / login name in
place of the real username.
when using ldap the real user name is an UUID :
5279b38a-b8ed-1031-9373-cf418e4c8c3b
as a result to get the avatar of the user you get :
/nextcloud/index.php/avatar/5279b38a-b8ed-1031-9373-cf418e4c8c3b/128
but the app does
/nextcloud/index.php/avatar/mylogin/128
and hits a 404
editing test files was also failing
unless you log using the uid 5279b38a-b8ed-1031-9373-cf418e4c8c3b but this is
not an authorized login
the solution:
OCC ldap:set-config s01 ldapExpertUUIDGroupAttr cn
OCC ldap:set-config s01 ldapExpertUUIDUserAttr uid
OCC ldap:set-config s01 ldapExpertUsernameAttr uid
this will use the sme login name for every new user from now.
this could be added safely to the current
/etc/e-smith/events/actions/nextcloud-occ-conf
what to do for current users:
you will need to do as admin :
1 go to preference
2 choose ldap
3 choose expert
4 fill the 3 fields as presented above
5 in cli do :
# OCC user:list and save the content
# cd /home/e-smith/files/nextcloud/data ; mv OLDUUID username
# OCC files:scan username
6 delete the UUID association for users
7 you should then be able to login as the user with its previous files
you might need to flush your browser history if you did not logout before
you might just lose the benefit of the trash history.
will try to find a hack from the db or a way to script that
--
You are receiving this mail because:
You are the QA Contact for the bug._______________________________________________
Mail for each SME Contribs bug report
To unsubscribe, e-mail [email protected]
Searchable archive at https://lists.contribs.org/mailman/public/contribteam/