diff options
author | Günther Deschner <gd@samba.org> | 2008-12-06 01:34:51 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2009-01-06 16:02:11 +0100 |
commit | 15ec09029937774395ad97d5c7fa44a84b3008b2 (patch) | |
tree | b7d639ca6ac8281847dd451a3d3b69964b7bb271 | |
parent | d2d8d7a087ecbd7da060d877714e4b671a53f5d5 (diff) | |
download | samba-15ec09029937774395ad97d5c7fa44a84b3008b2.tar.gz samba-15ec09029937774395ad97d5c7fa44a84b3008b2.tar.bz2 samba-15ec09029937774395ad97d5c7fa44a84b3008b2.zip |
s3-samr: remove all init_samr_dom* functions.
Guenther
-rw-r--r-- | source3/include/proto.h | 37 | ||||
-rw-r--r-- | source3/rpc_client/init_samr.c | 135 |
2 files changed, 0 insertions, 172 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h index 5221a5ff94..5404b50c5b 100644 --- a/source3/include/proto.h +++ b/source3/include/proto.h @@ -5572,43 +5572,6 @@ void init_netr_CryptPassword(const char *pwd, /* The following definitions come from rpc_client/init_samr.c */ -void init_samr_DomInfo1(struct samr_DomInfo1 *r, - uint16_t min_password_length, - uint16_t password_history_length, - uint32_t password_properties, - int64_t max_password_age, - int64_t min_password_age); -void init_samr_DomGeneralInformation(struct samr_DomGeneralInformation *r, - NTTIME force_logoff_time, - const char *oem_information, - const char *domain_name, - const char *primary, - uint64_t sequence_num, - enum samr_DomainServerState domain_server_state, - enum samr_Role role, - uint32_t unknown3, - uint32_t num_users, - uint32_t num_groups, - uint32_t num_aliases); -void init_samr_DomInfo3(struct samr_DomInfo3 *r, - NTTIME force_logoff_time); -void init_samr_DomOEMInformation(struct samr_DomOEMInformation *r, - const char *oem_information); -void init_samr_DomInfo5(struct samr_DomInfo5 *r, - const char *domain_name); -void init_samr_DomInfo6(struct samr_DomInfo6 *r, - const char *primary); -void init_samr_DomInfo7(struct samr_DomInfo7 *r, - enum samr_Role role); -void init_samr_DomInfo8(struct samr_DomInfo8 *r, - uint64_t sequence_num, - NTTIME domain_create_time); -void init_samr_DomInfo9(struct samr_DomInfo9 *r, - enum samr_DomainServerState domain_server_state); -void init_samr_DomInfo12(struct samr_DomInfo12 *r, - uint64_t lockout_duration, - uint64_t lockout_window, - uint16_t lockout_threshold); void init_samr_group_info1(struct samr_GroupInfoAll *r, const char *name, uint32_t attributes, diff --git a/source3/rpc_client/init_samr.c b/source3/rpc_client/init_samr.c index edf24203a8..c407d9e2b9 100644 --- a/source3/rpc_client/init_samr.c +++ b/source3/rpc_client/init_samr.c @@ -20,141 +20,6 @@ #include "includes.h" /******************************************************************* - inits a structure. -********************************************************************/ - -void init_samr_DomInfo1(struct samr_DomInfo1 *r, - uint16_t min_password_length, - uint16_t password_history_length, - uint32_t password_properties, - int64_t max_password_age, - int64_t min_password_age) -{ - r->min_password_length = min_password_length; - r->password_history_length = password_history_length; - r->password_properties = password_properties; - r->max_password_age = max_password_age; - r->min_password_age = min_password_age; -} - -/******************************************************************* - inits a structure. -********************************************************************/ - -void init_samr_DomGeneralInformation(struct samr_DomGeneralInformation *r, - NTTIME force_logoff_time, - const char *oem_information, - const char *domain_name, - const char *primary, - uint64_t sequence_num, - enum samr_DomainServerState domain_server_state, - enum samr_Role role, - uint32_t unknown3, - uint32_t num_users, - uint32_t num_groups, - uint32_t num_aliases) -{ - r->force_logoff_time = force_logoff_time; - init_lsa_String(&r->oem_information, oem_information); - init_lsa_String(&r->domain_name, domain_name); - init_lsa_String(&r->primary, primary); - r->sequence_num = sequence_num; - r->domain_server_state = domain_server_state; - r->role = role; - r->unknown3 = unknown3; - r->num_users = num_users; - r->num_groups = num_groups; - r->num_aliases = num_aliases; -} - -/******************************************************************* - inits a structure. -********************************************************************/ - -void init_samr_DomInfo3(struct samr_DomInfo3 *r, - NTTIME force_logoff_time) -{ - r->force_logoff_time = force_logoff_time; -} - -/******************************************************************* - inits a structure. -********************************************************************/ - -void init_samr_DomOEMInformation(struct samr_DomOEMInformation *r, - const char *oem_information) -{ - init_lsa_String(&r->oem_information, oem_information); -} - -/******************************************************************* - inits a structure. -********************************************************************/ - -void init_samr_DomInfo5(struct samr_DomInfo5 *r, - const char *domain_name) -{ - init_lsa_String(&r->domain_name, domain_name); -} - -/******************************************************************* - inits a structure. -********************************************************************/ - -void init_samr_DomInfo6(struct samr_DomInfo6 *r, - const char *primary) -{ - init_lsa_String(&r->primary, primary); -} - -/******************************************************************* - inits a structure. -********************************************************************/ - -void init_samr_DomInfo7(struct samr_DomInfo7 *r, - enum samr_Role role) -{ - r->role = role; -} - -/******************************************************************* - inits a structure. -********************************************************************/ - -void init_samr_DomInfo8(struct samr_DomInfo8 *r, - uint64_t sequence_num, - NTTIME domain_create_time) -{ - r->sequence_num = sequence_num; - r->domain_create_time = domain_create_time; -} - -/******************************************************************* - inits a structure. -********************************************************************/ - -void init_samr_DomInfo9(struct samr_DomInfo9 *r, - enum samr_DomainServerState domain_server_state) -{ - r->domain_server_state = domain_server_state; -} - - -/******************************************************************* - inits a structure. -********************************************************************/ - -void init_samr_DomInfo12(struct samr_DomInfo12 *r, - uint64_t lockout_duration, - uint64_t lockout_window, - uint16_t lockout_threshold) -{ - r->lockout_duration = lockout_duration; - r->lockout_window = lockout_window; - r->lockout_threshold = lockout_threshold; -} - -/******************************************************************* inits a samr_GroupInfoAll structure. ********************************************************************/ |