kai | 1 Aug 2007 01:44
Picon
Favicon
Gravatar

svn commit: samba r24108 - in branches/SAMBA_4_0/source/winbind: .

Author: kai
Date: 2007-07-31 23:43:59 +0000 (Tue, 31 Jul 2007)
New Revision: 24108

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=24108

Log:
Split out samba3_parse_domuser to a seperate file and rename, so it can be
used for a name2domain call.

Added:
   branches/SAMBA_4_0/source/winbind/wb_utils.c
Modified:
   branches/SAMBA_4_0/source/winbind/config.mk
   branches/SAMBA_4_0/source/winbind/wb_samba3_cmd.c

Changeset:
Modified: branches/SAMBA_4_0/source/winbind/config.mk
===================================================================
--- branches/SAMBA_4_0/source/winbind/config.mk	2007-07-31 19:15:27 UTC (rev 24107)
+++ branches/SAMBA_4_0/source/winbind/config.mk	2007-07-31 23:43:59 UTC (rev 24108)
 <at>  <at>  -41,7 +41,8  <at>  <at> 
 [SUBSYSTEM::WB_HELPER]
 PRIVATE_PROTO_HEADER = wb_helper.h
 OBJ_FILES = \
-		wb_async_helpers.o
+		wb_async_helpers.o \
+		wb_utils.o
 PUBLIC_DEPENDENCIES = RPC_NDR_LSA dcerpc_samr
 # End SUBSYSTEM WB_HELPER
(Continue reading)

kai | 1 Aug 2007 01:49
Picon
Favicon
Gravatar

svn commit: samba r24109 - in branches/SAMBA_4_0/source/winbind: .

Author: kai
Date: 2007-07-31 23:49:04 +0000 (Tue, 31 Jul 2007)
New Revision: 24109

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=24109

Log:
Add a wb_name2domain call

Added:
   branches/SAMBA_4_0/source/winbind/wb_name2domain.c
Modified:
   branches/SAMBA_4_0/source/winbind/config.mk

Changeset:
Modified: branches/SAMBA_4_0/source/winbind/config.mk
===================================================================
--- branches/SAMBA_4_0/source/winbind/config.mk	2007-07-31 23:43:59 UTC (rev 24108)
+++ branches/SAMBA_4_0/source/winbind/config.mk	2007-07-31 23:49:04 UTC (rev 24109)
 <at>  <at>  -15,6 +15,7  <at>  <at> 
 		wb_dom_info.o \
 		wb_dom_info_trusted.o \
 		wb_sid2domain.o \
+		wb_name2domain.o \
 		wb_connect_lsa.o \
 		wb_connect_sam.o \
 		wb_cmd_lookupname.o \

Added: branches/SAMBA_4_0/source/winbind/wb_name2domain.c
===================================================================
(Continue reading)

build | 1 Aug 2007 02:03
Picon
Favicon

Build status as of Wed Aug 1 00:00:02 2007

URL: http://build.samba.org/

--- /home/build/master/cache/broken_results.txt.old	2007-07-31 00:01:34.000000000 +0000
+++ /home/build/master/cache/broken_results.txt	2007-08-01 00:03:28.000000000 +0000
 <at>  <at>  -1,4 +1,4  <at>  <at> 
-Build status as of Tue Jul 31 00:00:03 2007
+Build status as of Wed Aug  1 00:00:02 2007

 Build counts:
 Tree         Total  Broken Panic 
 <at>  <at>  -7,7 +7,7  <at>  <at> 
 ccache       32     8      0     
 ctdb         0      0      0     
 distcc       2      0      0     
-ldb          30     4      0     
+ldb          32     4      0     
 libreplace   31     10     0     
 lorikeet-heimdal 28     12     0     
 pidl         19     4      0     
 <at>  <at>  -17,7 +17,7  <at>  <at> 
 samba-docs   0      0      0     
 samba-gtk    3      3      0     
 samba4       30     27     6     
-samba_3_2    34     21     0     
+samba_3_2    34     20     0     
 smb-build    30     30     0     
 talloc       33     1      0     
 tdb          32     3      0     

(Continue reading)

abartlet | 1 Aug 2007 02:38
Picon
Favicon

svn commit: samba r24110 - in branches/SAMBA_4_0/source/winbind: .

Author: abartlet
Date: 2007-08-01 00:38:53 +0000 (Wed, 01 Aug 2007)
New Revision: 24110

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=24110

Log:
I hate seeing callers manually filling in the composite context.  Use
the helper functions instead (and in kai's new code, which just copied
the previous bad practice).

