LDAP auth. not populating users

I googled some more and found this post here: Can't see LDAP users in the users page

I resolved / worked around this issue by doing the following:

  1. logged into the docker container for owncloud/server:10.1
  2. Ran this command:
    occ user:sync “OCA\User_LDAP\User_Proxy”
  3. now I can add the user before they logged in

The help for the command is as follows (for reference for anyone else that comes across it)

# occ help user:sync

Usage:
user:sync [options] [–] []

Arguments:
backend-class The quoted PHP class name for the backend, eg
- LDAP: “OCA\User_LDAP\User_Proxy”
- Samba: “OCA\User\SMB”
- Shibboleth: “OCA\User_Shibboleth\UserBackend”

Options:
-l, --list List all enabled backend classes
-u, --uid=UID Sync only the user with the given user id
-s, --seenOnly Sync only seen users
-c, --showCount Calculate user count before syncing
-m, --missing-account-action=MISSING-ACCOUNT-ACTION Action to take if the account isn’t connected to a backend any longer. Options are “disable” and “remove”. Note that removing the account will also remove the stored data and files for that account.
-r, --re-enable When syncing multiple accounts re-enable accounts that are disabled in ownCloud but available in the synced backend.
-h, --help Display this help message
-q, --quiet Do not output any message
-V, --version Display this application version
–ansi Force ANSI output
–no-ansi Disable ANSI output
-n, --no-interaction Do not ask any interactive question
–no-warnings Skip global warnings, show command output only
-v|vv|vvv, --verbose Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug

Help:
Synchronize users from a given backend to the accounts table.