diff options
author | Günther Deschner <gd@samba.org> | 2008-11-25 12:18:39 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2008-11-27 18:27:26 +0100 |
commit | e09f658be72b6304e541da02dce843de79488d1c (patch) | |
tree | 48a3e3d5cffdacd4d5a8f490980a481050208c54 /source3 | |
parent | 5aebfd9086eead8aad526827661ab10679414891 (diff) | |
download | samba-e09f658be72b6304e541da02dce843de79488d1c.tar.gz samba-e09f658be72b6304e541da02dce843de79488d1c.tar.bz2 samba-e09f658be72b6304e541da02dce843de79488d1c.zip |
s3-samr: add init_samr_user_info5.
Guenther
Diffstat (limited to 'source3')
-rw-r--r-- | source3/include/proto.h | 19 | ||||
-rw-r--r-- | source3/rpc_client/init_samr.c | 47 |
2 files changed, 66 insertions, 0 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h index a02672351c..73be87b6fc 100644 --- a/source3/include/proto.h +++ b/source3/include/proto.h @@ -5644,6 +5644,25 @@ void init_samr_alias_info1(struct samr_AliasInfoAll *r, const char *description); void init_samr_alias_info3(struct lsa_String *r, const char *description); +void init_samr_user_info5(struct samr_UserInfo5 *r, + const char *account_name, + const char *full_name, + uint32_t rid, + uint32_t primary_gid, + const char *home_directory, + const char *home_drive, + const char *logon_script, + const char *profile_path, + const char *description, + const char *workstations, + NTTIME last_logon, + NTTIME last_logoff, + struct samr_LogonHours logon_hours, + uint16_t bad_password_count, + uint16_t logon_count, + NTTIME last_password_change, + NTTIME acct_expiry, + uint32_t acct_flags); void init_samr_user_info7(struct samr_UserInfo7 *r, const char *account_name); void init_samr_user_info9(struct samr_UserInfo9 *r, diff --git a/source3/rpc_client/init_samr.c b/source3/rpc_client/init_samr.c index 283be0d98b..43809c03d1 100644 --- a/source3/rpc_client/init_samr.c +++ b/source3/rpc_client/init_samr.c @@ -252,6 +252,53 @@ void init_samr_alias_info3(struct lsa_String *r, } /******************************************************************* + inits a samr_UserInfo5 structure. +********************************************************************/ + +void init_samr_user_info5(struct samr_UserInfo5 *r, + const char *account_name, + const char *full_name, + uint32_t rid, + uint32_t primary_gid, + const char *home_directory, + const char *home_drive, + const char *logon_script, + const char *profile_path, + const char *description, + const char *workstations, + NTTIME last_logon, + NTTIME last_logoff, + struct samr_LogonHours logon_hours, + uint16_t bad_password_count, + uint16_t logon_count, + NTTIME last_password_change, + NTTIME acct_expiry, + uint32_t acct_flags) +{ + DEBUG(5, ("init_samr_user_info5\n")); + + init_lsa_String(&r->account_name, account_name); + init_lsa_String(&r->full_name, full_name); + r->rid = rid; + r->primary_gid = primary_gid; + init_lsa_String(&r->home_directory, home_directory); + init_lsa_String(&r->home_drive, home_drive); + init_lsa_String(&r->logon_script, logon_script); + init_lsa_String(&r->profile_path, profile_path); + init_lsa_String(&r->description, description); + init_lsa_String(&r->workstations, workstations); + r->last_logon = last_logon; + r->last_logoff = last_logoff; + r->logon_hours = logon_hours; + r->bad_password_count = bad_password_count; + r->logon_count = logon_count; + r->last_password_change = last_password_change; + r->acct_expiry = acct_expiry; + r->acct_flags = acct_flags; +} + + +/******************************************************************* inits a samr_UserInfo7 structure. ********************************************************************/ |