diff options
author | Andreas Schneider <asn@cynapses.org> | 2010-09-09 11:00:18 +0200 |
---|---|---|
committer | Andreas Schneider <asn@samba.org> | 2010-09-09 16:00:07 +0200 |
commit | 669213e812340896d5fa5dbfb7e3180255af297a (patch) | |
tree | f559bd161b3cdf1d08ff6896525600c98592bfd1 /source3 | |
parent | cd2b9db04b7a27a36b68c7eb846aec68830566ef (diff) | |
download | samba-669213e812340896d5fa5dbfb7e3180255af297a.tar.gz samba-669213e812340896d5fa5dbfb7e3180255af297a.tar.bz2 samba-669213e812340896d5fa5dbfb7e3180255af297a.zip |
s3-auth: Added get_server_info_system function.
Diffstat (limited to 'source3')
-rw-r--r-- | source3/auth/auth_util.c | 5 | ||||
-rw-r--r-- | source3/include/proto.h | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/source3/auth/auth_util.c b/source3/auth/auth_util.c index 1b4a284945..9dbe04f4ca 100644 --- a/source3/auth/auth_util.c +++ b/source3/auth/auth_util.c @@ -921,6 +921,11 @@ NTSTATUS make_server_info_system(TALLOC_CTX *mem_ctx, return (*server_info != NULL) ? NT_STATUS_OK : NT_STATUS_NO_MEMORY; } +const struct auth_serversupplied_info *get_server_info_system(void) +{ + return system_info; +} + bool copy_current_user(struct current_user *dst, struct current_user *src) { gid_t *groups; diff --git a/source3/include/proto.h b/source3/include/proto.h index 2f82e70f5f..e5aff683c6 100644 --- a/source3/include/proto.h +++ b/source3/include/proto.h @@ -147,6 +147,7 @@ NTSTATUS make_server_info_guest(TALLOC_CTX *mem_ctx, struct auth_serversupplied_info **server_info); NTSTATUS make_server_info_system(TALLOC_CTX *mem_ctx, struct auth_serversupplied_info **server_info); +const struct auth_serversupplied_info *get_server_info_system(void); bool copy_current_user(struct current_user *dst, struct current_user *src); struct passwd *smb_getpwnam( TALLOC_CTX *mem_ctx, const char *domuser, fstring save_username, bool create ); |