Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I had a problem with uidNumber when creating new users. The uidNumber of the new user is the same as the last created user. So when I created bunch of users they all had the same uidNumber. Which obviously not good. Never done php before, but this rough patch works for me:
diff ~before/ldapprov_samba.module ~after/ldapprov_samba.module
116c116
< $uid_number = array_pop($uid_numbers);
---
> $uid_number = array_pop($uid_numbers) + 1;
Comments
Comment #1
John Franklin CreditAttribution: John Franklin commentedDuplicate of #1080000: Auto Increment uidNumber.