[SCM] Samba Shared Repository - branch v3-6-test updated
Karolin Seeger
kseeger at samba.org
Tue Jul 26 13:25:36 MDT 2011
The branch, v3-6-test has been updated
via 7738d8b s3:utils/net_afs fix compiler warnings
via 8a14ccb s3:lib/afs fix the build with --with-vfs-afsacl
via caa4226 s3:lib/afs fix the build with --with-fake-kaserver
from e173f04 Fix bug 8314] - smbd crash with unknown user.
http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-6-test
- Log -----------------------------------------------------------------
commit 7738d8b89bcf2b43d65f1bf4599a688cb4143768
Author: Christian Ambach <ambi at samba.org>
Date: Fri Jul 15 15:44:36 2011 +0200
s3:utils/net_afs fix compiler warnings
this also fixes the usage displays of net afs
commit 8a14ccb99388e31b366fc84060186be1ea708d75
Author: Christian Ambach <ambi at samba.org>
Date: Fri Jul 15 15:54:25 2011 +0200
s3:lib/afs fix the build with --with-vfs-afsacl
This fixes the second piece of Bug #8263
commit caa4226c315a70138016cf8fae13ce3f050057e7
Author: Christian Ambach <ambi at samba.org>
Date: Fri Jul 15 15:27:07 2011 +0200
s3:lib/afs fix the build with --with-fake-kaserver
This fixes one piece of Bug #8263
-----------------------------------------------------------------------
Summary of changes:
source3/lib/afs.c | 12 +++++++++---
source3/lib/afs_settoken.c | 2 ++
source3/modules/vfs_afsacl.c | 4 ++++
source3/utils/net_afs.c | 7 +++++--
4 files changed, 20 insertions(+), 5 deletions(-)
Changeset truncated at 500 lines:
diff --git a/source3/lib/afs.c b/source3/lib/afs.c
index d73e9df..4e0fa6f 100644
--- a/source3/lib/afs.c
+++ b/source3/lib/afs.c
@@ -23,6 +23,11 @@
#define NO_ASN1_TYPEDEFS 1
+#include "secrets.h"
+#include "passdb.h"
+#include "auth.h"
+#include "../librpc/gen_ndr/ndr_netlogon.h"
+
#include <afs/param.h>
#include <afs/stds.h>
#include <afs/afs.h>
@@ -231,16 +236,17 @@ bool afs_login(connection_struct *conn)
}
afs_username = talloc_sub_advanced(ctx,
- SNUM(conn), conn->session_info->unix_name,
+ lp_servicename(SNUM(conn)),
+ conn->session_info->unix_name,
conn->connectpath, conn->session_info->utok.gid,
conn->session_info->sanitized_username,
- pdb_get_domain(conn->session_info->sam_account),
+ conn->session_info->info3->base.domain.string,
afs_username);
if (!afs_username) {
return false;
}
- user_sid = &conn->session_info->security_token->user_sids[0];
+ user_sid = &conn->session_info->security_token->sids[0];
afs_username = talloc_string_sub(talloc_tos(),
afs_username,
"%s",
diff --git a/source3/lib/afs_settoken.c b/source3/lib/afs_settoken.c
index 80eed13..149fc66 100644
--- a/source3/lib/afs_settoken.c
+++ b/source3/lib/afs_settoken.c
@@ -23,6 +23,8 @@
#define NO_ASN1_TYPEDEFS 1
+#include "system/filesys.h"
+
#include <afs/param.h>
#include <afs/stds.h>
#include <afs/afs.h>
diff --git a/source3/modules/vfs_afsacl.c b/source3/modules/vfs_afsacl.c
index 06ce6f5..ec91360 100644
--- a/source3/modules/vfs_afsacl.c
+++ b/source3/modules/vfs_afsacl.c
@@ -20,6 +20,10 @@
#include "includes.h"
#include "system/filesys.h"
#include "smbd/smbd.h"
+#include "../librpc/gen_ndr/lsa.h"
+#include "../libcli/security/security.h"
+#include "../libcli/security/dom_sid.h"
+#include "passdb.h"
#undef DBGC_CLASS
#define DBGC_CLASS DBGC_VFS
diff --git a/source3/utils/net_afs.c b/source3/utils/net_afs.c
index f6b2b2d..786627d 100644
--- a/source3/utils/net_afs.c
+++ b/source3/utils/net_afs.c
@@ -19,6 +19,8 @@
#include "includes.h"
#include "utils/net.h"
+#include "secrets.h"
+#include "system/filesys.h"
int net_afs_usage(struct net_context *c, int argc, const char **argv)
{
@@ -35,7 +37,7 @@ int net_afs_key(struct net_context *c, int argc, const char **argv)
struct afs_keyfile keyfile;
if (argc != 2) {
- d_printf(_("Usage:")," net afs key <keyfile> cell\n");
+ d_printf("%s net afs key <keyfile> cell\n", _("Usage:"));
return -1;
}
@@ -70,7 +72,8 @@ int net_afs_impersonate(struct net_context *c, int argc,
char *token;
if (argc != 2) {
- fprintf(stderr, _("Usage:")," net afs impersonate <user> <cell>\n");
+ d_fprintf(stderr, "%s net afs impersonate <user> <cell>\n",
+ _("Usage:"));
exit(1);
}
--
Samba Shared Repository
More information about the samba-cvs
mailing list