-
Notifications
You must be signed in to change notification settings - Fork 7
Description
Its been reported that unexpected errors relating to RasPhone API calls are happening with the RasPhone API returning the error ERROR_CANNOT_FIND_PHONEBOOK_ENTRY on the user tunnel during the process of updating both tunnels. This typically happens after a Group Policy change is detected as this triggers both profiles to update simultaneously.
No user has reported issues with this and it appears that the tunnels are able to update and are stable outside of these specific events. This means that it is likely an issue with either the profiles being updated while the profile is in the middle of a delete and recreate and/or the Ras API returns bad results when being queried by multiple systems simultaneously.
Currently after a profile is successfully installed, the code loops through EVERY installed profile to check that the runtime settings are correctly installed. This is during a mutex locked zone so in theory the managed profile shouldn't be changing but it could be the deletion is happening just before the profile update checks are called and before the managed profile can be updated (possibly waiting for the lock to release?)
If this is the case, there are 2 easy options:
- Don't attempt to update all profiles whenever 1 profile has been updated
- Use GetUpdateTime to split out the profile updates after a GPO trigger event