diff options
author | Günther Deschner <gd@samba.org> | 2008-10-23 22:26:21 +0200 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2008-10-24 00:06:16 +0200 |
commit | 2b364550a91555031548603608251026c15369de (patch) | |
tree | bb4b3e9b81884e55555d1c7e1e949b089702fff7 | |
parent | 78a85f9e96e4c1d5a99e328e8ca07b1f75a79467 (diff) | |
download | samba-2b364550a91555031548603608251026c15369de.tar.gz samba-2b364550a91555031548603608251026c15369de.tar.bz2 samba-2b364550a91555031548603608251026c15369de.zip |
s3-samr-server: remove unused historic code.
Guenther
-rw-r--r-- | source3/rpc_server/srv_samr_nt.c | 60 |
1 files changed, 0 insertions, 60 deletions
diff --git a/source3/rpc_server/srv_samr_nt.c b/source3/rpc_server/srv_samr_nt.c index 0f82675d3d..e68224b379 100644 --- a/source3/rpc_server/srv_samr_nt.c +++ b/source3/rpc_server/srv_samr_nt.c @@ -1774,66 +1774,6 @@ NTSTATUS _samr_QueryAliasInfo(pipes_struct *p, return NT_STATUS_OK; } -#if 0 -/******************************************************************* - samr_reply_lookup_ids - ********************************************************************/ - - uint32 _samr_lookup_ids(pipes_struct *p, SAMR_Q_LOOKUP_IDS *q_u, SAMR_R_LOOKUP_IDS *r_u) -{ - uint32 rid[MAX_SAM_ENTRIES]; - int num_rids = q_u->num_sids1; - - r_u->status = NT_STATUS_OK; - - DEBUG(5,("_samr_lookup_ids: %d\n", __LINE__)); - - if (num_rids > MAX_SAM_ENTRIES) { - num_rids = MAX_SAM_ENTRIES; - DEBUG(5,("_samr_lookup_ids: truncating entries to %d\n", num_rids)); - } - -#if 0 - int i; - SMB_ASSERT_ARRAY(q_u->uni_user_name, num_rids); - - for (i = 0; i < num_rids && status == 0; i++) - { - struct sam_passwd *sam_pass; - fstring user_name; - - - fstrcpy(user_name, unistrn2(q_u->uni_user_name[i].buffer, - q_u->uni_user_name[i].uni_str_len)); - - /* find the user account */ - become_root(); - sam_pass = get_smb21pwd_entry(user_name, 0); - unbecome_root(); - - if (sam_pass == NULL) - { - status = 0xC0000000 | NT_STATUS_NO_SUCH_USER; - rid[i] = 0; - } - else - { - rid[i] = sam_pass->user_rid; - } - } -#endif - - num_rids = 1; - rid[0] = BUILTIN_ALIAS_RID_USERS; - - init_samr_r_lookup_ids(&r_u, num_rids, rid, NT_STATUS_OK); - - DEBUG(5,("_samr_lookup_ids: %d\n", __LINE__)); - - return r_u->status; -} -#endif - /******************************************************************* _samr_LookupNames ********************************************************************/ |