Displaying 4 results from an estimated 4 matches for "max_slices".
Did you mean:
max_lines
2020 Sep 03
4
SID mapping: Samba and SSSD
...ould be wrong on this, but generally speaking, you can be compatible
using idmap_rid if you set a low range identical to that of the low range
in SSSD.
SSSD determines low range for initial id slice using approximately the
following algorithm IIRC:
```
uint32_t hash_val = 0;
int our_slice = 0;
int max_slices = 10000;
int final_value = 0;
int slice_size = 20000
hash_val = murmur3(sid_str, strlen(sid_str), 0xdeadbeef);
our_slice = hash_val % max_slices;
final_value = our_slice * slice_size +slice_size;
```
This works for the first slice, but slices after that are non-deterministic.
2020 Sep 03
0
SID mapping: Samba and SSSD
...em because SSSD allows multiple slices. I haven't
tested sssd-winbind-idmap yet I mentioned in another response
>
> SSSD determines low range for initial id slice using approximately the
> following algorithm IIRC:
> ```
> uint32_t hash_val = 0;
> int our_slice = 0;
> int max_slices = 10000;
> int final_value = 0;
> int slice_size = 20000
>
> hash_val = murmur3(sid_str, strlen(sid_str), 0xdeadbeef);
> our_slice = hash_val % max_slices;
> final_value = our_slice * slice_size +slice_size;
> ```
> This works for the first slice, but slices after that are...
2020 Sep 03
0
SID mapping: Samba and SSSD
...g, you can be compatible
> using idmap_rid if you set a low range identical to that of the low range
> in SSSD.
>
> SSSD determines low range for initial id slice using approximately the
> following algorithm IIRC:
> ```
> uint32_t hash_val = 0;
> int our_slice = 0;
> int max_slices = 10000;
> int final_value = 0;
> int slice_size = 20000
>
> hash_val = murmur3(sid_str, strlen(sid_str), 0xdeadbeef);
> our_slice = hash_val % max_slices;
> final_value = our_slice * slice_size +slice_size;
> ```
> This works for the first slice, but slices after that are
&...
2020 Sep 03
6
SID mapping: Samba and SSSD
On Thu, Sep 03, 2020 at 06:43:32PM +0100, Rowland penny via samba wrote:
> On 03/09/2020 18:04, Johan Hattne via samba wrote:
> > Dear all;
> >
> > Would anybody be able to tell me what the idmap configuration is to have
> > Samba do the same SID-to-user/group mapping as the SSSD defaults?? I was
> > convinced I saw it on this list or the wiki not too long ago,