From 6937e01e3eb13108e1dc12a986dfde49fa8a3671 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Mon, 26 Oct 2009 23:28:30 +0100 Subject: s3-lsa: use enum lsa_LookupNamesLevel in lsa_lookup_level_to_flags(). Guenther --- source3/rpc_server/srv_lsa_nt.c | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'source3') diff --git a/source3/rpc_server/srv_lsa_nt.c b/source3/rpc_server/srv_lsa_nt.c index a9a4fa5b25..9a89c07cf2 100644 --- a/source3/rpc_server/srv_lsa_nt.c +++ b/source3/rpc_server/srv_lsa_nt.c @@ -1017,23 +1017,24 @@ NTSTATUS _lsa_LookupSids3(pipes_struct *p, /*************************************************************************** ***************************************************************************/ -static int lsa_lookup_level_to_flags(uint16 level) +static int lsa_lookup_level_to_flags(enum lsa_LookupNamesLevel level) { int flags; switch (level) { - case 1: + case LSA_LOOKUP_NAMES_ALL: /* 1 */ flags = LOOKUP_NAME_ALL; break; - case 2: + case LSA_LOOKUP_NAMES_DOMAINS_ONLY: /* 2 */ flags = LOOKUP_NAME_DOMAIN|LOOKUP_NAME_REMOTE|LOOKUP_NAME_ISOLATED; break; - case 3: + case LSA_LOOKUP_NAMES_PRIMARY_DOMAIN_ONLY: /* 3 */ flags = LOOKUP_NAME_DOMAIN|LOOKUP_NAME_ISOLATED; break; - case 4: - case 5: - case 6: + case LSA_LOOKUP_NAMES_UPLEVEL_TRUSTS_ONLY: /* 4 */ + case LSA_LOOKUP_NAMES_FOREST_TRUSTS_ONLY: /* 5 */ + case LSA_LOOKUP_NAMES_UPLEVEL_TRUSTS_ONLY2: /* 6 */ + case LSA_LOOKUP_NAMES_RODC_REFERRAL_TO_FULL_DC: /* 7 */ default: flags = LOOKUP_NAME_NONE; break; -- cgit