Игорь Надеин
aa9fcbe964
fix: handle empty position_id and unwillingToPerform LDAP error
...
Problem:
- When clearing employee position (position_id: ''), LDAP sync failed
- Error: LDAP modify failed: 'unwillingToPerform' (code 53)
- System tried to remove user from position group but LDAP refused
Root Causes:
1. Empty string '' not explicitly converted to None
2. unwillingToPerform error not handled (user may not be in group)
Solution:
1. Convert position_id: '' to None (no position) at parsing stage
2. Wrap remove_group_members in try/except
3. Ignore unwillingToPerform errors with warning log
4. Add detailed logging for position group operations
This allows users to clear positions without LDAP sync failures.
2025-12-08 13:14:40 +03:00
..
2025-12-08 12:41:56 +03:00
2025-09-09 17:55:15 +03:00
2025-11-29 16:41:03 +03:00
2025-12-05 16:18:11 +03:00
2025-12-03 12:50:10 +03:00
2025-11-30 11:20:05 +03:00
2025-12-05 13:07:57 +03:00
2025-12-08 13:14:40 +03:00
2025-12-08 10:48:59 +03:00
2025-12-05 10:56:23 +03:00
2025-11-20 09:00:55 +03:00
2025-07-30 08:15:53 +03:00
2025-11-20 09:00:55 +03:00
2025-11-20 09:00:55 +03:00
2025-12-03 12:50:10 +03:00
2025-12-03 12:59:12 +03:00
2025-12-05 14:53:52 +03:00
2025-09-11 17:56:33 +03:00
2025-12-08 12:29:44 +03:00
2025-12-08 13:09:55 +03:00
2025-12-03 07:21:25 +03:00
2025-07-30 08:15:53 +03:00
2025-10-28 08:54:38 +03:00
2025-12-01 14:19:58 +03:00
2025-12-01 14:19:58 +03:00
2025-11-29 16:41:03 +03:00
2025-12-02 14:44:48 +03:00
2025-11-20 18:52:29 +03:00
2025-12-01 14:19:58 +03:00
2025-10-28 08:54:38 +03:00
2025-12-01 14:19:58 +03:00
2025-12-01 14:19:58 +03:00
2025-12-02 17:39:09 +03:00
2025-10-28 08:54:38 +03:00
2025-10-28 08:54:38 +03:00
2025-11-20 09:00:55 +03:00
2025-09-03 17:17:44 +03:00
2025-11-20 18:52:29 +03:00
2025-11-20 09:00:55 +03:00
2025-07-30 08:15:53 +03:00
2025-12-01 14:19:58 +03:00
2025-12-01 14:19:58 +03:00
2025-09-12 17:04:47 +03:00
2025-11-20 18:52:29 +03:00
2025-12-01 14:19:58 +03:00
2025-12-01 14:19:58 +03:00
2025-10-28 08:54:38 +03:00
2025-12-03 07:21:25 +03:00
2025-11-21 12:57:01 +03:00
2025-12-02 17:39:09 +03:00
2025-11-20 18:52:29 +03:00
2025-11-30 12:25:19 +03:00
2025-12-05 16:25:17 +03:00
2025-11-30 12:25:19 +03:00
2025-11-21 15:46:02 +03:00
2025-12-05 16:18:45 +03:00
2025-12-05 16:18:45 +03:00
2025-12-01 14:19:58 +03:00
2025-12-03 13:48:31 +03:00
2025-11-20 18:52:29 +03:00
2025-11-20 18:52:29 +03:00
2025-11-20 18:52:29 +03:00
2025-12-01 14:19:58 +03:00
2025-12-02 17:39:09 +03:00
2025-12-02 17:39:09 +03:00
2025-11-21 13:35:38 +03:00
2025-12-01 14:19:58 +03:00
2025-12-03 07:21:25 +03:00
2025-12-03 07:21:25 +03:00
2025-12-01 14:19:58 +03:00