Andrew Bartlett

Modified:
   branches/SAMBA_4_0/source/winbind/wb_name2domain.c
   branches/SAMBA_4_0/source/winbind/wb_sid2domain.c

Changeset:
Modified: branches/SAMBA_4_0/source/winbind/wb_name2domain.c
===================================================================
--- branches/SAMBA_4_0/source/winbind/wb_name2domain.c	2007-07-31 23:49:04 UTC (rev 24109)
+++ branches/SAMBA_4_0/source/winbind/wb_name2domain.c	2007-08-01 00:38:53 UTC (rev 24110)
 <at>  <at>  -59,8 +59,7  <at>  <at> 
 	ctx = wb_cmd_lookupname_send(state, service, user_dom, user_name);
 	if (ctx == NULL) goto failed;

-	ctx->async.fn = name2domain_recv_sid;
-	ctx->async.private_data = state;
+	composite_continue(result, ctx, name2domain_recv_sid, ctx->async.private_data);
 	return result;
(Continue reading)

abartlet | 1 Aug 2007 03:22
Picon
Favicon

svn commit: samba r24111 - in branches/SAMBA_4_0/source/winbind: .

Author: abartlet
Date: 2007-08-01 01:22:53 +0000 (Wed, 01 Aug 2007)
New Revision: 24111

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=24111

Log:
Untested code is broken code, untested code is broken code...

Apologies for my previous commit, which should never have been
commited untested.

Andrew Bartlett

Modified:
   branches/SAMBA_4_0/source/winbind/wb_name2domain.c
   branches/SAMBA_4_0/source/winbind/wb_sid2domain.c

Changeset:
Modified: branches/SAMBA_4_0/source/winbind/wb_name2domain.c
===================================================================
--- branches/SAMBA_4_0/source/winbind/wb_name2domain.c	2007-08-01 00:38:53 UTC (rev 24110)
+++ branches/SAMBA_4_0/source/winbind/wb_name2domain.c	2007-08-01 01:22:53 UTC (rev 24111)
 <at>  <at>  -59,7 +59,7  <at>  <at> 
 	ctx = wb_cmd_lookupname_send(state, service, user_dom, user_name);
 	if (ctx == NULL) goto failed;

-	composite_continue(result, ctx, name2domain_recv_sid, ctx->async.private_data);
+	composite_continue(result, ctx, name2domain_recv_sid, state);
 	return result;
(Continue reading)

abartlet | 1 Aug 2007 06:05
Picon
Favicon

svn commit: samba r24112 - in branches/SAMBA_4_0/source/winbind: .

Author: abartlet
Date: 2007-08-01 04:05:06 +0000 (Wed, 01 Aug 2007)
New Revision: 24112

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=24112

Log:
Complete initialistion of the libnet_ctx when setting up the domain.
We need to set the access_mask and the domain name, or else libnet
will try to do this itself.

This seems to fix the issues Kai was having.

Andrew Bartlett

Modified:
   branches/SAMBA_4_0/source/winbind/wb_init_domain.c

Changeset:
Modified: branches/SAMBA_4_0/source/winbind/wb_init_domain.c
===================================================================
--- branches/SAMBA_4_0/source/winbind/wb_init_domain.c	2007-08-01 01:22:53 UTC (rev 24111)
+++ branches/SAMBA_4_0/source/winbind/wb_init_domain.c	2007-08-01 04:05:06 UTC (rev 24112)
 <at>  <at>  -284,6 +284,8  <at>  <at> 

 	talloc_steal(state->domain->libnet_ctx, state->domain->libnet_ctx->lsa.pipe);
 	talloc_steal(state->domain->libnet_ctx->lsa.pipe, state->domain->lsa_binding);
+	state->domain->libnet_ctx->lsa.access_mask = SEC_FLAG_MAXIMUM_ALLOWED;
+	state->domain->libnet_ctx->lsa.name = state->domain->info->name;

(Continue reading)

metze | 1 Aug 2007 12:03
Picon
Favicon

svn commit: samba r24113 - in branches/SAMBA_3_2/source/lib: .

Author: metze
Date: 2007-08-01 10:03:13 +0000 (Wed, 01 Aug 2007)
New Revision: 24113

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=24113

Log:
some little fixes to get the correct error message
when using "clustering = yes" and ctdbd isn't running

metze
Modified:
   branches/SAMBA_3_2/source/lib/dbwrap_ctdb.c
   branches/SAMBA_3_2/source/lib/messages_ctdbd.c

