summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2012-06-05 12:07:43 +0200
committerStefan Metzmacher <metze@samba.org>2012-06-06 10:18:39 +0200
commitbc39915f47bb5555cdc10ebb9cc843ed16e3b207 (patch)
tree161d54929130ce60cd2a8c601189874f794214d7 /source3
parentb742a75b379a755c3ee75c389f41f80c3014e36e (diff)
downloadsamba-bc39915f47bb5555cdc10ebb9cc843ed16e3b207.tar.gz
samba-bc39915f47bb5555cdc10ebb9cc843ed16e3b207.tar.bz2
samba-bc39915f47bb5555cdc10ebb9cc843ed16e3b207.zip
s3:smbd: move struct user_struct to globals.h
metze
Diffstat (limited to 'source3')
-rw-r--r--source3/include/smb.h13
-rw-r--r--source3/smbd/globals.h14
2 files changed, 14 insertions, 13 deletions
diff --git a/source3/include/smb.h b/source3/include/smb.h
index 58d94385a4..5938e0b801 100644
--- a/source3/include/smb.h
+++ b/source3/include/smb.h
@@ -918,19 +918,6 @@ struct node_status_extra {
/* There really is more here ... */
};
-struct user_struct {
- struct user_struct *next, *prev;
- uint16 vuid; /* Tag for this entry. */
-
- char *session_keystr; /* used by utmp and pam session code.
- TDB key string */
- int homes_snum;
-
- struct auth_session_info *session_info;
-
- struct gensec_security *gensec_security;
-};
-
/*
Do you want session setups at user level security with a invalid
password to be rejected or allowed in as guest? WinNT rejects them
diff --git a/source3/smbd/globals.h b/source3/smbd/globals.h
index f692eae488..139854d497 100644
--- a/source3/smbd/globals.h
+++ b/source3/smbd/globals.h
@@ -438,6 +438,7 @@ struct smbd_smb2_request {
};
struct smbd_server_connection;
+struct user_struct;
struct smbd_smb2_session {
struct smbd_smb2_session *prev, *next;
@@ -473,6 +474,19 @@ struct smbd_smb2_tcon {
struct pending_message_list;
struct pending_auth_data;
+struct user_struct {
+ struct user_struct *next, *prev;
+ uint16 vuid; /* Tag for this entry. */
+
+ char *session_keystr; /* used by utmp and pam session code.
+ TDB key string */
+ int homes_snum;
+
+ struct auth_session_info *session_info;
+
+ struct gensec_security *gensec_security;
+};
+
struct smbd_server_connection {
int sock;
const struct tsocket_address *local_address;