We have configured LDAP, issue is that when nextcloud have same username as ldap have, another username mapped in user list with same name along with random number. For example user01 is local NC account, LDAP also have user01, then within 10 mins ldap maps it as user01_123.
How to stop this and clear all these mapping? I tried to clear mapping in Advance tab of LDAP app of nextcloud, then it clears and then appeared again with new number
We need to migrate local user to LDAP. That is achieved already in test environment. But now issue is that we have created all users in ldap first that mapped with system prefix (offcourse ldap usernames are same as local user).
So i used clear mapping, and migrated two or 3 users but users mapped again, then really i don’t clear mapping because some live users already migrated.
My question is not related migration, my question is,can someone advice how to stop these user enteries with prefix?
Users are mapped when logging in, when searched for, and with a background job I think.
So maybe if you disable cron and do not search for users while your are doing your migrations the mapping will not happen.
An other solution is to add a flag in your LDAP for users which are not ready to be mapped, and you filter them out with the LDAP filter. Then when you want them to get mapped you switch the flag.