Changeset:
Modified: branches/SAMBA_3_2/source/lib/dbwrap_ctdb.c
===================================================================
--- branches/SAMBA_3_2/source/lib/dbwrap_ctdb.c	2007-08-01 04:05:06 UTC (rev 24112)
+++ branches/SAMBA_3_2/source/lib/dbwrap_ctdb.c	2007-08-01 10:03:13 UTC (rev 24113)
 <at>  <at>  -363,7 +363,11  <at>  <at> 
 	}

 	if (ctx->conn == NULL) {
-		ctdbd_init_connection(ctx, &ctx->conn);
+		NTSTATUS status;
+		status = ctdbd_init_connection(ctx, &ctx->conn);
+		if (!NT_STATUS_IS_OK(status)) {
+			return NULL;
+		}
(Continue reading)

metze | 1 Aug 2007 12:06
Picon
Favicon

svn commit: samba r24114 - in branches/SAMBA_3_2_0/source/lib: .

Author: metze
Date: 2007-08-01 10:06:04 +0000 (Wed, 01 Aug 2007)
New Revision: 24114

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=24114

Log:
merge from SAMBA_3_2:
some little fixes to get the correct error message
when using "clustering = yes" and ctdbd isn't running

metze
Modified:
   branches/SAMBA_3_2_0/source/lib/dbwrap_ctdb.c
   branches/SAMBA_3_2_0/source/lib/messages_ctdbd.c

Changeset:
Modified: branches/SAMBA_3_2_0/source/lib/dbwrap_ctdb.c
===================================================================
--- branches/SAMBA_3_2_0/source/lib/dbwrap_ctdb.c	2007-08-01 10:03:13 UTC (rev 24113)
+++ branches/SAMBA_3_2_0/source/lib/dbwrap_ctdb.c	2007-08-01 10:06:04 UTC (rev 24114)
 <at>  <at>  -363,7 +363,11  <at>  <at> 
 	}

 	if (ctx->conn == NULL) {
-		ctdbd_init_connection(ctx, &ctx->conn);
+		NTSTATUS status;
+		status = ctdbd_init_connection(ctx, &ctx->conn);
+		if (!NT_STATUS_IS_OK(status)) {
+			return NULL;
(Continue reading)

metze | 1 Aug 2007 13:18
Picon
Favicon

svn commit: samba r24115 - in branches/SAMBA_3_2/source/utils: .

Author: metze
Date: 2007-08-01 11:18:56 +0000 (Wed, 01 Aug 2007)
New Revision: 24115

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=24115

Log:
try to get the file name and share patch for printing
brlocks from the share_mode db, as the same fileid
is used.

metze
Modified:
   branches/SAMBA_3_2/source/utils/status.c

Changeset:
Modified: branches/SAMBA_3_2/source/utils/status.c
===================================================================
--- branches/SAMBA_3_2/source/utils/status.c	2007-08-01 10:06:04 UTC (rev 24114)
+++ branches/SAMBA_3_2/source/utils/status.c	2007-08-01 11:18:56 UTC (rev 24115)
 <at>  <at>  -190,23 +190,36  <at>  <at> 
 		{ UNLOCK_LOCK, "U" }
 	};
 	const char *desc="X";
+	const char *sharepath = "";
+	const char *fname = "";
+	struct share_mode_lock *share_mode;
+
 	if (count==0) {
 		d_printf("Byte range locks:\n");
(Continue reading)

metze | 1 Aug 2007 13:32
Picon
Favicon

svn commit: samba r24116 - in branches/SAMBA_3_2_0/source/utils: .

Author: metze
Date: 2007-08-01 11:32:32 +0000 (Wed, 01 Aug 2007)
New Revision: 24116

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=24116

Log:
merge from SAMBA_3_2:
try to get the file name and share patch for printing
brlocks from the share_mode db, as the same fileid
is used.

metze
Modified:
   branches/SAMBA_3_2_0/source/utils/status.c

Changeset:
Modified: branches/SAMBA_3_2_0/source/utils/status.c
===================================================================
--- branches/SAMBA_3_2_0/source/utils/status.c	2007-08-01 11:18:56 UTC (rev 24115)
+++ branches/SAMBA_3_2_0/source/utils/status.c	2007-08-01 11:32:32 UTC (rev 24116)
 <at>  <at>  -190,23 +190,36  <at>  <at> 
 		{ UNLOCK_LOCK, "U" }
 	};
 	const char *desc="X";
+	const char *sharepath = "";
+	const char *fname = "";
+	struct share_mode_lock *share_mode;
+
 	if (count==0) {
(Continue reading)


Gmane