Use less 'magic' environment variables

Tim Potter tpot at
Fri Aug 16 16:35:00 GMT 2002

On Sat, Aug 17, 2002 at 09:18:22AM +1000, Andrew Bartlett wrote:

> > > (For reference, WINBINDD_DOMAIN allows the user to specify what domains
> > > winbind will return entries in - instead of all trusted domains)
> > 
> > You haven't replaced it with anything.  I think being able to exclude
> > domains is useful, especially if you are in a large network of trusted
> > domains and for some reason aren't interested in other remote domains.
> Except that this doesn't actually work properly.   As the code stands,
> it only applies to get*ent(), and not to all other queries.

I guess it would make more sense to have this work properly.
Doing a full get{pw,gr}ent is many times more expensive than doing a
single lookup as all the other functions do.

> > > So, what do people think?  (Naturally, I'll also remove the manpage
> > > reference in a final patch).
> > 
> > As I mentioned I think the functionality should stay, even if it isn't
> > implemented using environment variables.
> Hmm, I suppose... ;-)  Time for another smb.conf paramater

Environment variables are more flexible - you can do things like:


or my favourite:

$ _NO_WINBINDD=1 killall -9 winbindd


More information about the samba-technical mailing list