svn commit: samba r17408 - in branches/SAMBA_3_0/source: lib smbd
idra at samba.org
idra at samba.org
Fri Aug 4 22:18:02 GMT 2006
Author: idra
Date: 2006-08-04 22:18:02 +0000 (Fri, 04 Aug 2006)
New Revision: 17408
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=17408
Log:
Let us use netgroups even without a NIS domain but just using files
Modified:
branches/SAMBA_3_0/source/lib/access.c
branches/SAMBA_3_0/source/smbd/password.c
Changeset:
Modified: branches/SAMBA_3_0/source/lib/access.c
===================================================================
--- branches/SAMBA_3_0/source/lib/access.c 2006-08-04 21:15:52 UTC (rev 17407)
+++ branches/SAMBA_3_0/source/lib/access.c 2006-08-04 22:18:02 UTC (rev 17408)
@@ -83,8 +83,7 @@
yp_get_default_domain(&mydomain);
if (!mydomain) {
- DEBUG(0,("Unable to get default yp domain.\n"));
- return False;
+ DEBUG(0,("Unable to get default yp domain. Try without it.\n"));
}
if (!(hostname = SMB_STRDUP(s))) {
DEBUG(1,("out of memory for strdup!\n"));
@@ -95,7 +94,7 @@
DEBUG(5,("looking for %s of domain %s in netgroup %s gave %s\n",
hostname,
- mydomain,
+ mydomain?mydomain:"(ANY)",
tok+1,
BOOLSTR(netgroup_ok)));
Modified: branches/SAMBA_3_0/source/smbd/password.c
===================================================================
--- branches/SAMBA_3_0/source/smbd/password.c 2006-08-04 21:15:52 UTC (rev 17407)
+++ branches/SAMBA_3_0/source/smbd/password.c 2006-08-04 22:18:02 UTC (rev 17408)
@@ -417,12 +417,11 @@
yp_get_default_domain(&mydomain);
if(mydomain == NULL) {
- DEBUG(5,("Unable to get default yp domain\n"));
- return False;
+ DEBUG(5,("Unable to get default yp domain, let's try without specifying it\n"));
}
DEBUG(5,("looking for user %s of domain %s in netgroup %s\n",
- user, mydomain, ngname));
+ user, mydomain?mydomain:"(ANY)", ngname));
if (innetgr(ngname, NULL, user, mydomain)) {
DEBUG(5,("user_in_netgroup: Found\n"));
@@ -438,7 +437,7 @@
strlower_m(lowercase_user);
DEBUG(5,("looking for user %s of domain %s in netgroup %s\n",
- lowercase_user, mydomain, ngname));
+ lowercase_user, mydomain?mydomain:"(ANY)", ngname));
if (innetgr(ngname, NULL, lowercase_user, mydomain)) {
DEBUG(5,("user_in_netgroup: Found\n"));
More information about the samba-cvs
mailing list