From nobody@FreeBSD.org  Fri May 30 18:51:01 2008
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 7ED7F1065670
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 30 May 2008 18:51:01 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 87F2F8FC1C
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 30 May 2008 18:51:01 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.2/8.14.2) with ESMTP id m4UInI8d090528
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 30 May 2008 18:49:18 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.2/8.14.1/Submit) id m4UInINk090527;
	Fri, 30 May 2008 18:49:18 GMT
	(envelope-from nobody)
Message-Id: <200805301849.m4UInINk090527@www.freebsd.org>
Date: Fri, 30 May 2008 18:49:18 GMT
From: Yuri <yuk@dtmx.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: winbind is ignored in compat mode in nsswitch.conf
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         124151
>Category:       conf
>Synopsis:       winbind is ignored in compat mode in nsswitch.conf(5)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri May 30 19:00:12 UTC 2008
>Closed-Date:    
>Last-Modified:  Tue Jun 03 02:22:58 UTC 2008
>Originator:     Yuri
>Release:        6.3-RELEASE
>Organization:
Exigen
>Environment:
metida-new# uname -a
FreeBSD metida-new.exigengroup.com 6.3-RELEASE FreeBSD 6.3-RELEASE #0: Wed Jan 16 04:45:45 UTC 2008     root@dessler.cse.buffalo.edu:/usr/obj/usr/src/sys/SMP  i386

>Description:
"compat" mode really works only with "nis", nothing else.

It is still possible to run _both_ NIS and WINBIND at the same time, 
but not in "compat" mode.

Working nsswitch.conf file:
group: file nis winbind

But it means _all_ NIS domain is imported, all "+" and "-" are ignored in group or passwd.

Neither of those two works:
a) 
group: compat winbind
group_compat: nis
b) 
group: compat
group_compat: nis winbind


>How-To-Repeat:
1) enable NIS, verify if it works
2) ebale winbind, verify it works
3) change /etc/nsswitch.conf to enable both in compat mode
>Fix:
don't use "compat" mode. Simply goes with ordinary syntax:

group: files nis winbind
passwd: file nis winbind


>Release-Note:
>Audit-Trail:
>Unformatted:
