summaryrefslogtreecommitdiff
path: root/source3/winbindd
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2008-12-30 09:32:31 +0100
committerStefan Metzmacher <metze@samba.org>2009-01-05 15:07:32 +0100
commit2428ec46d82e09b76402ed00b2d369ba2cb417d4 (patch)
tree1c51b3b6d0825f2bb68292f4e784893d6d066a15 /source3/winbindd
parentf389b97c698aff9888ae9cdde9eb10e8e9fab4c7 (diff)
downloadsamba-2428ec46d82e09b76402ed00b2d369ba2cb417d4.tar.gz
samba-2428ec46d82e09b76402ed00b2d369ba2cb417d4.tar.bz2
samba-2428ec46d82e09b76402ed00b2d369ba2cb417d4.zip
s3:winbindd: move WINBINDD_CCACHE_ENTRY and WINBINDD_MEMORY_CREDS to winbindd.h
metze
Diffstat (limited to 'source3/winbindd')
-rw-r--r--source3/winbindd/winbindd.h29
1 files changed, 28 insertions, 1 deletions
diff --git a/source3/winbindd/winbindd.h b/source3/winbindd/winbindd.h
index 04b0b39f81..dbc50685a2 100644
--- a/source3/winbindd/winbindd.h
+++ b/source3/winbindd/winbindd.h
@@ -377,7 +377,34 @@ enum ent_type {
LIST_USERS = 0,
LIST_GROUPS,
};
-
+
+struct WINBINDD_MEMORY_CREDS {
+ struct WINBINDD_MEMORY_CREDS *next, *prev;
+ const char *username; /* lookup key. */
+ uid_t uid;
+ int ref_count;
+ size_t len;
+ uint8_t *nt_hash; /* Base pointer for the following 2 */
+ uint8_t *lm_hash;
+ char *pass;
+};
+
+struct WINBINDD_CCACHE_ENTRY {
+ struct WINBINDD_CCACHE_ENTRY *next, *prev;
+ const char *principal_name;
+ const char *ccname;
+ const char *service;
+ const char *username;
+ const char *realm;
+ struct WINBINDD_MEMORY_CREDS *cred_ptr;
+ int ref_count;
+ uid_t uid;
+ time_t create_time;
+ time_t renew_until;
+ time_t refresh_time;
+ struct timed_event *event;
+};
+
#include "winbindd/winbindd_proto.h"
#define WINBINDD_ESTABLISH_LOOP 30