nextcloud / user_external

👥 External user authentication methods like IMAP, SMB and FTP
https://apps.nextcloud.com/apps/user_external
107 stars 64 forks source link

Convert users to local #187

Closed danialbehzadi closed 2 years ago

danialbehzadi commented 2 years ago

I had some external users on my nextcloud instance. Unfortunately their mail provider recently switched to exchange and therefore, they can't authenticate with IMAP any more.

How can I convert their accounts to local, so they can continue using their accounts?

sebix commented 2 years ago

I did it the other way round in the past by moving the users between the database tables oc_users_external and oc_users directly. Worked fine.

danialbehzadi commented 2 years ago

I did it the other way round in the past by moving the users between the database tables oc_users_external and oc_users directly. Worked fine.

I cannot set password NULL for oc_users. How can I bypass it or set an initial password for them?

sebix commented 2 years ago

Don't set it and let the users (re-)set their password as if they had forgotten it? (Haven't tried it, guessing only)

danialbehzadi commented 2 years ago

I can't create users without password in database level.

danialbehzadi commented 2 years ago

I creates new users with a default password via occ command. then I changes their uid and uid_lower to the previous ones manually in database.