wbinfo fails when called from idmap tdb2 script
Joachim Achtzehnter
joachima at netacquire.com
Thu Mar 31 16:44:54 UTC 2016
Hi Volker,
Your changes to the wording look good to me.
Thanks for the explanation of type 4 (alias). We'll treat it as a group
in our script.
Joachim
On 2016-03-31 8:18, Volker Lendecke wrote:
> On Wed, Mar 30, 2016 at 12:49:17PM -0700, Joachim Achtzehnter wrote:
>> How about the attached patch to add a paragraph to the idmap_script(8) man
>> page explaining the need to undefine this environment variable?
>>
>> By the way, how should this script handle an alias SID? The "wbinfo -s"
>> output ends with a type identifier, the values of which are presumably from
>> the following enumeration:
>>
>> enum wbcSidType {
>> WBC_SID_NAME_USE_NONE=0,
>> WBC_SID_NAME_USER=1,
>> WBC_SID_NAME_DOM_GRP=2,
>> WBC_SID_NAME_DOMAIN=3,
>> WBC_SID_NAME_ALIAS=4,
>> WBC_SID_NAME_WKN_GRP=5,
>> WBC_SID_NAME_DELETED=6,
>> WBC_SID_NAME_INVALID=7,
>> WBC_SID_NAME_UNKNOWN=8,
>> WBC_SID_NAME_COMPUTER=9
>> };
>
> Correct.
>
>> I assume 2 and 5 can be treated as a group, returning GID, and for 1 the
>> script should return UID, but what to do for type 4 (alias)? I've seen it
>> called with 4, in this case for an alias group, but how would the script
>> know that the alias is a group?
>
> Aliases are the windows technical term for "local groups", so treat it
> as a group.
>
> What do you think about the attached patches? I've done the wording
> slightly differently.
>
> Thanks,
>
> Volker
>
--
joachima at netacquire.com http://www.netacquire.com
More information about the samba-technical
mailing list