Skip to content

Fails if admin user disabled (?) #12

@langabi

Description

@langabi

I've hit a set of issues:

  • initially error "Could not reset the password as an e-mail confirmation could not be sent"
  • when I edited the script to expose more detailed error messages, discovered that "people" and "userhome" global variables are not set
  • commenting out these lines makes the script run, but the password isn't actually changed: people.setPassword() silently fails, which suggests script not running as admin
  • in alfresco/templates/webscripts/org/sharextras/slingshot/reset-user-password.post.desc.xml, authentication is set to "runas" user "admin". But in my setup, this user's account is disabled, and alfresco-global.properties has property "alfresco_user_store.adminusername" set to another username

When I changed the "runas" in alfresco/templates/webscripts/org/sharextras/slingshot/reset-user-password.post.desc.xml to the same user as in alfresco-global.properties, then everything seems to work!

Not sure how to robustly make sure the script uses the right admin username.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions