wbinfo fails when called from idmap tdb2 script

Volker Lendecke Volker.Lendecke at SerNet.DE
Tue Mar 29 05:55:50 UTC 2016


On Mon, Mar 28, 2016 at 02:04:30PM -0700, Joachim Achtzehnter wrote:
> The idmap script module delegates control over the winbindd SID to
> GID/UID mappings to a script. It is configured like this:
> 
>     idmap config * : backend = tdb2
>     idmap config * : range = 10000000-20000000
>     idmap config * : script = /opt/bin/idmap.sh
> 
> The documentation for this feature explicitly mentions that the
> script can call "wbinfo -s" to convert its SID command line argument

Do an

unset _NO_WINBINDD

right before the wbinfo -s call and a

_NO_WINBINDD=1; export _NO_WINBINDD

right after it. It's a protection against never-ending
recursion.

Volker

-- 
SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen
phone: +49-551-370000-0, fax: +49-551-370000-9
AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen
http://www.sernet.de, mailto:kontakt at sernet.de



More information about the samba-technical mailing list