• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

migration of .htpasswd users?

J

jtrefet

Guest
I have a protected directory that is not controlled by plesk. I want to have the directory controlled from within plesk but have a couple hundred users to add.

is thee any way to automate a migration from the .htpasswd file into the psa database?

any help would be greatly appreciated.
 
You may use API-CLI for automation. Adding user to the protected directory is as easy as

Code:
/opt/psa/bin/protdir -u /your-protected-dir -domain my.domain.com -add_user username -passwd password -passwd_type encrypted
 
Back
Top